Info Call to SQLite query API

Description

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

Recommendation

This entry is informative, no recommendations applicable.

Technical details

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


    protected final long h(String p19, String p20)
    {
        com.google.android.gms.common.internal.ag.a(p19);
        com.google.android.gms.common.internal.ag.a(p20);
        this.c();
        this.j();
        android.database.sqlite.SQLiteDatabase v3 = this.w();
        v3.beginTransaction();
        try {
            String v7_2 = new StringBuilder((String.valueOf(p20).length() + 32));
            v7_2.append("select ");
            v7_2.append(p20);
            v7_2.append(" from app2 where app_id=?");
            String v6_8 = v7_2.toString();
            Object v8_1 = new String[1];
            v8_1[0] = p19;
            try {
                android.database.sqlite.SQLiteException v13_0 = this.a(v6_8, v8_1, -1);
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v13_0 = 0;
                this.q().k_().a("Error inserting column. appId", com.google.android.gms.measurement.a.q.a(p19), p20, v0_0);
                v3.endTransaction();
                return v13_0;
            }
            if (v13_0 == -1) {
                String v6_11 = new android.content.ContentValues();
                v6_11.put("app_id", p19);
                v6_11.put("first_open_count", Integer.valueOf(0));
                v6_11.put("previous_install_count", Integer.valueOf(0));
                if (v3.insertWithOnConflict("app2", 0, v6_11, 5) != -1) {
                    v13_0 = 0;
                } else {
                    this.q().k_().a("Failed to insert column (got -1). appId", com.google.android.gms.measurement.a.q.a(p19), p20);
                    v3.endTransaction();
                    return -1;
                }
            }
            try {
                String v6_14 = new android.content.ContentValues();
                v6_14.put("app_id", p19);
                v6_14.put(p20, Long.valueOf((v13_0 + 1)));
                String v7_4 = new String[1];
                v7_4[0] = p19;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            if (((long) v3.update("app2", v6_14, "app_id = ?", v7_4)) != 0) {
                v3.setTransactionSuccessful();
                v3.endTransaction();
                return v13_0;
            } else {
                this.q().k_().a("Failed to update column (got 0). appId", com.google.android.gms.measurement.a.q.a(p19), p20);
                v3.endTransaction();
                return -1;
            }
        } catch (android.database.sqlite.SQLiteException v0_1) {
            Object v1_3 = v0_1;
            v3.endTransaction();
            throw v1_3;
        } catch (android.database.sqlite.SQLiteException v0_0) {
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


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

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


    public final com.google.android.gms.measurement.a.er a(long p22, String p24, boolean p25, boolean p26, boolean p27, boolean p28, boolean p29)
    {
        com.google.android.gms.common.internal.ag.a(p24);
        this.c();
        this.j();
        String v3_2 = new String[1];
        v3_2[0] = p24;
        com.google.android.gms.measurement.a.er v5_1 = new com.google.android.gms.measurement.a.er();
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.w();
            String[] v9 = new String[6];
            v9[0] = "day";
            v9[1] = "daily_events_count";
            v9[2] = "daily_public_events_count";
            v9[3] = "daily_conversions_count";
            v9[4] = "daily_error_events_count";
            v9[5] = "daily_realtime_events_count";
            int v7_8 = new String[1];
            v7_8[0] = p24;
            int v7_0 = v15.query("apps", v9, "app_id=?", v7_8, 0, 0, 0);
            try {
                if (v7_0.moveToFirst()) {
                    if (v7_0.getLong(0) == p22) {
                        v5_1.b = v7_0.getLong(1);
                        v5_1.a = v7_0.getLong(2);
                        v5_1.c = v7_0.getLong(3);
                        v5_1.d = v7_0.getLong(4);
                        v5_1.e = v7_0.getLong(5);
                    }
                    if (p25) {
                        v5_1.b = (v5_1.b + 1);
                    }
                    if (p26) {
                        v5_1.a = (v5_1.a + 1);
                    }
                    if (p27) {
                        v5_1.c = (v5_1.c + 1);
                    }
                    if (p28) {
                        v5_1.d = (v5_1.d + 1);
                    }
                    if (p29) {
                        v5_1.e = (v5_1.e + 1);
                    }
                    android.content.ContentValues v1_4 = new android.content.ContentValues();
                    v1_4.put("day", Long.valueOf(p22));
                    v1_4.put("daily_public_events_count", Long.valueOf(v5_1.a));
                    v1_4.put("daily_events_count", Long.valueOf(v5_1.b));
                    v1_4.put("daily_conversions_count", Long.valueOf(v5_1.c));
                    v1_4.put("daily_error_events_count", Long.valueOf(v5_1.d));
                    v1_4.put("daily_realtime_events_count", Long.valueOf(v5_1.e));
                    v15.update("apps", v1_4, "app_id=?", v3_2);
                    if (v7_0 != 0) {
                        v7_0.close();
                    }
                    return v5_1;
                } else {
                    this.q().h().a("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.a.q.a(p24));
                    if (v7_0 != 0) {
                        v7_0.close();
                    }
                    return v5_1;
                }
            } catch (Throwable v0_2) {
                android.content.ContentValues v1_2 = v0_2;
                if (v7_0 != 0) {
                    v7_0.close();
                }
                throw v1_2;
            } catch (Throwable v0_0) {
                android.content.ContentValues v1_1 = v0_0;
                int v6_0 = v7_0;
                try {
                    this.q().k_().a("Error updating daily counts. appId", com.google.android.gms.measurement.a.q.a(p24), v1_1);
                } catch (Throwable v0_1) {
                    v1_2 = v0_1;
                    v7_0 = v6_0;
                }
                if (v6_0 != 0) {
                    v6_0.close();
                }
                return v5_1;
            }
        } catch (Throwable v0_4) {
            v1_2 = v0_4;
            v7_0 = 0;
        } catch (Throwable v0_3) {
            v1_1 = v0_3;
            v6_0 = 0;
        }
    }

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


    protected final boolean a(String p18, byte[] p19, String p20)
    {
        this.j();
        this.c();
        com.google.android.gms.common.internal.ag.a(p18);
        com.google.android.gms.measurement.a.s v3_2 = this.a(p18, p19);
        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.a.anark>.a(v3_2));
        int v4_2 = this.g();
        com.google.android.gms.measurement.a.s v5_2 = v3_2.e;
        com.google.android.gms.common.internal.ag.a(v5_2);
        String v6_0 = v5_2.length;
        int v8_0 = 0;
        while (v8_0 < v6_0) {
            int v9_3 = v5_2[v8_0];
            android.database.sqlite.SQLiteDatabase v10_2 = v9_3.c;
            String v11_2 = v10_2.length;
            int v12 = 0;
            while (v12 < v11_2) {
                com.google.android.gms.c.j.ck[] v13_0 = v10_2[v12];
                int v14_1 = com.google.android.gms.measurement.AppMeasurement$a.a(v13_0.b);
                if (v14_1 != 0) {
                    v13_0.b = v14_1;
                }
                com.google.android.gms.c.j.ck[] v13_1 = v13_0.c;
                int v14_2 = v13_1.length;
                int v15 = 0;
                while (v15 < v14_2) {
                    com.google.android.gms.c.j.ck v7_0 = v13_1[v15];
                    String v16_0 = v6_0;
                    String v6_2 = com.google.android.gms.measurement.AppMeasurement$c.a(v7_0.d);
                    if (v6_2 != null) {
                        v7_0.d = v6_2;
                    }
                    v15++;
                    v6_0 = v16_0;
                }
                v12++;
            }
            String v16_1 = v6_0;
            String v6_8 = v9_3.b;
            com.google.android.gms.c.j.ck v7_4 = v6_8.length;
            int v9_0 = 0;
            while (v9_0 < v7_4) {
                android.database.sqlite.SQLiteDatabase v10_0 = v6_8[v9_0];
                String v11_1 = com.google.android.gms.measurement.AppMeasurement$d.a(v10_0.b);
                if (v11_1 != null) {
                    v10_0.b = v11_1;
                }
                v9_0++;
            }
            v8_0++;
            v6_0 = v16_1;
        }
        v4_2.h().a(p18, v5_2);
        try {
            v3_2.e = 0;
            int v4_6 = new byte[v3_2.e()];
            v3_2.a(com.google.android.gms.c.j.iw.a(v4_6, v4_6.length));
        } catch (android.database.sqlite.SQLiteException v0_0) {
            this.q().h().a("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.a.q.a(p18), v0_0);
            v4_6 = p19;
        }
        com.google.android.gms.measurement.a.s v3_1 = this.h();
        com.google.android.gms.common.internal.ag.a(p18);
        v3_1.c();
        v3_1.j();
        com.google.android.gms.measurement.a.s v5_7 = new android.content.ContentValues();
        v5_7.put("remote_config", v4_6);
        try {
            String v6_5 = v3_1.w();
            int v9_1 = new String[1];
            v9_1[0] = p18;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v3_1.q().k_().a("Error storing remote config. appId", com.google.android.gms.measurement.a.q.a(p18), v0_1);
            return 1;
        }
        if (((long) v6_5.update("apps", v5_7, "app_id = ?", v9_1)) != 0) {
            return 1;
        } else {
            v3_1.q().k_().a("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.a.q.a(p18));
            return 1;
        }
    }

Method com.freshchat.consumer.sdk.c.k.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p17, String p18, boolean p19)
    {
        if (com.freshchat.consumer.sdk.j.as.aI(p18)) {
            android.content.ContentValues v1_1 = this.b(p17, p18, p19);
            String v3_1 = this.cs();
            String[] v5_0 = new String[2];
            v5_0[0] = p17;
            v5_0[1] = p18;
            if (v3_1.update("user_meta", v1_1, "meta_key= ? AND meta_value!= ?", v5_0) == 0) {
                android.database.sqlite.SQLiteDatabase v8 = this.cs();
                String[] v12 = new String[1];
                v12[0] = p17;
                android.database.Cursor v0 = v8.query("user_meta", 0, "meta_key = ?", v12, 0, 0, 0);
                if ((v0 != null) && (v0.getCount() == 0)) {
                    this.cs().insert("user_meta", 0, v1_1);
                }
                ark>com.freshchat.consumer.sdk.c.kark>.c(v0);
            }
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.k.b() calling method android.database.sqlite.SQLiteDatabase.update()


    private void b(String p6, String p7)
    {
        if (com.freshchat.consumer.sdk.j.as.aI(p7)) {
            android.content.ContentValues v7_3 = new android.content.ContentValues();
            v7_3.put("is_uploaded", Integer.valueOf(1));
            android.database.sqlite.SQLiteDatabase v0_0 = this.cs();
            String[] v1_0 = new String[1];
            v1_0[0] = p6;
            v0_0.update("user_meta", v7_3, "meta_key = ?", v1_0);
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.g.m() calling method android.database.sqlite.SQLiteDatabase.update()


    public int m(long p7)
    {
        this.cs().beginTransaction();
        try {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("read", Integer.valueOf(1));
            android.database.sqlite.SQLiteDatabase v2_0 = this.cs();
            String[] v3_0 = new String[1];
            v3_0[0] = Long.toString(p7);
            int v7_2 = v2_0.update("message", v1_1, "read=0 AND channel_id=?", v3_0);
            try {
                this.cs().setTransactionSuccessful();
            } catch (android.database.sqlite.SQLiteDatabase v8_0) {
                com.freshchat.consumer.sdk.j.q.a(v8_0);
            }
            this.cs().endTransaction();
            return v7_2;
        } catch (int v7_3) {
            this.cs().endTransaction();
            throw v7_3;
        } catch (android.database.sqlite.SQLiteDatabase v8_0) {
            v7_2 = 0;
        }
    }

Method com.freshchat.consumer.sdk.c.f.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public boolean b(com.freshchat.consumer.sdk.beans.fragment.MessageFragment p5, String p6, int p7, int p8)
    {
        try {
            Exception v5_2 = com.freshchat.consumer.sdk.c.f.c(p5, p6, p7, p8);
            android.database.sqlite.SQLiteDatabase v1 = this.cs();
            String[] v3_1 = new String[2];
            v3_1[0] = p6;
            v3_1[1] = String.valueOf(p7);
            v1.update("fragments", v5_2, "_id=? AND position=?", v3_1);
            return 1;
        } catch (Exception v5_1) {
            com.freshchat.consumer.sdk.j.q.a(v5_1);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.e.U() calling method android.database.sqlite.SQLiteDatabase.update()


    public void U(String p7)
    {
        try {
            android.content.ContentValues v0_1 = new android.content.ContentValues();
            v0_1.put("_status", Integer.valueOf(com.freshchat.consumer.sdk.beans.Csat$CSatStatus.RATED_NOT_UPLOADED.asInt()));
            android.database.sqlite.SQLiteDatabase v1_0 = this.cs();
            String[] v4_1 = new String[1];
            v4_1[0] = p7;
            v1_0.update("custsat", v0_1, "conv_id=?", v4_1);
            return;
        } catch (Exception v7_1) {
            com.freshchat.consumer.sdk.j.q.a(v7_1);
            return;
        }
    }

Method com.freshchat.consumer.sdk.c.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(java.util.List p7, java.util.List p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        v0.beginTransaction();
        try {
            com.freshchat.consumer.sdk.c.j v1_3 = new android.content.ContentValues();
            v1_3.put("hidden", Integer.valueOf(1));
            v0.update("channels", v1_3, 0, 0);
            com.freshchat.consumer.sdk.c.j v1_1 = new com.freshchat.consumer.sdk.c.j(this.mContext);
            v1_1.a(com.freshchat.consumer.sdk.beans.Tag$TaggedType.CHANNEL);
            java.util.Iterator v2_4 = new java.util.ArrayList();
            boolean v7_1 = p7.iterator();
        } catch (boolean v7_7) {
            v0.endTransaction();
            throw v7_7;
        }
        while (v7_1.hasNext()) {
            int v4_3 = ((com.freshchat.consumer.sdk.beans.Channel) v7_1.next());
            if (v4_3.getLatestOrWelcomeMessage() != null) {
                v2_4.add(v4_3.getLatestOrWelcomeMessage());
            }
            v0.replace("channels", 0, this.b(v4_3));
        }
        if (com.freshchat.consumer.sdk.j.k.b(v2_4)) {
            boolean v7_4 = new com.freshchat.consumer.sdk.c.g(this.mContext);
            java.util.Iterator v2_5 = v2_4.iterator();
            while (v2_5.hasNext()) {
                v7_4.a(((com.freshchat.consumer.sdk.beans.Message) v2_5.next()), 0);
            }
        }
        if (com.freshchat.consumer.sdk.j.k.b(p8)) {
            v1_1.f(p8);
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.freshchat.consumer.sdk.c.a.e() calling method android.database.sqlite.SQLiteDatabase.update()


    private void e(com.freshchat.consumer.sdk.service.a.a p8)
    {
        try {
            int v0_3 = new com.freshchat.consumer.sdk.j.ab().toJson(p8);
            String v1_2 = new android.content.ContentValues();
            v1_2.put("json", v0_3);
            int v0_4 = this.cs();
            String[] v4_1 = new String[1];
            v4_1[0] = p8.dr();
            int v0_2 = v0_4.update("bl", v1_2, "_id = ?", v4_1);
            StringBuilder v2_2 = new StringBuilder("updated backlog ");
            v2_2.append(p8);
            v2_2.append(" with result ");
            v2_2.append(v0_2);
            com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, v2_2.toString());
            return;
        } catch (Exception v8_3) {
            com.freshchat.consumer.sdk.j.q.a(v8_3);
            return;
        }
    }

Method com.google.a.a.i.c() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void c(com.google.a.a.g p10)
    {
        if (p10 != null) {
            try {
                android.database.sqlite.SQLiteDatabase v1 = this.c();
            } catch (String v10_3) {
                throw v10_3;
            }
            if (v1 != null) {
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("last_retry_time", Long.valueOf(com.google.a.a.j.a()));
                v2_1.put("retry_count", Integer.valueOf((p10.c + 1)));
                Object[] v6_1 = new Object[2];
                v6_1[0] = "conversion_ping_id";
                v6_1[1] = Long.valueOf(p10.h);
                v1.update("conversiontracking", v2_1, String.format(java.util.Locale.US, "%s = %d", v6_1), 0);
                this.d();
                return;
            } else {
                return;
            }
        } else {
            return;
        }
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateSendRow() calling method android.database.sqlite.SQLiteDatabase.update()


    public final int updateSendRow(String p4, long p5, int p7)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("Mssgtimestamp", p4);
        v1_1.put("Mssgstatus", Integer.valueOf(p7));
        int v4_2 = new String[1];
        v4_2[0] = String.valueOf(p5);
        return v0_1.update("Bm_ChatWindow", v1_1, "_id= ?", v4_2);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateReadStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void updateReadStatus(android.os.Bundle p6)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        android.content.ContentValues v0_3 = new android.content.ContentValues();
        v0_3.put("readstatus", Integer.valueOf(p6.getInt("readstatus")));
        if (!com.bharatmatrimony.notification.NotificationUtil.checknotification(p6.getInt("msg_id"), com.bharatmatrimony.notification.NotificationUtil.GCM_NOTIFICATION)) {
            String[] v2_4 = new String[1];
            v2_4[0] = p6.getString("ngrpid");
            this.sql_db.update("Bm_Notification", v0_3, "ngrpid= ? ", v2_4);
        } else {
            String[] v2_6 = new String[2];
            v2_6[0] = String.valueOf(p6.getInt("msg_id"));
            v2_6[1] = p6.getString("matriid");
            this.sql_db.update("Bm_Notification", v0_3, "msg_id= ? AND matriid= ?", v2_6);
        }
        this.sql_db.close();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateNotification() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void updateNotification(int p6, String p7)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        android.content.ContentValues v0_3 = new android.content.ContentValues();
        v0_3.put("dateadded", Long.valueOf(System.currentTimeMillis()));
        v0_3.put("message", p7);
        v0_3.put("disp_status", Integer.valueOf(0));
        v0_3.put("readstatus", Integer.valueOf(0));
        String[] v7_4 = new String[2];
        v7_4[0] = String.valueOf(p6);
        v7_4[1] = com.bharatmatrimony.AppState.getInstance().getMemberMatriID();
        this.sql_db.update("Bm_Notification", v0_3, "msg_id= ? AND matriid= ?", v7_4);
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateMssgReadStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    public final int updateMssgReadStatus(String p4, int p5, String p6)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("Mssgstatus", Integer.valueOf(p5));
        String[] v5_1 = new String[2];
        v5_1[0] = p6;
        v5_1[1] = p4;
        return v0_1.update("Bm_ChatWindow", v1_1, "Userid= ? AND Mssgtimestamp=?", v5_1);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateDisplayStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void updateDisplayStatus()
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        android.database.sqlite.SQLiteDatabase v0_3 = new android.content.ContentValues();
        v0_3.put("disp_status", Integer.valueOf(1));
        String[] v2_2 = new String[2];
        v2_2[0] = "3";
        v2_2[1] = com.bharatmatrimony.AppState.getInstance().getMemberMatriID();
        this.sql_db.update("Bm_Notification", v0_3, "msgtype= ? AND matriid= ?", v2_2);
        this.sql_db.close();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.updateCta() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void updateCta(int p5, String p6, String p7)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        android.content.ContentValues v0_3 = new android.content.ContentValues();
        if (p5 != 1) {
            v0_3.put("secondary_cta", Integer.valueOf(0));
            v0_3.put("primary_cta", Integer.valueOf(0));
            v0_3.put("primary_cta", Integer.valueOf(0));
            v0_3.put("message", p7);
        } else {
            v0_3.put("secondary_cta", Integer.valueOf(0));
            v0_3.put("primary_cta", Integer.valueOf(2));
            v0_3.put("message", p7);
        }
        android.database.sqlite.SQLiteDatabase v5_8 = new String[1];
        v5_8[0] = p6;
        this.sql_db.update("Bm_Notification", v0_3, "ngrpid= ?", v5_8);
        this.sql_db.close();
        return;
    }

Method com.freshchat.consumer.sdk.c.h.g() calling method android.database.sqlite.SQLiteDatabase.replace()


    public java.util.List g(java.util.List p7)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (com.freshchat.consumer.sdk.j.k.b(p7)) {
            java.util.Iterator v7_1 = p7.iterator();
            while (v7_1.hasNext()) {
                Boolean v1_4;
                if (this.cs().replace("participants", 0, com.freshchat.consumer.sdk.c.h.a(((com.freshchat.consumer.sdk.beans.Participant) v7_1.next()))) == -1) {
                    v1_4 = 0;
                } else {
                    v1_4 = 1;
                }
                v0_1.add(Boolean.valueOf(v1_4));
            }
        }
        return v0_1;
    }

Method com.freshchat.consumer.sdk.c.g.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public boolean a(com.freshchat.consumer.sdk.beans.Message p6, boolean p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        if (p7) {
            v0.beginTransaction();
        }
        String v1_3 = ark>com.freshchat.consumer.sdk.c.gark>.c(p6);
        this.cy().a(p6.getMessageFragments(), p6.getAlias(), p6.getUploadState());
        com.freshchat.consumer.sdk.j.ai.i(ark>com.freshchat.consumer.sdk.c.gark>.TAG, "Inserted message into DB with ID ".concat(String.valueOf(this.cs().replace("message", 0, v1_3))));
        if (p7) {
            v0.setTransactionSuccessful();
        }
        if (p7) {
            v0.endTransaction();
        }
        return 1;
    }

Method com.freshchat.consumer.sdk.c.f.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public boolean a(com.freshchat.consumer.sdk.beans.fragment.MessageFragment p1, String p2, int p3, int p4)
    {
        try {
            this.cs().replace("fragments", 0, ark>com.freshchat.consumer.sdk.c.fark>.c(p1, p2, p3, p4));
            return 1;
        } catch (int v1_4) {
            com.freshchat.consumer.sdk.j.q.a(v1_4);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.c.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public void a(java.util.List p7, java.util.List p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        v0.beginTransaction();
        try {
            com.freshchat.consumer.sdk.c.j v1_3 = new android.content.ContentValues();
            v1_3.put("hidden", Integer.valueOf(1));
            v0.update("channels", v1_3, 0, 0);
            com.freshchat.consumer.sdk.c.j v1_1 = new com.freshchat.consumer.sdk.c.j(this.mContext);
            v1_1.a(com.freshchat.consumer.sdk.beans.Tag$TaggedType.CHANNEL);
            java.util.Iterator v2_4 = new java.util.ArrayList();
            boolean v7_1 = p7.iterator();
        } catch (boolean v7_7) {
            v0.endTransaction();
            throw v7_7;
        }
        while (v7_1.hasNext()) {
            int v4_3 = ((com.freshchat.consumer.sdk.beans.Channel) v7_1.next());
            if (v4_3.getLatestOrWelcomeMessage() != null) {
                v2_4.add(v4_3.getLatestOrWelcomeMessage());
            }
            v0.replace("channels", 0, this.b(v4_3));
        }
        if (com.freshchat.consumer.sdk.j.k.b(v2_4)) {
            boolean v7_4 = new com.freshchat.consumer.sdk.c.g(this.mContext);
            java.util.Iterator v2_5 = v2_4.iterator();
            while (v2_5.hasNext()) {
                v7_4.a(((com.freshchat.consumer.sdk.beans.Message) v2_5.next()), 0);
            }
        }
        if (com.freshchat.consumer.sdk.j.k.b(p8)) {
            v1_1.f(p8);
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

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

Couldn't retrieve source code

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


    public final String x()
    {
        try {
            Throwable v0_1 = this.w().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.q().k_().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.a.eq.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String a(long p5)
    {
        this.c();
        this.j();
        try {
            String v1_3 = this.w();
            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.q().v().a("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.q().k_().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.a.eq.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final android.util.Pair a(String p8, Long p9)
    {
        this.c();
        this.j();
        try {
            int v1_1 = this.w();
            com.google.android.gms.measurement.a.s v3_5 = new String[2];
            v3_5[0] = p8;
            v3_5[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_5);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.measurement.a.s v3_1 = Long.valueOf(v1_0.getLong(1));
                    java.io.IOException v2_2 = com.google.android.gms.c.j.iv.a(v2_1, v2_1.length);
                    String v4_2 = new com.google.android.gms.c.j.ct();
                    try {
                        v4_2.a(v2_2);
                    } catch (java.io.IOException v2_3) {
                        this.q().k_().a("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.a.q.a(p8), p9, v2_3);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_4 = android.util.Pair.create(v4_2, v3_1);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_4;
                } else {
                    this.q().v().a("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.q().k_().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.a.eq.E() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long E()
    {
        int v2_0 = 0;
        try {
            android.database.sqlite.SQLiteException v3_2 = this.w().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.q().k_().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.a.eq.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.a.s v5_3 = this.w().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.q().k_().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.a.eq.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long a(String p3, String[] p4, long p5)
    {
        com.google.android.gms.measurement.a.s v1 = 0;
        try {
            com.google.android.gms.measurement.a.s v4_3 = this.w().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.q().k_().a("Database error", p3, v5_3);
                throw v5_3;
            }
        } catch (Throwable v3_1) {
        } catch (long v5_3) {
        }
    }

Method com.google.android.gms.c.j.ad.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long a(String p3, String[] p4)
    {
        String v1 = 0;
        try {
            String v4_2 = this.B().rawQuery(p3, p4);
            try {
                if (!v4_2.moveToFirst()) {
                    if (v4_2 != null) {
                        v4_2.close();
                    }
                    return 0;
                } else {
                    long v0_2 = v4_2.getLong(0);
                    if (v4_2 != null) {
                        v4_2.close();
                    }
                    return v0_2;
                }
            } catch (long v3_1) {
                v1 = v4_2;
                if (v1 != null) {
                    v1.close();
                }
                throw v3_1;
            } catch (long v0_3) {
                v1 = v4_2;
                this.d("Database error", p3, v0_3);
                throw v0_3;
            }
        } catch (long v3_1) {
        } catch (long v0_3) {
        }
    }

Method com.google.android.gms.c.j.ad.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long a(String p5)
    {
        try {
            int v0_1 = this.B().rawQuery(p5, 0);
            try {
                if (!v0_1.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v1_6 = v0_1.getLong(0);
                    if (v0_1 != 0) {
                        v0_1.close();
                    }
                    return v1_6;
                }
            } catch (android.database.sqlite.SQLiteException v1_3) {
                this.d("Database error", p5, v1_3);
                throw v1_3;
            }
        } catch (Throwable v5_1) {
            v0_1 = 0;
            if (v0_1 != 0) {
                v0_1.close();
            }
            throw v5_1;
        } catch (int v0_2) {
            v1_3 = v0_2;
            v0_1 = 0;
        } catch (Throwable v5_1) {
        }
    }

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                long v7_24;
                int v22;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        String v39_0;
                                        int v36;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_7;
                                        boolean v40;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            int v63_0;
                                            com.google.android.gms.measurement.a.an v44;
                                            long v42;
                                            long v43;
                                            int v41;
                                            int v62;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                long v45;
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            Boolean v65;
                                                            String v5_81;
                                                            long v66;
                                                            long v64;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                int v17_2;
                                long v16_5;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                int v22;
                long v7_24;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        String v39_0;
                                        int v36;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        boolean v40;
                                        com.google.android.gms.measurement.a.s v2_7;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            com.google.android.gms.measurement.a.an v44;
                                            int v41;
                                            long v42;
                                            int v62;
                                            long v43;
                                            int v63_0;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                long v45;
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            long v66;
                                                            Boolean v65;
                                                            String v5_81;
                                                            long v64;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                int v17_2;
                                long v16_5;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

Method com.freshchat.consumer.sdk.c.i.cJ() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List cJ()
    {
        java.util.List v0_1 = new java.util.ArrayList();
        try {
            int v2_0 = this.cs().rawQuery("SELECT * FROM categories WHERE _id IN (SELECT DISTINCT category_id FROM articles) ORDER BY position", 0);
            try {
                if (!com.freshchat.consumer.sdk.c.i.b(v2_0)) {
                    com.freshchat.consumer.sdk.c.i.c(v2_0);
                    return v0_1;
                } else {
                    v0_1 = this.h(v2_0, this.h(v2_0));
                    com.freshchat.consumer.sdk.c.i.c(v2_0);
                    return v0_1;
                }
            } catch (java.util.List v1_0) {
                com.freshchat.consumer.sdk.j.q.a(v1_0);
                com.freshchat.consumer.sdk.c.i.c(v2_0);
                return v0_1;
            }
        } catch (java.util.List v0_2) {
            v2_0 = 0;
            com.freshchat.consumer.sdk.c.i.c(v2_0);
            throw v0_2;
        } catch (int v2_2) {
            v2_0 = 0;
            v1_0 = v2_2;
        } catch (java.util.List v0_2) {
        }
    }

Method com.freshchat.consumer.sdk.c.i.m() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor m(java.util.List p6)
    {
        if (!com.freshchat.consumer.sdk.j.k.a(p6)) {
            String v0_3 = new StringBuilder(" SELECT DISTINCT c.*  FROM categories as c  INNER JOIN articles as a  ON ( c._id = a.category_id), (SELECT DISTINCT tagged_id FROM tags WHERE ");
            android.database.sqlite.SQLiteDatabase v1_4 = com.freshchat.consumer.sdk.j.k.c(p6);
            String[] v2_2 = new com.freshchat.consumer.sdk.beans.Tag$TaggedType[1];
            v2_2[0] = com.freshchat.consumer.sdk.beans.Tag$TaggedType.CATEGORY;
            v0_3.append(com.freshchat.consumer.sdk.c.j.a(v1_4, v2_2));
            v0_3.append(") AS matching_tags  WHERE matching_tags.tagged_id = c._id ORDER BY c.position");
            String[] v2_0 = new String[0];
            return this.cs().rawQuery(v0_3.toString(), ((String[]) p6.toArray(v2_0)));
        } else {
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.i.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private android.database.Cursor j(java.util.List p7)
    {
        if (!com.freshchat.consumer.sdk.j.k.a(p7)) {
            String v0_3 = new StringBuilder(" SELECT DISTINCT a.*  FROM articles as a  INNER JOIN categories as c  ON (a.category_id = c._id), (SELECT *  FROM tags WHERE ");
            android.database.sqlite.SQLiteDatabase v1_10 = com.freshchat.consumer.sdk.j.k.c(p7);
            String[] v2_2 = new com.freshchat.consumer.sdk.beans.Tag$TaggedType[2];
            v2_2[0] = com.freshchat.consumer.sdk.beans.Tag$TaggedType.CATEGORY;
            v2_2[1] = com.freshchat.consumer.sdk.beans.Tag$TaggedType.ARTICLE;
            v0_3.append(com.freshchat.consumer.sdk.c.j.a(v1_10, v2_2));
            v0_3.append(") AS matching_tags  WHERE  (  matching_tags.tagged_type = \'");
            v0_3.append(com.freshchat.consumer.sdk.beans.Tag$TaggedType.ARTICLE.asInt());
            v0_3.append("\' AND  matching_tags.tagged_id = a._id )  OR  (  matching_tags.tagged_type = \'");
            v0_3.append(com.freshchat.consumer.sdk.beans.Tag$TaggedType.CATEGORY.asInt());
            v0_3.append("\' AND  matching_tags.tagged_id = a.category_id )  ORDER BY c.position,a.position");
            String[] v2_0 = new String[0];
            return this.cs().rawQuery(v0_3.toString(), ((String[]) p7.toArray(v2_0)));
        } else {
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.cD() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public long cD()
    {
        long v0_0 = 0;
        Exception v2_0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v5 = this.cs();
            String[] v6_1 = new String[1];
            v6_1[0] = "0";
            Exception v3_0 = v5.rawQuery("SELECT MAX(created_at) as MAX_TIME FROM message WHERE user_type !=? ", v6_1);
            try {
                if (v3_0.moveToNext()) {
                    v0_0 = v3_0.getLong(0);
                }
            } catch (long v0_1) {
                v2_0 = v3_0;
                com.freshchat.consumer.sdk.c.g.c(v2_0);
                throw v0_1;
            } catch (Exception v2_2) {
                Exception v3_1 = v2_2;
                v2_0 = v3_0;
                com.freshchat.consumer.sdk.j.q.a(v3_1);
                com.freshchat.consumer.sdk.c.g.c(v2_0);
                return 0;
            }
            com.freshchat.consumer.sdk.c.g.c(v3_0);
            return v0_0;
        } catch (long v0_1) {
        } catch (Exception v3_1) {
            com.freshchat.consumer.sdk.j.q.a(v3_1);
            com.freshchat.consumer.sdk.c.g.c(v2_0);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.cG() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.List cG()
    {
        Throwable v0_1 = new java.util.ArrayList();
        Long v1_0 = 0;
        try {
            Exception v2_4 = new StringBuilder("SELECT channel_id FROM conversations AS CONV  JOIN custsat AS CSAT  ON (CONV._id=CSAT.conv_id AND CSAT._status=");
            v2_4.append(com.freshchat.consumer.sdk.beans.Csat$CSatStatus.NOT_RATED.asInt());
            v2_4.append(")");
            Exception v2_1 = this.cs().rawQuery(v2_4.toString(), 0);
            try {
                while (v2_1.moveToNext()) {
                    v0_1.add(Long.valueOf(v2_1.getLong(0)));
                }
            } catch (Throwable v0_2) {
                v1_0 = v2_1;
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                throw v0_2;
            } catch (Long v1_2) {
                Exception v2_2 = v1_2;
                v1_0 = v2_1;
                com.freshchat.consumer.sdk.j.q.a(v2_2);
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                return v0_1;
            }
            com.freshchat.consumer.sdk.c.g.c(v2_1);
            return v0_1;
        } catch (Throwable v0_2) {
        } catch (Exception v2_2) {
            com.freshchat.consumer.sdk.j.q.a(v2_2);
            com.freshchat.consumer.sdk.c.g.c(v1_0);
            return v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.f.h() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.Map h(long p7)
    {
        java.util.HashMap v0_1 = new java.util.HashMap();
        String v1_0 = 0;
        try {
            int v3_3 = this.cs();
            com.freshchat.consumer.sdk.beans.fragment.MessageFragment v4_2 = new String[1];
            v4_2[0] = Long.toString(p7);
            int v7_2 = v3_3.rawQuery("SELECT fragments.* FROM fragments JOIN message ON message._id = fragments._id WHERE display!=-1 AND channel_id=? ORDER BY _id,position", v4_2);
            try {
                if (com.freshchat.consumer.sdk.c.f.b(v7_2)) {
                    java.util.Map v8_2 = this.a(v7_2);
                    do {
                        String v1_1 = this.e(v7_2, v8_2);
                        if (v1_1 != null) {
                            if (!v0_1.containsKey(com.freshchat.consumer.sdk.c.f$a.a(v1_1))) {
                                v0_1.put(com.freshchat.consumer.sdk.c.f$a.a(v1_1), new java.util.ArrayList());
                            }
                            java.util.List v2_6 = ((java.util.List) v0_1.get(com.freshchat.consumer.sdk.c.f$a.a(v1_1)));
                            v2_6.add(com.freshchat.consumer.sdk.c.f$a.b(v1_1), com.freshchat.consumer.sdk.c.f$a.c(v1_1));
                            v0_1.put(com.freshchat.consumer.sdk.c.f$a.a(v1_1), v2_6);
                        }
                    } while(v7_2.moveToNext());
                }
            } catch (java.util.Map v8_3) {
                com.freshchat.consumer.sdk.c.f.c(v7_2);
                throw v8_3;
            } catch (java.util.Map v8_0) {
                v1_0 = v7_2;
                com.freshchat.consumer.sdk.j.q.a(v8_0);
                com.freshchat.consumer.sdk.c.f.c(v1_0);
                return v0_1;
            }
            com.freshchat.consumer.sdk.c.f.c(v7_2);
            return v0_1;
        } catch (java.util.Map v8_3) {
            v7_2 = v1_0;
        } catch (java.util.Map v8_0) {
            com.freshchat.consumer.sdk.j.q.a(v8_0);
            com.freshchat.consumer.sdk.c.f.c(v1_0);
            return v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.c.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List d(java.util.List p11)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.Cursor v1 = 0;
        try {
            java.util.Map v11_1;
            if (!com.freshchat.consumer.sdk.j.k.b(p11)) {
                v11_1 = this.cs().query("channels", com.freshchat.consumer.sdk.c.c.ee, "hidden = 0 AND restricted = 0", 0, 0, 0, "position");
                v1 = v11_1;
                if (com.freshchat.consumer.sdk.c.c.b(v1)) {
                    java.util.Map v11_5 = this.a(v1);
                    do {
                        boolean v2_4 = this.b(v1, v11_5);
                        if (v2_4) {
                            v0_1.add(v2_4);
                        }
                    } while(v1.moveToNext());
                }
            } else {
                boolean v2_1 = new StringBuilder(" SELECT DISTINCT channels.*  FROM channels, (SELECT *  FROM tags WHERE ");
                String v3_1 = com.freshchat.consumer.sdk.j.k.c(p11);
                String[] v4_2 = new com.freshchat.consumer.sdk.beans.Tag$TaggedType[1];
                v4_2[0] = com.freshchat.consumer.sdk.beans.Tag$TaggedType.CHANNEL;
                v2_1.append(com.freshchat.consumer.sdk.c.j.a(v3_1, v4_2));
                v2_1.append(")  AS matching_tags  WHERE ( matching_tags.tagged_id = _id) AND hidden= 0  ORDER BY position");
                String[] v4_3 = new String[0];
                v11_1 = this.cs().rawQuery(v2_1.toString(), ((String[]) p11.toArray(v4_3)));
            }
        } catch (java.util.Map v11_7) {
            com.freshchat.consumer.sdk.c.c.c(v1);
            throw v11_7;
        } catch (java.util.Map v11_6) {
            com.freshchat.consumer.sdk.j.q.a(v11_6);
        }
        com.freshchat.consumer.sdk.c.c.c(v1);
        return v0_1;
    }

Method com.google.android.gms.measurement.a.n.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.a.eu.a(this.a.q(), p8, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", 0);
        return;
    }

Method com.google.android.gms.measurement.a.eu.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.c.j.ae.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p11)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p11.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                v0_13.close();
                throw v11_9;
            }
        }
        int v4 = 0;
        if (this.a(p11, "hits2")) {
            String v0_7 = com.google.android.gms.c.j.ae.b(p11, "hits2");
            int v6_0 = new String[4];
            v6_0[0] = "hit_id";
            v6_0[1] = "hit_string";
            v6_0[2] = "hit_time";
            v6_0[3] = "hit_url";
            int v7_4 = 0;
            while (v7_4 < 4) {
                String v8 = v6_0[v7_4];
                if (v0_7.remove(v8)) {
                    v7_4++;
                } else {
                    String v0_14;
                    String v1_7 = String.valueOf(v8);
                    if (v1_7.length() == 0) {
                        v0_14 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_14 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_14);
                }
            }
            int v6_3 = (v0_7.remove("hit_app_id") ^ 1);
            if (v0_7.isEmpty()) {
                if (v6_3 != 0) {
                    p11.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p11.execSQL(com.google.android.gms.c.j.ad.D());
        }
        if (this.a(p11, "properties")) {
            android.database.sqlite.SQLiteException v11_8 = com.google.android.gms.c.j.ae.b(p11, "properties");
            int v6_4 = new String[6];
            v6_4[0] = "app_uid";
            v6_4[1] = "cid";
            v6_4[2] = "tid";
            v6_4[3] = "params";
            v6_4[4] = "adid";
            v6_4[5] = "hits_count";
            while (v4 < 6) {
                String v1_1 = v6_4[v4];
                if (v11_8.remove(v1_1)) {
                    v4++;
                } else {
                    String v0_2;
                    String v1_2 = String.valueOf(v1_1);
                    if (v1_2.length() == 0) {
                        v0_2 = new String("Database properties is missing required column: ");
                    } else {
                        v0_2 = "Database properties is missing required column: ".concat(v1_2);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_2);
                }
            }
            if (v11_8.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            }
        } else {
            p11.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.c.j.ae.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.a.a.i.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int e()
    {
        try {
            String v1_1 = this.c();
        } catch (String v1_6) {
            throw v1_6;
        }
        if (v1_1 != null) {
            int v3_2 = 0;
            try {
                String v1_7 = v1_1.rawQuery("select count(*) from conversiontracking", 0);
                try {
                    if (!v1_7.moveToFirst()) {
                        if (v1_7 == null) {
                            return 0;
                        } else {
                            v1_7.close();
                            return 0;
                        }
                    } else {
                        int v3_3 = v1_7.getInt(0);
                        if (v1_7 != null) {
                            v1_7.close();
                        }
                        return v3_3;
                    }
                } catch (Throwable v2_1) {
                    v3_2 = v1_7;
                    if (v3_2 != 0) {
                        v3_2.close();
                    }
                    throw v2_1;
                } catch (int v3_1) {
                    v3_2 = v1_7;
                    String v1_0 = v3_1;
                    String v1_3 = String.valueOf(v1_0.getMessage());
                    if (v1_3.length() == 0) {
                        String v1_5 = new String("Error getting record count");
                    } else {
                        v1_5 = "Error getting record count".concat(v1_3);
                    }
                    android.util.Log.w("GoogleConversionReporter", v1_5);
                    if (v3_2 == 0) {
                        return 0;
                    } else {
                        v3_2.close();
                        return 0;
                    }
                }
            } catch (Throwable v2_1) {
            } catch (String v1_0) {
            }
        } else {
            return 0;
        }
    }

Method d.a.a.a.d.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public final 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 d.a.a.a.d.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


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

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

Couldn't retrieve source code

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


    public final boolean a(com.google.android.gms.measurement.a.ey p9, long p10, boolean p12)
    {
        this.c();
        this.j();
        com.google.android.gms.common.internal.ag.a(p9);
        com.google.android.gms.common.internal.ag.a(p9.a);
        long v0_6 = new com.google.android.gms.c.j.ct();
        v0_6.d = Long.valueOf(p9.d);
        byte[] v1_2 = new com.google.android.gms.c.j.cu[p9.e.a()];
        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.c.j.cu();
            int v7 = (v3_2 + 1);
            v0_6.a[v3_2] = v5_1;
            v5_1.a = v4_1;
            this.f().a(v5_1, p9.e.a(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.e()];
            String v3_4 = com.google.android.gms.c.j.iw.a(v1_6, v1_6.length);
            v0_6.a(v3_4);
            v3_4.a();
            this.q().v().a("Saving event, name, data size", this.n().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.w().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.q().k_().a("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.a.q.a(p9.a));
                    return 0;
                }
            } catch (com.google.android.gms.measurement.a.s v10_9) {
                this.q().k_().a("Error storing raw event. appId", com.google.android.gms.measurement.a.q.a(p9.a), v10_9);
                return 0;
            }
        } catch (com.google.android.gms.measurement.a.s v10_6) {
            this.q().k_().a("Data loss. Failed to serialize event params/data. appId", com.google.android.gms.measurement.a.q.a(p9.a), v10_6);
            return 0;
        }
    }

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


    public final boolean a(com.google.android.gms.c.j.cw p9, boolean p10)
    {
        this.c();
        this.j();
        com.google.android.gms.common.internal.ag.a(p9);
        com.google.android.gms.common.internal.ag.a(p9.o);
        com.google.android.gms.common.internal.ag.a(p9.f);
        this.z();
        int v0_0 = this.l().a();
        if ((p9.f.longValue() < (v0_0 - com.google.android.gms.measurement.a.en.h())) || (p9.f.longValue() > (v0_0 + com.google.android.gms.measurement.a.en.h()))) {
            this.q().h().a("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.a.q.a(p9.o), Long.valueOf(v0_0), p9.f);
        }
        try {
            String v1_5 = new byte[p9.e()];
            Object v2_10 = com.google.android.gms.c.j.iw.a(v1_5, v1_5.length);
            p9.a(v2_10);
            v2_10.a();
            String v1_6 = this.f().b(v1_5);
            this.q().v().a("Saving bundle, size", Integer.valueOf(v1_6.length));
            Object v2_15 = new android.content.ContentValues();
            v2_15.put("app_id", p9.o);
            v2_15.put("bundle_end_timestamp", p9.f);
            v2_15.put("data", v1_6);
            v2_15.put("has_realtime", Integer.valueOf(p10));
        } catch (com.google.android.gms.measurement.a.s v10_6) {
            this.q().k_().a("Data loss. Failed to serialize bundle. appId", com.google.android.gms.measurement.a.q.a(p9.o), v10_6);
            return 0;
        }
        if (p9.H != null) {
            v2_15.put("retry_count", p9.H);
        }
        try {
            if (this.w().insert("queue", 0, v2_15) != -1) {
                return 1;
            } else {
                this.q().k_().a("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.a.q.a(p9.o));
                return 0;
            }
        } catch (com.google.android.gms.measurement.a.s v10_1) {
            this.q().k_().a("Error storing bundle. appId", com.google.android.gms.measurement.a.q.a(p9.o), v10_1);
            return 0;
        }
    }

Method com.google.android.gms.c.j.ad.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void a(com.google.android.gms.c.j.bi p9)
    {
        com.google.android.gms.common.internal.ag.a(p9);
        com.google.android.gms.analytics.q.d();
        this.y();
        com.google.android.gms.common.internal.ag.a(p9);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p9.b().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.c.j.bd.c.a()).intValue();
            String v2_6 = this.E();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_7 = this.c(((v2_6 - ((long) v1_5)) + 1));
                this.d("Store full, deleting hits to make room, count", Integer.valueOf(v1_7.size()));
                this.a(v1_7);
            }
            int v3_11;
            android.database.sqlite.SQLiteDatabase v1_8 = this.B();
            String v2_9 = new android.content.ContentValues();
            v2_9.put("hit_string", v0_1);
            v2_9.put("hit_time", Long.valueOf(p9.d()));
            v2_9.put("hit_app_id", Integer.valueOf(p9.a()));
            if (!p9.f()) {
                v3_11 = com.google.android.gms.c.j.av.i();
            } else {
                v3_11 = com.google.android.gms.c.j.av.h();
            }
            v2_9.put("hit_url", v3_11);
            try {
                Long v0_8 = v1_8.insert("hits2", 0, v2_9);
            } catch (String v9_2) {
                this.e("Error storing a hit", v9_2);
                return;
            }
            if (v0_8 != -1) {
                this.b("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p9);
                return;
            } else {
                this.f("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.k().a(p9, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

Method com.freshchat.consumer.sdk.c.k.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(String p17, String p18, boolean p19)
    {
        if (com.freshchat.consumer.sdk.j.as.aI(p18)) {
            android.content.ContentValues v1_1 = this.b(p17, p18, p19);
            String v3_1 = this.cs();
            String[] v5_0 = new String[2];
            v5_0[0] = p17;
            v5_0[1] = p18;
            if (v3_1.update("user_meta", v1_1, "meta_key= ? AND meta_value!= ?", v5_0) == 0) {
                android.database.sqlite.SQLiteDatabase v8 = this.cs();
                String[] v12 = new String[1];
                v12[0] = p17;
                android.database.Cursor v0 = v8.query("user_meta", 0, "meta_key = ?", v12, 0, 0, 0);
                if ((v0 != null) && (v0.getCount() == 0)) {
                    this.cs().insert("user_meta", 0, v1_1);
                }
                ark>com.freshchat.consumer.sdk.c.kark>.c(v0);
            }
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.a.g() calling method android.database.sqlite.SQLiteDatabase.insert()


    private boolean g(com.freshchat.consumer.sdk.service.a.a p6)
    {
        if (p6.getType() != 0) {
            try {
                String v0_2 = new android.content.ContentValues();
                String v1_8 = new com.freshchat.consumer.sdk.j.ab().toJson(p6);
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, "json for holder is ".concat(String.valueOf(p6)));
                v0_2.put("json", v1_8);
                v0_2.put("_id", p6.dr());
                v0_2.put("priority", Integer.valueOf(p6.getPriority()));
                v0_2.put("type", Integer.valueOf(p6.getType()));
                v0_2.put("created_m", Long.valueOf(System.currentTimeMillis()));
                String v0_3 = this.cs().insert("bl", 0, v0_2);
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, "*********************************************");
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, "Backlog saved - ".concat(String.valueOf(v0_3)));
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, "*********************************************");
                return 1;
            } catch (int v6_9) {
                com.freshchat.consumer.sdk.j.q.a(v6_9);
                return 0;
            }
        } else {
            throw new RuntimeException("Type cannot be undefined");
        }
    }

Method com.google.a.a.i.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void b(com.google.a.a.g p7)
    {
        try {
            long v1_0 = this.c();
        } catch (long v7_3) {
            throw v7_3;
        }
        if (v1_0 != 0) {
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put("string_url", p7.g);
            v2_1.put("preference_key", p7.f);
            v2_1.put("is_repeatable", Integer.valueOf(p7.b));
            v2_1.put("parameter_is_null", Integer.valueOf(p7.a));
            v2_1.put("preference_name", p7.e);
            v2_1.put("record_time", Long.valueOf(p7.d));
            v2_1.put("retry_count", Integer.valueOf(0));
            v2_1.put("last_retry_time", Long.valueOf(p7.d));
            p7.h = v1_0.insert("conversiontracking", 0, v2_1);
            this.d();
            if (((long) this.e()) > 20000) {
                this.f();
            }
            return;
        } else {
            return;
        }
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.insertNotification() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void insertNotification(android.os.Bundle p6)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        android.content.ContentValues v0_3 = new android.content.ContentValues();
        v0_3.put("msg_id", Integer.valueOf(p6.getInt("msg_id")));
        v0_3.put("matriid", p6.getString("matriid"));
        v0_3.put("ngrpid", p6.getString("ngrpid"));
        v0_3.put("notifyids", p6.getString("notifyids"));
        v0_3.put("senderid", p6.getString("senderid"));
        v0_3.put("message", p6.getString("message"));
        v0_3.put("image", p6.getString("image"));
        v0_3.put("readstatus", Integer.valueOf(p6.getInt("readstatus")));
        v0_3.put("msgtype", Integer.valueOf(p6.getInt("msgtype")));
        v0_3.put("primary_cta", Integer.valueOf(p6.getInt("primary_cta")));
        v0_3.put("secondary_cta", Integer.valueOf(p6.getInt("secondary_cta")));
        v0_3.put("disp_status", Integer.valueOf(p6.getInt("disp_status")));
        v0_3.put("dateadded", Long.valueOf(p6.getLong("dateadded")));
        v0_3.put("primary_cnt", p6.getString("primary_cnt"));
        v0_3.put("secondary_cnt", p6.getString("secondary_cnt"));
        v0_3.put("sendername", p6.getString("sendername"));
        this.sql_db.insert("Bm_Notification", 0, v0_3);
        this.sql_db.close();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.insertNotification() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void insertNotification(android.database.sqlite.SQLiteDatabase p4, android.content.ContentValues p5)
    {
        if ((p4 == null) || (!p4.isOpen())) {
            p4 = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        p4.insert("Bm_Notification", 0, p5);
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.insertData_PendingMessgTable() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void insertData_PendingMessgTable(String p4, String p5, long p6)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("Userid", p4);
        v1_1.put("Message", p5);
        v1_1.put("RandomTimePending", Long.valueOf(p6));
        v0_1.insert("Bm_PendingSendMessg", 0, v1_1);
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.insertData() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final long insertData(String p4, String p5, String p6, int p7, int p8)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("Userid", p4);
        v1_1.put("Message", p5);
        v1_1.put("Mssgtimestamp", p6);
        v1_1.put("Mssgstatus", Integer.valueOf(p7));
        v1_1.put("Mssgfrom", Integer.valueOf(p8));
        return v0_1.insert("Bm_ChatWindow", 0, v1_1);
    }

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


    final void a(java.util.List p6)
    {
        this.c();
        this.j();
        com.google.android.gms.common.internal.ag.a(p6);
        com.google.android.gms.common.internal.ag.a(p6.size());
        if (this.L()) {
            android.database.sqlite.SQLiteException v6_1 = android.text.TextUtils.join(",", p6);
            String v1_1 = new StringBuilder((String.valueOf(v6_1).length() + 2));
            v1_1.append("(");
            v1_1.append(v6_1);
            v1_1.append(")");
            android.database.sqlite.SQLiteException v6_3 = v1_1.toString();
            String v1_3 = new StringBuilder((String.valueOf(v6_3).length() + 80));
            v1_3.append("SELECT COUNT(1) FROM queue WHERE rowid IN ");
            v1_3.append(v6_3);
            v1_3.append(" AND retry_count =  2147483647 LIMIT 1");
            if (this.b(v1_3.toString(), 0) > 0) {
                this.q().h().a("The number of upload retries exceeds the limit. Will remain unchanged.");
            }
            try {
                com.google.android.gms.measurement.a.s v0_14 = this.w();
                StringBuilder v2_2 = new StringBuilder((String.valueOf(v6_3).length() + 127));
                v2_2.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN ");
                v2_2.append(v6_3);
                v2_2.append(" AND (retry_count IS NULL OR retry_count < 2147483647)");
                v0_14.execSQL(v2_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException v6_6) {
                this.q().k_().a("Error incrementing retry count. error", v6_6);
                return;
            }
        } else {
            return;
        }
    }

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


    final com.google.android.gms.c.j.cr[] a(String p91, com.google.android.gms.c.j.ct[] p92, com.google.android.gms.c.j.cz[] p93)
    {
        long[] v15_0 = p91;
        int v13_7 = p92;
        String vtmp1 = com.google.android.gms.common.internal.ag.a(p91);
        boolean v11_10 = new java.util.HashSet();
        long[] v12_15 = new android.support.v4.g.a();
        String v10_0 = new android.support.v4.g.a();
        Integer v9_3 = new android.support.v4.g.a();
        Integer v8_1 = new android.support.v4.g.a();
        int v6_20 = new android.support.v4.g.a();
        boolean v23 = this.s().c(p91, com.google.android.gms.measurement.a.g.ab);
        int v1_67 = this.h().e(p91);
        if (v1_67 != 0) {
            long v2_40 = v1_67.keySet().iterator();
            while (v2_40.hasNext()) {
                long v30_1;
                com.google.android.gms.c.j.cs[] v29;
                int v1_63;
                long v28_0;
                Integer v4_14 = ((Integer) v2_40.next()).intValue();
                String v3_22 = ((com.google.android.gms.c.j.cx) v1_67.get(Integer.valueOf(v4_14)));
                boolean v5_11 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v4_14)));
                java.util.BitSet v27_0 = v1_67;
                int v1_62 = ((java.util.BitSet) v9_3.get(Integer.valueOf(v4_14)));
                if (!v23) {
                    v28_0 = v1_62;
                    v29 = v2_40;
                    v30_1 = v11_10;
                    v1_63 = 0;
                } else {
                    v28_0 = v1_62;
                    v1_63 = new android.support.v4.g.a();
                    if (v3_22 == null) {
                        v29 = v2_40;
                        v30_1 = v11_10;
                    } else {
                        v29 = v2_40;
                        if (v3_22.c != null) {
                            long v2_29 = v3_22.c;
                            v30_1 = v11_10;
                            boolean v11_5 = v2_29.length;
                            String v14_2 = 0;
                            while (v14_2 < v11_5) {
                                String v31_0 = v11_5;
                                boolean v11_6 = v2_29[v14_2];
                                int v32_0 = v2_29;
                                if (v11_6.a != null) {
                                    v1_63.put(v11_6.a, v11_6.b);
                                }
                                v14_2++;
                                v11_5 = v31_0;
                                v2_29 = v32_0;
                            }
                        }
                    }
                    v8_1.put(Integer.valueOf(v4_14), v1_63);
                }
                long v2_33;
                if (v5_11) {
                    v2_33 = v28_0;
                } else {
                    v5_11 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v4_14), v5_11);
                    v2_33 = new java.util.BitSet();
                    v9_3.put(Integer.valueOf(v4_14), v2_33);
                }
                boolean v11_9 = 0;
                while (v11_9 < (v3_22.a.length << 6)) {
                    java.util.BitSet v33_3;
                    com.google.android.gms.c.j.cr v34_3;
                    android.support.v4.g.a v35_2;
                    Integer v8_8;
                    if (!com.google.android.gms.measurement.a.dz.a(v3_22.a, v11_9)) {
                        v33_3 = v8_1;
                        v34_3 = v9_3;
                        v35_2 = v10_0;
                        v8_8 = 0;
                    } else {
                        v33_3 = v8_1;
                        v34_3 = v9_3;
                        v35_2 = v10_0;
                        this.q().v().a("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v4_14), Integer.valueOf(v11_9));
                        v2_33.set(v11_9);
                        if (!com.google.android.gms.measurement.a.dz.a(v3_22.b, v11_9)) {
                        } else {
                            v5_11.set(v11_9);
                            v8_8 = 1;
                        }
                    }
                    if ((v1_63 != 0) && (v8_8 == null)) {
                        v1_63.remove(Integer.valueOf(v11_9));
                    }
                    v11_9++;
                    v8_1 = v33_3;
                    v9_3 = v34_3;
                    v10_0 = v35_2;
                }
                java.util.BitSet v33_2 = v8_1;
                com.google.android.gms.c.j.cr v34_2 = v9_3;
                android.support.v4.g.a v35_1 = v10_0;
                Integer v8_4 = new com.google.android.gms.c.j.cr();
                v12_15.put(Integer.valueOf(v4_14), v8_4);
                v8_4.d = Boolean.FALSE;
                v8_4.c = v3_22;
                v8_4.b = new com.google.android.gms.c.j.cx();
                v8_4.b.b = com.google.android.gms.measurement.a.dz.a(v5_11);
                v8_4.b.a = com.google.android.gms.measurement.a.dz.a(v2_33);
                if (v23) {
                    v8_4.b.c = ark>com.google.android.gms.measurement.a.ejark>.a(v1_63);
                    v6_20.put(Integer.valueOf(v4_14), new android.support.v4.g.a());
                }
                v1_67 = v27_0;
                v2_40 = v29;
                v11_10 = v30_1;
                v8_1 = v33_2;
                v9_3 = v34_2;
                v10_0 = v35_1;
            }
        }
        java.util.BitSet v33_1 = v8_1;
        com.google.android.gms.c.j.cr v34_1 = v9_3;
        android.support.v4.g.a v35_0 = v10_0;
        long v30_0 = v11_10;
        if (p92 != null) {
            String v10_6 = new android.support.v4.g.a();
            Integer v9_4 = p92.length;
            int v1_81 = 0;
            long v2_62 = 0;
            Integer v8_2 = 0;
            int v16_9 = 0;
            while (v8_2 < v9_4) {
                String v31_1;
                long[] v15_4;
                String v63_1;
                com.google.android.gms.c.j.cr v34_0;
                long[] v65_1;
                String v3_19;
                boolean v39_0;
                String v64_1;
                String v41_1;
                boolean v5_3;
                java.util.BitSet v33_0;
                java.util.BitSet v27_1;
                int v60_2;
                Integer v48_0;
                Integer v4_11;
                long v28_1;
                int v13_24;
                String v3_46 = v13_7[v8_2];
                boolean v11_28 = v3_46.b;
                String v14_14 = v3_46.a;
                if (!this.s().c(v15_0, com.google.android.gms.measurement.a.g.V)) {
                    v13_24 = v3_46;
                    v39_0 = v6_20;
                    v41_1 = v1_81;
                    v27_1 = v2_62;
                    v5_3 = v11_28;
                    v31_1 = v14_14;
                    v28_1 = v16_9;
                    int v46;
                    long[] v45;
                    String v44;
                    int v1_136;
                    int v47;
                    android.support.v4.g.a v43;
                    String v3_8;
                    long v2_11;
                    int v1_135 = this.h().a(v15_0, v13_24.b);
                    if (v1_135 != 0) {
                        v44 = v10_6;
                        v45 = v12_15;
                        v47 = v13_24;
                        v2_11 = v30_0;
                        v3_8 = v33_1;
                        v46 = v34_1;
                        v43 = v35_0;
                        v33_0 = v8_2;
                        v34_0 = v9_4;
                        v1_136 = v1_135.a();
                    } else {
                        this.q().h().a("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.a.q.a(p91), this.n().a(v5_3));
                        v1_136 = new com.google.android.gms.measurement.a.ez;
                        v33_0 = v8_2;
                        v34_0 = v9_4;
                        v44 = v10_6;
                        v43 = v35_0;
                        v46 = v34_1;
                        v45 = v12_15;
                        v2_11 = v30_0;
                        v47 = v13_24;
                        v3_8 = v33_1;
                        v1_136(v15_0, v13_24.b, 1, 1, v13_24.c.longValue(), 0, 0, 0, 0, 0);
                    }
                    boolean v11_3;
                    this.h().a(v1_136);
                    Integer v8_26 = v1_136.c;
                    String v10_1 = v44;
                    int v1_140 = ((java.util.Map) v10_1.get(v5_3));
                    if (v1_140 != 0) {
                        v11_3 = p91;
                    } else {
                        v11_3 = p91;
                        v1_140 = this.h().f(p91, v5_3);
                        if (v1_140 == 0) {
                            v1_140 = new android.support.v4.g.a();
                        }
                        v10_1.put(v5_3, v1_140);
                    }
                    long[] v12_10 = v1_140;
                    int v13_0 = v12_10.keySet().iterator();
                    while (v13_0.hasNext()) {
                        String v14_16 = ((Integer) v13_0.next()).intValue();
                        if (!v2_11.contains(Integer.valueOf(v14_16))) {
                            java.util.Map v51;
                            boolean v11_0;
                            long v2_0;
                            int v52_0;
                            long[] v15_2 = v45;
                            Integer v48_1 = v10_1;
                            String v10_5 = v43;
                            long[] v49 = v2_11;
                            com.google.android.gms.c.j.ct[] v50 = v13_0;
                            int v13_6 = v46;
                            long v2_86 = ((java.util.BitSet) v13_6.get(Integer.valueOf(v14_16)));
                            if (!v23) {
                                v51 = v2_86;
                                v11_0 = v39_0;
                                v2_0 = 0;
                                v52_0 = 0;
                            } else {
                                v51 = v2_86;
                                v52_0 = ((java.util.Map) v3_8.get(Integer.valueOf(v14_16)));
                                v11_0 = v39_0;
                                v2_0 = ((java.util.Map) v11_0.get(Integer.valueOf(v14_16)));
                            }
                            boolean v11_2;
                            int v6_0;
                            android.support.v4.g.a v56;
                            long v2_6;
                            int v57;
                            if (((com.google.android.gms.c.j.cr) v15_2.get(Integer.valueOf(v14_16))) != null) {
                                v2_6 = ((java.util.BitSet) v10_5.get(Integer.valueOf(v14_16)));
                                v56 = v11_0;
                                v6_0 = v51;
                                v57 = v52_0;
                                v11_2 = v2_0;
                            } else {
                                int v1_1 = new com.google.android.gms.c.j.cr();
                                v15_2.put(Integer.valueOf(v14_16), v1_1);
                                v1_1.d = Boolean.TRUE;
                                int v6_4 = new java.util.BitSet();
                                v10_5.put(Integer.valueOf(v14_16), v6_4);
                                int v1_4 = new java.util.BitSet();
                                boolean v53_1 = v2_0;
                                v13_6.put(Integer.valueOf(v14_16), v1_4);
                                if (!v23) {
                                    v2_6 = v6_4;
                                    v56 = v11_0;
                                    v57 = v52_0;
                                    v11_2 = v53_1;
                                    v6_0 = v1_4;
                                } else {
                                    long v2_9 = new android.support.v4.g.a();
                                    android.support.v4.g.a v54_1 = v1_4;
                                    v3_8.put(Integer.valueOf(v14_16), v2_9);
                                    int v1_7 = new android.support.v4.g.a();
                                    android.support.v4.g.a v55 = v2_9;
                                    v11_0.put(Integer.valueOf(v14_16), v1_7);
                                    v2_6 = v6_4;
                                    v56 = v11_0;
                                    v6_0 = v54_1;
                                    v57 = v55;
                                    v11_2 = v1_7;
                                }
                            }
                            int v1_11 = ((java.util.List) v12_10.get(Integer.valueOf(v14_16))).iterator();
                            while (v1_11.hasNext()) {
                                String v61;
                                String v63_0;
                                String v62;
                                long[] v58 = v12_10;
                                long[] v12_1 = ((com.google.android.gms.c.j.cj) v1_11.next());
                                String v59 = v1_11;
                                int v60_1 = v13_6;
                                if (!this.q().a(2)) {
                                    v61 = v3_8;
                                    v62 = v6_0;
                                    v63_0 = v10_5;
                                } else {
                                    v61 = v3_8;
                                    v62 = v6_0;
                                    v63_0 = v10_5;
                                    this.q().v().a("Evaluating filter. audience, filter, event", Integer.valueOf(v14_16), v12_1.a, this.n().a(v12_1.b));
                                    this.q().v().a("Filter definition", this.f().a(v12_1));
                                }
                                if ((v12_1.a != null) && (v12_1.a.intValue() <= 256)) {
                                    boolean v18_0;
                                    String v10_4;
                                    int v13_3;
                                    int v6_11;
                                    long[] v15_1;
                                    boolean v11_4;
                                    String v64_0;
                                    long[] v65_0;
                                    boolean v5_0;
                                    String v17_0;
                                    if (!v23) {
                                        v10_4 = v2_6;
                                        v18_0 = v5_3;
                                        v5_0 = v11_2;
                                        v65_0 = v15_2;
                                        v13_3 = v47;
                                        v15_1 = v49;
                                        v6_11 = v57;
                                        v17_0 = v59;
                                        v64_0 = v61;
                                        v11_4 = v62;
                                        if (!v10_4.get(v12_1.a.intValue())) {
                                            Integer v4_4;
                                            boolean v53_2 = v5_0;
                                            int v52_1 = v6_11;
                                            int v1_25 = this.a(v12_1, v18_0, v31_1, v8_26);
                                            com.google.android.gms.measurement.a.s vtmp279 = this.q().v();
                                            if (v1_25 != 0) {
                                                v4_4 = v1_25;
                                            } else {
                                                v4_4 = "null";
                                            }
                                            vtmp279.a("Event filter result", v4_4);
                                            if (v1_25 != 0) {
                                                v11_4.set(v12_1.a.intValue());
                                                if (!v1_25.booleanValue()) {
                                                    v2_6 = v10_4;
                                                    v6_0 = v11_4;
                                                    v47 = v13_3;
                                                    v49 = v15_1;
                                                    v1_11 = v17_0;
                                                    v5_3 = v18_0;
                                                    v57 = v52_1;
                                                    v11_2 = v53_2;
                                                    v12_10 = v58;
                                                    v13_6 = v60_1;
                                                    v10_5 = v63_0;
                                                    v3_8 = v64_0;
                                                    v15_2 = v65_0;
                                                } else {
                                                    v10_4.set(v12_1.a.intValue());
                                                }
                                            } else {
                                                v15_1.add(Integer.valueOf(v14_16));
                                            }
                                        } else {
                                            this.q().v().a("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v14_16), v12_1.a);
                                            v57 = v6_11;
                                            v2_6 = v10_4;
                                            v6_0 = v11_4;
                                            v47 = v13_3;
                                            v49 = v15_1;
                                            v1_11 = v17_0;
                                            v12_10 = v58;
                                            v13_6 = v60_1;
                                            v10_5 = v63_0;
                                            v3_8 = v64_0;
                                            v15_2 = v65_0;
                                        }
                                    } else {
                                        if ((v12_1 == null) || ((v12_1.e == null) || (!v12_1.e.booleanValue()))) {
                                            int v13_4 = 0;
                                        } else {
                                            v13_4 = 1;
                                        }
                                        if ((v12_1 == null) || ((v12_1.f == null) || (!v12_1.f.booleanValue()))) {
                                            int v16_2 = 0;
                                        } else {
                                            v16_2 = 1;
                                        }
                                        if ((!v2_6.get(v12_1.a.intValue())) || ((v13_4 != 0) || (v16_2 != 0))) {
                                            Integer v4_8;
                                            v17_0 = v59;
                                            v10_4 = v2_6;
                                            v64_0 = v61;
                                            v65_0 = v15_2;
                                            v15_1 = v49;
                                            v18_0 = v5_3;
                                            int v67 = v57;
                                            boolean v66 = v11_2;
                                            v11_4 = v62;
                                            int v1_42 = this.a(v12_1, v5_3, v31_1, v8_26);
                                            com.google.android.gms.measurement.a.s vtmp299 = this.q().v();
                                            if (v1_42 != 0) {
                                                v4_8 = v1_42;
                                            } else {
                                                v4_8 = "null";
                                            }
                                            vtmp299.a("Event filter result", v4_8);
                                            if (v1_42 != 0) {
                                                v11_4.set(v12_1.a.intValue());
                                                if (!v1_42.booleanValue()) {
                                                    v2_6 = v10_4;
                                                    v6_0 = v11_4;
                                                } else {
                                                    v10_4.set(v12_1.a.intValue());
                                                    if ((v13_4 == 0) && (v16_2 == 0)) {
                                                    } else {
                                                        v13_3 = v47;
                                                        if (v13_3.c == null) {
                                                            v2_6 = v10_4;
                                                            v6_0 = v11_4;
                                                            v47 = v13_3;
                                                        } else {
                                                            if (v16_2 == 0) {
                                                                v5_0 = v66;
                                                                v6_11 = v67;
                                                                ark>com.google.android.gms.measurement.a.ejark>.a(v6_11, v12_1.a.intValue(), v13_3.c.longValue());
                                                            } else {
                                                                v5_0 = v66;
                                                                ark>com.google.android.gms.measurement.a.ejark>.b(v5_0, v12_1.a.intValue(), v13_3.c.longValue());
                                                                v2_6 = v10_4;
                                                                v6_0 = v11_4;
                                                                v47 = v13_3;
                                                                v49 = v15_1;
                                                                v1_11 = v17_0;
                                                                v12_10 = v58;
                                                                v13_6 = v60_1;
                                                                v10_5 = v63_0;
                                                                v3_8 = v64_0;
                                                                v15_2 = v65_0;
                                                                v57 = v67;
                                                                v11_2 = v5_0;
                                                                v5_3 = v18_0;
                                                            }
                                                        }
                                                    }
                                                }
                                            } else {
                                                v15_1.add(Integer.valueOf(v14_16));
                                            }
                                            v49 = v15_1;
                                            v1_11 = v17_0;
                                            v5_3 = v18_0;
                                            v12_10 = v58;
                                            v13_6 = v60_1;
                                            v10_5 = v63_0;
                                            v3_8 = v64_0;
                                            v15_2 = v65_0;
                                            v11_2 = v66;
                                            v57 = v67;
                                        } else {
                                            this.q().v().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 = v58;
                                            v1_11 = v59;
                                            v13_6 = v60_1;
                                            v3_8 = v61;
                                            v6_0 = v62;
                                            v10_5 = v63_0;
                                        }
                                    }
                                } else {
                                    v10_4 = v2_6;
                                    v18_0 = v5_3;
                                    v53_2 = v11_2;
                                    v65_0 = v15_2;
                                    v13_3 = v47;
                                    v15_1 = v49;
                                    v52_1 = v57;
                                    v17_0 = v59;
                                    v64_0 = v61;
                                    v11_4 = v62;
                                    String v3 = p91;
                                    this.q().h().a("Invalid event filter ID. appId, id", com.google.android.gms.measurement.a.q.a(p91), String.valueOf(v12_1.a));
                                }
                            }
                            v43 = v10_5;
                            v45 = v15_2;
                            v10_1 = v48_1;
                            v2_11 = v49;
                            v13_0 = v50;
                            v39_0 = v56;
                            v46 = v13_6;
                            v11_3 = p91;
                        } else {
                            this.q().v().a("Skipping failed audience ID", Integer.valueOf(v14_16));
                        }
                    }
                    v15_4 = v2_11;
                    v64_1 = v3_8;
                    v48_0 = v10_1;
                    v3_19 = v11_3;
                    v4_11 = v39_0;
                    v63_1 = v43;
                    v65_1 = v45;
                    v60_2 = v46;
                    v2_62 = v27_1;
                    v16_9 = v28_1;
                    v1_81 = v41_1;
                } else {
                    boolean v5_42;
                    this.f();
                    Integer v4_23 = ((Long) com.google.android.gms.measurement.a.dz.b(v3_46, "_eid"));
                    if (v4_23 == null) {
                        v5_42 = 0;
                    } else {
                        v5_42 = 1;
                    }
                    boolean v37;
                    int v6_50;
                    if (!v5_42) {
                        v37 = v6_20;
                        v6_50 = 0;
                    } else {
                        v37 = v6_20;
                        if (!v11_28.equals("_ep")) {
                        } else {
                            v6_50 = 1;
                        }
                    }
                    if (v6_50 == 0) {
                        v13_24 = v3_46;
                        v39_0 = v37;
                        if (!v5_42) {
                        } else {
                            this.f();
                            long v2_63 = Long.valueOf(0);
                            int v1_114 = com.google.android.gms.measurement.a.dz.b(v13_24, "_epc");
                            if (v1_114 == 0) {
                                v1_114 = v2_63;
                            }
                            boolean v18_4;
                            int v16_11 = ((Long) v1_114).longValue();
                            if (v16_11 > 0) {
                                v18_4 = v4_23;
                                this.h().a(v15_0, v4_23, v16_11, v13_24);
                            } else {
                                this.q().h().a("Complex event with zero extra param count. eventName", v11_28);
                                v18_4 = v4_23;
                            }
                            v5_3 = v11_28;
                            v41_1 = v13_24;
                            v31_1 = v14_14;
                            v28_1 = v16_11;
                            v27_1 = v18_4;
                        }
                    } else {
                        boolean v39_1;
                        this.f();
                        boolean v11_30 = ((String) com.google.android.gms.measurement.a.dz.b(v3_46, "_en"));
                        if (!android.text.TextUtils.isEmpty(v11_30)) {
                            if ((v1_81 == 0) || ((v2_62 == 0) || (v4_23.longValue() != v2_62.longValue()))) {
                                boolean v5_50 = this.h().a(v15_0, v4_23);
                                if ((v5_50) && (v5_50.first != null)) {
                                    v1_81 = ((com.google.android.gms.c.j.ct) v5_50.first);
                                    v16_9 = ((Long) v5_50.second).longValue();
                                    this.f();
                                    v2_62 = ((Long) com.google.android.gms.measurement.a.dz.b(v1_81, "_eid"));
                                } else {
                                    v39_1 = v37;
                                    this.q().k_().a("Extra parameter without existing main event. eventName, eventId", v11_30, v4_23);
                                    v48_0 = v10_6;
                                    v65_1 = v12_15;
                                    v3_19 = v15_0;
                                    v15_4 = v30_0;
                                    v64_1 = v33_1;
                                    v60_2 = v34_1;
                                    v63_1 = v35_0;
                                    v4_11 = v39_1;
                                    v33_0 = v8_2;
                                    v34_0 = v9_4;
                                    v8_2 = (v33_0 + 1);
                                    v13_7 = p92;
                                    v6_20 = v4_11;
                                    v30_0 = v15_4;
                                    v9_4 = v34_0;
                                    v10_6 = v48_0;
                                    v34_1 = v60_2;
                                    v35_0 = v63_1;
                                    v33_1 = v64_1;
                                    v12_15 = v65_1;
                                    v15_0 = v3_19;
                                }
                            }
                            int v1_59;
                            int v6_53 = v1_81;
                            boolean v18_6 = v2_62;
                            long v19_1 = (v16_9 - 1);
                            if (v19_1 > 0) {
                                int v21 = 0;
                                v13_24 = v3_46;
                                String v40 = v6_53;
                                v39_0 = v37;
                                this.h().a(v15_0, v4_23, v19_1, v6_53);
                                v1_59 = v40;
                            } else {
                                int v1_124 = this.h();
                                v1_124.c();
                                v1_124.q().v().a("Clearing complex main event info. appId", v15_0);
                                try {
                                    long v2_73 = v1_124.w();
                                    String v38_1 = v3_46;
                                    try {
                                        String v3_51 = new String[1];
                                        try {
                                            v3_51[0] = v15_0;
                                            v2_73.execSQL("delete from main_event_params where app_id=?", v3_51);
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            v1_124.q().k_().a("Error clearing complex main event", v0_2);
                                        }
                                        v1_59 = v6_53;
                                        v39_0 = v37;
                                        v13_24 = v38_1;
                                    } catch (android.database.sqlite.SQLiteException v0_2) {
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_2) {
                                    v38_1 = v3_46;
                                }
                            }
                            long v2_78 = new com.google.android.gms.c.j.cu[(v1_59.a.length + v14_14.length)];
                            String v3_14 = v1_59.a;
                            Integer v4_28 = v3_14.length;
                            boolean v5_6 = 0;
                            int v6_19 = 0;
                            while (v5_6 < v4_28) {
                                String v41_0 = v1_59;
                                int v1_58 = v3_14[v5_6];
                                this.f();
                                String[] v42 = v3_14;
                                if (com.google.android.gms.measurement.a.dz.a(v13_24, v1_58.a) == null) {
                                    String v3_13 = (v6_19 + 1);
                                    v2_78[v6_19] = v1_58;
                                    v6_19 = v3_13;
                                }
                                v5_6++;
                                v1_59 = v41_0;
                                v3_14 = v42;
                            }
                            v41_1 = v1_59;
                            if (v6_19 <= 0) {
                                this.q().h().a("No unique parameters in main event. eventName", v11_30);
                                v5_3 = v11_30;
                                v31_1 = v14_14;
                            } else {
                                int v1_131 = v14_14.length;
                                String v3_10 = 0;
                                while (v3_10 < v1_131) {
                                    boolean v5_5 = (v6_19 + 1);
                                    v2_78[v6_19] = v14_14[v3_10];
                                    v3_10++;
                                    v6_19 = v5_5;
                                }
                                if (v6_19 != v2_78.length) {
                                    v2_78 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v2_78, v6_19));
                                }
                                v31_1 = v2_78;
                                v5_3 = v11_30;
                            }
                            v27_1 = v18_6;
                            v28_1 = v19_1;
                        } else {
                            this.q().k_().a("Extra parameter without an event name. eventId", v4_23);
                            v39_1 = v37;
                        }
                    }
                }
            }
        }
        Integer v4_15 = v6_20;
        long[] v65_2 = v12_15;
        String v3_30 = v15_0;
        String v64_2 = v33_1;
        int v60_3 = v34_1;
        String v63_2 = v35_0;
        long v2_61 = v30_0;
        int v1_79 = p93;
        if (p93 != null) {
            boolean v5_38 = new android.support.v4.g.a();
            int v6_34 = p93.length;
            Integer v8_12 = 0;
            while (v8_12 < v6_34) {
                Integer v9_9 = v1_79[v8_12];
                String v10_13 = ((java.util.Map) v5_38.get(v9_9.b));
                if (v10_13 == null) {
                    v10_13 = this.h().g(v3_30, v9_9.b);
                    if (v10_13 == null) {
                        v10_13 = new android.support.v4.g.a();
                    }
                    v5_38.put(v9_9.b, v10_13);
                }
                boolean v11_14 = v10_13.keySet().iterator();
                while (v11_14.hasNext()) {
                    long[] v12_23 = ((Integer) v11_14.next()).intValue();
                    if (!v2_61.contains(Integer.valueOf(v12_23))) {
                        android.support.v4.g.a v71;
                        boolean v11_15;
                        java.util.Map v70;
                        int v72;
                        boolean v5_27;
                        String v14_10 = v65_2;
                        int v1_80 = v63_2;
                        long[] v15_7 = ((java.util.BitSet) v1_80.get(Integer.valueOf(v12_23)));
                        long[] v68 = v5_38;
                        com.google.android.gms.measurement.a.eq v69 = v6_34;
                        int v6_33 = v60_3;
                        boolean v5_26 = ((java.util.BitSet) v6_33.get(Integer.valueOf(v12_23)));
                        if (!v23) {
                            v70 = v5_26;
                            v71 = v11_14;
                            v11_15 = v64_2;
                            v5_27 = 0;
                            v72 = 0;
                        } else {
                            v70 = v5_26;
                            v71 = v11_14;
                            v11_15 = v64_2;
                            v72 = ((java.util.Map) v11_15.get(Integer.valueOf(v12_23)));
                            v5_27 = ((java.util.Map) v4_15.get(Integer.valueOf(v12_23)));
                        }
                        Integer v4_16;
                        int v77_1;
                        boolean v5_33;
                        int v13_13;
                        android.support.v4.g.a v76_2;
                        if (((com.google.android.gms.c.j.cr) v14_10.get(Integer.valueOf(v12_23))) != null) {
                            v76_2 = v4_15;
                            v77_1 = v11_15;
                            v5_33 = v70;
                            v13_13 = v72;
                            v4_16 = v5_27;
                        } else {
                            int v13_15 = new com.google.android.gms.c.j.cr();
                            v14_10.put(Integer.valueOf(v12_23), v13_15);
                            v13_15.d = Boolean.TRUE;
                            v15_7 = new java.util.BitSet();
                            v1_80.put(Integer.valueOf(v12_23), v15_7);
                            int v13_18 = new java.util.BitSet();
                            Integer v73_1 = v5_27;
                            v6_33.put(Integer.valueOf(v12_23), v13_18);
                            if (!v23) {
                                v76_2 = v4_15;
                                v77_1 = v11_15;
                                v13_13 = v72;
                                v4_16 = v73_1;
                                v5_33 = v13_18;
                            } else {
                                boolean v5_36 = new android.support.v4.g.a();
                                android.support.v4.g.a v74_1 = v13_18;
                                v11_15.put(Integer.valueOf(v12_23), v5_36);
                                int v13_21 = new android.support.v4.g.a();
                                android.support.v4.g.a v75 = v5_36;
                                v4_15.put(Integer.valueOf(v12_23), v13_21);
                                v76_2 = v4_15;
                                v77_1 = v11_15;
                                v4_16 = v13_21;
                                v5_33 = v74_1;
                                v13_13 = v75;
                            }
                        }
                        boolean v11_19 = ((java.util.List) v10_13.get(Integer.valueOf(v12_23))).iterator();
                        while (v11_19.hasNext()) {
                            com.google.android.gms.measurement.a.s v82;
                            com.google.android.gms.measurement.a.o v83_1;
                            Integer v81_1;
                            android.support.v4.g.a v78 = v10_13;
                            String v10_18 = ((com.google.android.gms.c.j.cm) v11_19.next());
                            boolean v79 = v11_19;
                            com.google.android.gms.c.j.cr v80_1 = v6_33;
                            if (!this.q().a(2)) {
                                v82 = v1_80;
                                v83_1 = v8_12;
                                v81_1 = v14_10;
                            } else {
                                v81_1 = v14_10;
                                v82 = v1_80;
                                v83_1 = v8_12;
                                this.q().v().a("Evaluating filter. audience, filter, property", Integer.valueOf(v12_23), v10_18.a, this.n().c(v10_18.b));
                                this.q().v().a("Filter definition", this.f().a(v10_18));
                            }
                            if ((v10_18.a != null) && (v10_18.a.intValue() <= 256)) {
                                if (!v23) {
                                    if (!v15_7.get(v10_18.a.intValue())) {
                                        Integer v8_14;
                                        int v1_91 = this.a(v10_18, v9_9);
                                        String v3_33 = this.q().v();
                                        if (v1_91 != 0) {
                                            v8_14 = v1_91;
                                        } else {
                                            v8_14 = "null";
                                        }
                                        v3_33.a("Property filter result", v8_14);
                                        if (v1_91 != 0) {
                                            v5_33.set(v10_18.a.intValue());
                                            if (v1_91.booleanValue()) {
                                                v15_7.set(v10_18.a.intValue());
                                            }
                                        } else {
                                            v2_61.add(Integer.valueOf(v12_23));
                                        }
                                    } else {
                                        this.q().v().a("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v12_23), v10_18.a);
                                    }
                                } else {
                                    if ((v10_18 == null) || ((v10_18.d == null) || (!v10_18.d.booleanValue()))) {
                                        int v1_101 = 0;
                                    } else {
                                        v1_101 = 1;
                                    }
                                    if ((v10_18 == null) || ((v10_18.e == null) || (!v10_18.e.booleanValue()))) {
                                        int v6_44 = 0;
                                    } else {
                                        v6_44 = 1;
                                    }
                                    if ((!v15_7.get(v10_18.a.intValue())) || ((v1_101 != 0) || (v6_44 != 0))) {
                                        String v3_37;
                                        Integer v8_19 = this.a(v10_18, v9_9);
                                        boolean v11_26 = this.q().v();
                                        if (v8_19 != null) {
                                            v3_37 = v8_19;
                                        } else {
                                            v3_37 = "null";
                                        }
                                        v11_26.a("Property filter result", v3_37);
                                        if (v8_19 != null) {
                                            v5_33.set(v10_18.a.intValue());
                                            v15_7.set(v10_18.a.intValue(), v8_19.booleanValue());
                                            if (((v8_19.booleanValue()) && ((v1_101 != 0) || (v6_44 != 0))) && (v9_9.a != null)) {
                                                if (v6_44 == 0) {
                                                    ark>com.google.android.gms.measurement.a.ejark>.a(v13_13, v10_18.a.intValue(), v9_9.a.longValue());
                                                } else {
                                                    ark>com.google.android.gms.measurement.a.ejark>.b(v4_16, v10_18.a.intValue(), v9_9.a.longValue());
                                                }
                                            }
                                        } else {
                                            v2_61.add(Integer.valueOf(v12_23));
                                        }
                                    } else {
                                        this.q().v().a("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v12_23), v10_18.a);
                                    }
                                }
                                v10_13 = v78;
                                v11_19 = v79;
                                v6_33 = v80_1;
                                v14_10 = v81_1;
                                v1_80 = v82;
                                v8_12 = v83_1;
                                v3_30 = p91;
                            } else {
                                this.q().h().a("Invalid property filter ID. appId, id", com.google.android.gms.measurement.a.q.a(p91), String.valueOf(v10_18.a));
                                v2_61.add(Integer.valueOf(v12_23));
                                v3_30 = p91;
                                v5_38 = v68;
                                v6_34 = v69;
                                v11_14 = v71;
                                v4_15 = v76_2;
                                v64_2 = v77_1;
                                v10_13 = v78;
                                v60_3 = v80_1;
                                v65_2 = v81_1;
                                v63_2 = v82;
                                v8_12 = v83_1;
                            }
                        }
                        v63_2 = v1_80;
                        v60_3 = v6_33;
                        v65_2 = v14_10;
                        v5_38 = v68;
                        v6_34 = v69;
                        v11_14 = v71;
                        v4_15 = v76_2;
                        v64_2 = v77_1;
                    } else {
                        this.q().v().a("Skipping failed audience ID", Integer.valueOf(v12_23));
                    }
                }
                v69 = v6_34;
                v82 = v63_2;
                Integer v81 = v65_2;
                v8_12++;
                v1_79 = p93;
            }
        }
        android.support.v4.g.a v76_0 = v4_15;
        com.google.android.gms.c.j.cr v80_0 = v60_3;
        int v77_0 = v64_2;
        Integer v81_0 = v65_2;
        Integer v4_18 = v3_30;
        int v1_78 = v63_2;
        String v3_48 = new com.google.android.gms.c.j.cr[v1_78.size()];
        boolean v5_16 = v1_78.keySet().iterator();
        int v6_32 = 0;
        while (v5_16.hasNext()) {
            Integer v8_24 = ((Integer) v5_16.next()).intValue();
            if (!v2_61.contains(Integer.valueOf(v8_24))) {
                String v10_10 = v81_0;
                Integer v9_1 = ((com.google.android.gms.c.j.cr) v10_10.get(Integer.valueOf(v8_24)));
                if (v9_1 == null) {
                    v9_1 = new com.google.android.gms.c.j.cr();
                }
                int v84;
                long[] v85;
                String v14_0;
                long[] v15_3;
                com.google.android.gms.c.j.cy v87_0;
                long[] v88_0;
                boolean v11_1 = (v6_32 + 1);
                v3_48[v6_32] = v9_1;
                v9_1.a = Integer.valueOf(v8_24);
                v9_1.b = new com.google.android.gms.c.j.cx();
                v9_1.b.b = com.google.android.gms.measurement.a.dz.a(((java.util.BitSet) v1_78.get(Integer.valueOf(v8_24))));
                int v13_5 = v80_0;
                v9_1.b.a = com.google.android.gms.measurement.a.dz.a(((java.util.BitSet) v13_5.get(Integer.valueOf(v8_24))));
                if (!v23) {
                    v84 = v1_78;
                    v85 = v2_61;
                    v87_0 = v5_16;
                    v88_0 = v10_10;
                    v15_3 = v76_0;
                    v14_0 = v77_0;
                } else {
                    long[] v12_19;
                    v14_0 = v77_0;
                    v9_1.b.c = ark>com.google.android.gms.measurement.a.ejark>.a(((java.util.Map) v14_0.get(Integer.valueOf(v8_24))));
                    int v6_21 = v9_1.b;
                    v15_3 = v76_0;
                    long[] v12_18 = ((java.util.Map) v15_3.get(Integer.valueOf(v8_24)));
                    if (v12_18 != null) {
                        v84 = v1_78;
                        int v1_69 = new com.google.android.gms.c.j.cy[v12_18.size()];
                        v85 = v2_61;
                        long v2_42 = v12_18.keySet().iterator();
                        int v16_4 = 0;
                        while (v2_42.hasNext()) {
                            long[] v88_1;
                            android.content.ContentValues v86 = v2_42;
                            long v2_44 = ((Integer) v2_42.next());
                            com.google.android.gms.c.j.cy v87_1 = v5_16;
                            boolean v5_15 = new com.google.android.gms.c.j.cy();
                            v5_15.a = v2_44;
                            long v2_46 = ((java.util.List) v12_18.get(v2_44));
                            if (v2_46 == 0) {
                                v88_1 = v10_10;
                            } else {
                                java.util.Collections.sort(v2_46);
                                v88_1 = v10_10;
                                String v10_9 = new long[v2_46.size()];
                                long v2_48 = v2_46.iterator();
                                String v17_3 = 0;
                                while (v2_48.hasNext()) {
                                    java.util.BitSet v89 = v2_48;
                                    boolean v18_3 = (v17_3 + 1);
                                    v10_9[v17_3] = ((Long) v2_48.next()).longValue();
                                    v17_3 = v18_3;
                                    v2_48 = v89;
                                }
                                v5_15.b = v10_9;
                            }
                            long v2_49 = (v16_4 + 1);
                            v1_69[v16_4] = v5_15;
                            v16_4 = v2_49;
                            v2_42 = v86;
                            v5_16 = v87_1;
                            v10_10 = v88_1;
                        }
                        v87_0 = v5_16;
                        v88_0 = v10_10;
                        v12_19 = v1_69;
                    } else {
                        v84 = v1_78;
                        v12_19 = new com.google.android.gms.c.j.cy[0];
                        v85 = v2_61;
                        v87_0 = v5_16;
                        v88_0 = v10_10;
                    }
                    v6_21.d = v12_19;
                }
                int v1_72 = this.h();
                long v2_52 = v9_1.b;
                v1_72.j();
                v1_72.c();
                com.google.android.gms.common.internal.ag.a(p91);
                com.google.android.gms.common.internal.ag.a(v2_52);
                try {
                    boolean v5_18 = new byte[v2_52.e()];
                    int v6_24 = com.google.android.gms.c.j.iw.a(v5_18, v5_18.length);
                    v2_52.a(v6_24);
                    v6_24.a();
                    long v2_54 = new android.content.ContentValues();
                    v2_54.put("app_id", v4_18);
                    v2_54.put("audience_id", Integer.valueOf(v8_24));
                    v2_54.put("current_results", v5_18);
                    try {
                        try {
                            if (v1_72.w().insertWithOnConflict("audience_filter_values", 0, v2_54, 5) != -1) {
                                v6_32 = v11_1;
                                v80_0 = v13_5;
                                v77_0 = v14_0;
                                v76_0 = v15_3;
                                v1_78 = v84;
                                v2_61 = v85;
                                v5_16 = v87_0;
                                v81_0 = v88_0;
                            } else {
                                v1_72.q().k_().a("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.a.q.a(p91));
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v1_72.q().k_().a("Error storing filter results. appId", com.google.android.gms.measurement.a.q.a(p91), v0_1);
                        }
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v1_72.q().k_().a("Configuration loss. Failed to serialize filter results. appId", com.google.android.gms.measurement.a.q.a(p91), v0_0);
                }
            }
        }
        return ((com.google.android.gms.c.j.cr[]) java.util.Arrays.copyOf(v3_48, v6_32));
    }

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


    private final boolean a(String p17, com.google.android.gms.measurement.a.e p18)
    {
        int v4_6;
        int v3_9 = p18.b.d("currency");
        if (!"ecommerce_purchase".equals(p18.a)) {
            v4_6 = p18.b.b("value").longValue();
        } else {
            int v4_11 = (p18.b.c("value").doubleValue() * 1000000.0);
            if (v4_11 == 0) {
                v4_11 = (((double) p18.b.b("value").longValue()) * 1000000.0);
            }
            if ((v4_11 > 9.223372036854776e+18) || (v4_11 < -9.223372036854776e+18)) {
                this.i.q().h().a("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.a.q.a(p17), Double.valueOf(v4_11));
                return 0;
            } else {
                v4_6 = Math.round(v4_11);
            }
        }
        if (!android.text.TextUtils.isEmpty(v3_9)) {
            int v3_10 = v3_9.toUpperCase(java.util.Locale.US);
            if (v3_10.matches("[A-Z]{3}")) {
                int v3_13;
                Object v6_13 = String.valueOf("_ltv_");
                int v3_11 = String.valueOf(v3_10);
                if (v3_11.length() == 0) {
                    v3_13 = new String(v6_13);
                } else {
                    v3_13 = v6_13.concat(v3_11);
                }
                com.google.android.gms.measurement.a.ec v12_2;
                Object v6_14 = v3_13;
                int v3_15 = this.d().c(p17, v6_14);
                if ((v3_15 != 0) && ((v3_15.e instanceof Long))) {
                    v12_2 = new com.google.android.gms.measurement.a.ec;
                    v12_2(p17, p18.c, v6_14, this.i.l().a(), Long.valueOf((((Long) v3_15.e).longValue() + v4_6)));
                } else {
                    int v3_1 = this.d();
                    String v7_3 = (this.i.b().b(p17, com.google.android.gms.measurement.a.g.M) - 1);
                    com.google.android.gms.common.internal.ag.a(p17);
                    v3_1.c();
                    v3_1.j();
                    try {
                        Long v8_2 = v3_1.w();
                        long v13_1 = new String[3];
                        v13_1[0] = p17;
                        v13_1[1] = p17;
                        v13_1[2] = String.valueOf(v7_3);
                        v8_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);", v13_1);
                    } catch (android.database.sqlite.SQLiteException v0) {
                        v3_1.q().k_().a("Error pruning currencies. appId", com.google.android.gms.measurement.a.q.a(p17), v0);
                    }
                    v12_2 = new com.google.android.gms.measurement.a.ec;
                    v12_2(p17, p18.c, v6_14, this.i.l().a(), Long.valueOf(v4_6));
                }
                if (!this.d().a(v12_2)) {
                    this.i.q().k_().a("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.a.q.a(p17), this.i.k().c(v12_2.c), v12_2.e);
                    this.i.j().b(9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                int v22;
                long v7_24;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        String v39_0;
                                        int v36;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        boolean v40;
                                        com.google.android.gms.measurement.a.s v2_7;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            long v42;
                                            long v43;
                                            int v41;
                                            int v63_0;
                                            int v62;
                                            com.google.android.gms.measurement.a.an v44;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                long v45;
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            String v5_81;
                                                            long v66;
                                                            Boolean v65;
                                                            long v64;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                long v16_5;
                                int v17_2;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

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


    static void a(com.google.android.gms.measurement.a.q p5, android.database.sqlite.SQLiteDatabase p6, String p7, String p8, String p9, String[] p10)
    {
        if (p5 != null) {
            if (!ark>com.google.android.gms.measurement.a.euark>.a(p5, p6, p7)) {
                p6.execSQL(p8);
            }
            if (p5 != null) {
                String v8_10 = ark>com.google.android.gms.measurement.a.euark>.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.h().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 com.google.android.gms.c.j.ae.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p11)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p11.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                v0_13.close();
                throw v11_9;
            }
        }
        int v4 = 0;
        if (this.a(p11, "hits2")) {
            String v0_7 = com.google.android.gms.c.j.ae.b(p11, "hits2");
            int v6_0 = new String[4];
            v6_0[0] = "hit_id";
            v6_0[1] = "hit_string";
            v6_0[2] = "hit_time";
            v6_0[3] = "hit_url";
            int v7_4 = 0;
            while (v7_4 < 4) {
                String v8 = v6_0[v7_4];
                if (v0_7.remove(v8)) {
                    v7_4++;
                } else {
                    String v0_14;
                    String v1_7 = String.valueOf(v8);
                    if (v1_7.length() == 0) {
                        v0_14 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_14 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_14);
                }
            }
            int v6_3 = (v0_7.remove("hit_app_id") ^ 1);
            if (v0_7.isEmpty()) {
                if (v6_3 != 0) {
                    p11.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p11.execSQL(com.google.android.gms.c.j.ad.D());
        }
        if (this.a(p11, "properties")) {
            android.database.sqlite.SQLiteException v11_8 = com.google.android.gms.c.j.ae.b(p11, "properties");
            int v6_4 = new String[6];
            v6_4[0] = "app_uid";
            v6_4[1] = "cid";
            v6_4[2] = "tid";
            v6_4[3] = "params";
            v6_4[4] = "adid";
            v6_4[5] = "hits_count";
            while (v4 < 6) {
                String v1_1 = v6_4[v4];
                if (v11_8.remove(v1_1)) {
                    v4++;
                } else {
                    String v0_2;
                    String v1_2 = String.valueOf(v1_1);
                    if (v1_2.length() == 0) {
                        v0_2 = new String("Database properties is missing required column: ");
                    } else {
                        v0_2 = "Database properties is missing required column: ".concat(v1_2);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_2);
                }
            }
            if (v11_8.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            }
        } else {
            p11.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.a.a.i$a.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onUpgrade(android.database.sqlite.SQLiteDatabase p4, int p5, int p6)
    {
        StringBuilder v1_1 = new StringBuilder(64);
        v1_1.append("Database updated from version ");
        v1_1.append(p5);
        v1_1.append(" to version ");
        v1_1.append(p6);
        android.util.Log.i("GoogleConversionReporter", v1_1.toString());
        p4.execSQL("DROP TABLE IF EXISTS conversiontracking");
        this.onCreate(p4);
        return;
    }

Method com.google.a.a.i$a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(com.google.a.a.i.b());
        return;
    }

Method com.freshchat.consumer.sdk.c.b$a.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p2)
    {
        if (!p2.isReadOnly()) {
            p2.execSQL("PRAGMA foreign_keys=true;");
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.b$a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p5)
    {
        java.util.List v0_1 = com.freshchat.consumer.sdk.c.a.c.m(1);
        int v1 = 0;
        while (v1 < v0_1.size()) {
            android.util.Log.d("FRESHCHAT", ((String) v0_1.get(v1)));
            p5.execSQL(((String) v0_1.get(v1)));
            v1++;
        }
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB$SqliteHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        try {
            p1.execSQL("DROP TABLE IF EXISTS Bm_ChatWindow");
            p1.execSQL("DROP TABLE IF EXISTS Bm_PendingSendMessg");
            p1.execSQL("DROP TABLE IF EXISTS Bm_Notification");
            this.onCreate(p1);
            return;
        } catch (android.database.SQLException v1_1) {
            com.bharatmatrimony.common.ExceptionTrack.getInstance().TrackLog(v1_1);
            return;
        }
    }

Method com.bharatmatrimony.socketchat.SocketChatDB$SqliteHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        try {
            p2.execSQL(this.CREATE_TABLE);
            p2.execSQL(this.CREATE_TABLE_FOR_PENDING_MESSG);
            p2.execSQL(this.CREATE_TABLE_NOTIFY);
            return;
        } catch (android.database.SQLException v2_1) {
            com.bharatmatrimony.common.ExceptionTrack.getInstance().TrackLog(v2_1);
            return;
        }
    }

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

Couldn't retrieve source code

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


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

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

Couldn't retrieve source code

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


    final void z()
    {
        this.c();
        this.j();
        if (this.L()) {
            Integer v0_10 = this.r().f.a();
            String v2_1 = this.l().b();
            if (Math.abs((v2_1 - v0_10)) > ((Long) com.google.android.gms.measurement.a.g.G.b()).longValue()) {
                this.r().f.a(v2_1);
                this.c();
                this.j();
                if (this.L()) {
                    Integer v0_5 = this.w();
                    com.google.android.gms.measurement.a.s v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.l().a());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.a.en.h());
                    Integer v0_6 = v0_5.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_6 > null) {
                        this.q().v().a("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_6));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    public final int e(String p7, String p8)
    {
        com.google.android.gms.common.internal.ag.a(p7);
        com.google.android.gms.common.internal.ag.a(p8);
        this.c();
        this.j();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.w();
            com.google.android.gms.measurement.a.o 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.q().k_().a("Error deleting conditional property", com.google.android.gms.measurement.a.q.a(p7), this.n().c(p8), v1_1);
            return 0;
        }
    }

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


    public final long c(String p7)
    {
        com.google.android.gms.common.internal.ag.a(p7);
        this.c();
        this.j();
        try {
            long v0_4 = this.w();
            com.google.android.gms.measurement.a.s v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.s().b(p7, com.google.android.gms.measurement.a.g.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.q().k_().a("Error deleting over the limit events. appId", com.google.android.gms.measurement.a.q.a(p7), v0_2);
            return 0;
        }
    }

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


    public final void b(String p6, String p7)
    {
        com.google.android.gms.common.internal.ag.a(p6);
        com.google.android.gms.common.internal.ag.a(p7);
        this.c();
        this.j();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.w();
            com.google.android.gms.measurement.a.o v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.q().v().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.q().k_().a("Error deleting user attribute. appId", com.google.android.gms.measurement.a.q.a(p6), this.n().c(p7), v0_2);
            return;
        }
    }

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


    final void a(String p13, com.google.android.gms.c.j.ci[] p14)
    {
        this.j();
        this.c();
        com.google.android.gms.common.internal.ag.a(p13);
        com.google.android.gms.common.internal.ag.a(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.w();
        v0.beginTransaction();
        try {
            this.j();
            this.c();
            com.google.android.gms.common.internal.ag.a(p13);
            java.util.ArrayList v1_0 = this.w();
            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.j();
            this.c();
            com.google.android.gms.common.internal.ag.a(p13);
            com.google.android.gms.common.internal.ag.a(v3_8);
            com.google.android.gms.common.internal.ag.a(v3_8.c);
            com.google.android.gms.common.internal.ag.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.q().h().a("Event filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.a.q.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.q().h().a("Property filter with no ID. Audience definition ignored. appId, audienceId", com.google.android.gms.measurement.a.q.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.j();
                        this.c();
                        com.google.android.gms.common.internal.ag.a(p13);
                        android.database.sqlite.SQLiteDatabase v3_10 = this.w();
                        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.q().h().a("Audience with no ID. appId", com.google.android.gms.measurement.a.q.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.a.eq.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final boolean a(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.ag.a(p10);
        this.j();
        this.c();
        com.google.android.gms.measurement.a.s v0_2 = this.w();
        try {
            String v4_8 = new String[1];
            v4_8[0] = p10;
            String v4_0 = this.b("select count(1) from audience_filter_values where app_id=?", v4_8);
            String v2_3 = Math.max(0, Math.min(2000, this.s().b(p10, com.google.android.gms.measurement.a.g.N)));
        } catch (String v11_1) {
            this.q().k_().a("Database error querying filters. appId", com.google.android.gms.measurement.a.q.a(p10), v11_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String v4_2 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p11.size()) {
                String v6_11 = ((Integer) p11.get(v5_0));
                if ((v6_11 != null) && ((v6_11 instanceof Integer))) {
                    v4_2.add(Integer.toString(v6_11.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v11_3 = android.text.TextUtils.join(",", v4_2);
            String v6_5 = new StringBuilder((String.valueOf(v11_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v11_3);
            v6_5.append(")");
            String v11_5 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v11_5).length() + 140));
            v7_1.append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ");
            v7_1.append(v11_5);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v11_7 = v7_1.toString();
            int v5_2 = new String[2];
            v5_2[0] = p10;
            v5_2[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v11_7, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.c.j.ag.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long b(com.google.android.gms.c.j.x p12)
    {
        com.google.android.gms.common.internal.ag.a(p12);
        this.y();
        com.google.android.gms.analytics.q.d();
        try {
            this.b.b();
            String v2_5 = this.b;
            long v3_5 = p12.a();
            String v5_0 = p12.b();
            com.google.android.gms.common.internal.ag.a(v5_0);
            v2_5.y();
            com.google.android.gms.analytics.q.d();
            int v6_1 = v2_5.B();
            long v9_3 = new String[2];
            v9_3[0] = String.valueOf(v3_5);
            v9_3[1] = v5_0;
            long v3_2 = v6_1.delete("properties", "app_uid=? AND cid<>?", v9_3);
        } catch (android.database.sqlite.SQLiteException v12_10) {
            try {
                this.b.d();
            } catch (String v0_2) {
                this.e("Failed to end transaction", v0_2);
            }
            throw v12_10;
        } catch (android.database.sqlite.SQLiteException v12_7) {
            this.e("Failed to update Analytics property", v12_7);
            try {
                this.b.d();
            } catch (android.database.sqlite.SQLiteException v12_9) {
                this.e("Failed to end transaction", v12_9);
            }
            return -1;
        }
        if (v3_2 > 0) {
            v2_5.a("Deleted property records", Integer.valueOf(v3_2));
        }
        String v2_4 = this.b.a(p12.a(), p12.b(), p12.c());
        p12.a((v2_4 + 1));
        com.google.android.gms.c.j.ad v4_2 = this.b;
        com.google.android.gms.common.internal.ag.a(p12);
        v4_2.y();
        com.google.android.gms.analytics.q.d();
        String v5_4 = v4_2.B();
        int v6_4 = p12.f();
        com.google.android.gms.common.internal.ag.a(v6_4);
        android.content.ContentValues v7_2 = new android.net.Uri$Builder();
        int v6_6 = v6_4.entrySet().iterator();
        while (v6_6.hasNext()) {
            int v8_2 = ((java.util.Map$Entry) v6_6.next());
            v7_2.appendQueryParameter(((String) v8_2.getKey()), ((String) v8_2.getValue()));
        }
        int v6_8 = v7_2.build().getEncodedQuery();
        if (v6_8 == 0) {
            v6_8 = "";
        }
        android.content.ContentValues v7_4 = new android.content.ContentValues();
        v7_4.put("app_uid", Long.valueOf(p12.a()));
        v7_4.put("cid", p12.b());
        v7_4.put("tid", p12.c());
        v7_4.put("adid", Integer.valueOf(p12.d()));
        v7_4.put("hits_count", Long.valueOf(p12.e()));
        v7_4.put("params", v6_8);
        try {
            if (v5_4.insertWithOnConflict("properties", 0, v7_4, 5) == -1) {
                v4_2.f("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v12_2) {
            v4_2.e("Error storing a property", v12_2);
        }
        this.b.c();
        try {
            this.b.d();
        } catch (android.database.sqlite.SQLiteException v12_6) {
            this.e("Failed to end transaction", v12_6);
        }
        return v2_4;
    }

Method com.google.android.gms.c.j.ad.f() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int f()
    {
        com.google.android.gms.analytics.q.d();
        this.y();
        if (this.d.a(86400000)) {
            this.d.a();
            this.b("Deleting stale hits (if any)");
            int v0_1 = this.B();
            String[] v4_2 = new String[1];
            v4_2[0] = Long.toString((this.i().a() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v4_2);
            this.a("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.c.j.ad.a() calling method android.database.sqlite.SQLiteDatabase.delete()


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

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


    final void c(com.google.android.gms.measurement.a.eh p21)
    {
        void v20_1 = this.x();
        v20_1.i();
        com.google.android.gms.common.internal.ag.a(p21);
        com.google.android.gms.common.internal.ag.a(p21.a);
        if ((!android.text.TextUtils.isEmpty(p21.b)) || (!android.text.TextUtils.isEmpty(p21.r))) {
            android.os.Bundle v3_3 = v20_1.d().b(p21.a);
            if ((v3_3 != null) && ((android.text.TextUtils.isEmpty(v3_3.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_3.g(0);
                v20_1.d().a(v3_3);
                v20_1.u().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.i.l().a();
                }
                android.os.Bundle v3_25 = p21.n;
                if ((v3_25 != null) && (v3_25 != 1)) {
                    this.i.q().h().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.a.q.a(p21.a), Integer.valueOf(v3_25));
                    v3_25 = 0;
                }
                v20_1.d().e();
                try {
                    com.google.android.gms.measurement.a.ea v8_2 = v20_1.d().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.measurement.a.eq v2_1 = v0_3;
                    v20_1.d().v();
                    throw v2_1;
                }
                if (v8_2 != null) {
                    this.i.j();
                    if (com.google.android.gms.measurement.a.ed.a(p21.b, v8_2.d(), p21.r, v8_2.e())) {
                        this.i.q().h().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.a.q.a(v8_2.b()));
                        String v9_0 = v20_1.d();
                        com.google.android.gms.measurement.a.ea v8_0 = v8_2.b();
                        v9_0.j();
                        v9_0.c();
                        com.google.android.gms.common.internal.ag.a(v8_0);
                        try {
                            long v10_0 = v9_0.w();
                            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.q().k_().a("Error deleting application data. appId, error", com.google.android.gms.measurement.a.q.a(v8_0), v0_0);
                            v8_2 = 0;
                        }
                        if (v12_10 <= null) {
                        } else {
                            v9_0.q().v().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(p21.c))) {
                            String v9_8 = new android.os.Bundle();
                            v9_8.putString("_pv", v8_2.j());
                            com.google.android.gms.measurement.a.ea v14_8 = new com.google.android.gms.measurement.a.e;
                            v14_8("_au", new com.google.android.gms.measurement.a.b(v9_8), "auto", v6_6);
                            this.a(v14_8, p21);
                        }
                    } else {
                        if (v8_2.k() != p21.j) {
                            String v9_12 = new android.os.Bundle();
                            v9_12.putString("_pv", v8_2.j());
                            com.google.android.gms.measurement.a.ea v14_9 = new com.google.android.gms.measurement.a.e;
                            v14_9("_au", new com.google.android.gms.measurement.a.b(v9_12), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    }
                }
                com.google.android.gms.measurement.a.ea v8_7;
                v20_1.e(p21);
                if (v3_25 != null) {
                    if (v3_25 != 1) {
                        v8_7 = 0;
                    } else {
                        v8_7 = v20_1.d().a(p21.a, "_v");
                    }
                } else {
                    v8_7 = v20_1.d().a(p21.a, "_f");
                }
                if (v8_7 != null) {
                    if (p21.i) {
                        com.google.android.gms.measurement.a.e v4_2 = new com.google.android.gms.measurement.a.e;
                        v4_2("_cd", new com.google.android.gms.measurement.a.b(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.measurement.a.e v4_3;
                    com.google.android.gms.measurement.a.ea v8_12 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_25 != null) {
                        v4_3 = 1;
                        if (v3_25 == 1) {
                            android.os.Bundle v3_7 = new com.google.android.gms.measurement.a.ea;
                            v3_7("_fvt", v6_6, Long.valueOf(v8_12), "auto");
                            this.a(v3_7, p21);
                            v20_1 = v20_1.x();
                            v20_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().i(p21.a)) && (p21.q)) {
                                v3_9.putLong("_dac", 1);
                            }
                            com.google.android.gms.measurement.a.ea v14_10 = new com.google.android.gms.measurement.a.e;
                            v14_10("_v", new com.google.android.gms.measurement.a.b(v3_9), "auto", v6_6);
                            this.a(v14_10, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.measurement.a.ea;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_12), "auto");
                        this.a(v3_10, p21);
                        if (this.i.b().l(p21.b)) {
                            v20_1 = v20_1.x();
                            this.i.f().a(p21.a);
                        }
                        v20_1 = v20_1.x();
                        v20_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().i(p21.a)) && (p21.q)) {
                            v3_17.putLong("_dac", 1);
                        }
                        if (this.i.m().getPackageManager() != null) {
                            try {
                                com.google.android.gms.measurement.a.ea v8_42 = com.google.android.gms.common.d.c.a(this.i.m()).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.i.q().k_().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.a.q.a(p21.a), v0_1);
                                v8_42 = 0;
                            }
                            if ((v8_42 != null) && (v8_42.firstInstallTime != 0)) {
                                com.google.android.gms.measurement.a.ea v8_45;
                                if (v8_42.firstInstallTime == v8_42.lastUpdateTime) {
                                    v8_45 = 1;
                                } else {
                                    v3_17.putLong("_uwa", 1);
                                    v8_45 = 0;
                                }
                                long v10_25;
                                com.google.android.gms.measurement.a.ea v14_11 = new com.google.android.gms.measurement.a.ea;
                                if (v8_45 == null) {
                                    v10_25 = 0;
                                } else {
                                    v10_25 = 1;
                                }
                                v14_11("_fi", v6_6, Long.valueOf(v10_25), "auto");
                                this.a(v14_11, p21);
                            }
                            try {
                                com.google.android.gms.measurement.a.ea v8_51 = com.google.android.gms.common.d.c.a(this.i.m()).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.i.q().k_().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.a.q.a(p21.a), v0_2);
                                v8_51 = 0;
                            }
                            if (v8_51 != null) {
                                if ((v8_51.flags & 1) != 0) {
                                    v3_17.putLong("_sys", 1);
                                }
                                if ((v8_51.flags & 128) != 0) {
                                    v3_17.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.i.q().k_().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.a.q.a(p21.a));
                        }
                        com.google.android.gms.measurement.a.ea v8_59 = v20_1.d();
                        String v9_38 = p21.a;
                        com.google.android.gms.common.internal.ag.a(v9_38);
                        v8_59.c();
                        v8_59.j();
                        com.google.android.gms.measurement.a.ea v8_60 = v8_59.h(v9_38, "first_open_count");
                        if (v8_60 >= 0) {
                            v3_17.putLong("_pfo", v8_60);
                        }
                        com.google.android.gms.measurement.a.ea v14_12 = new com.google.android.gms.measurement.a.e;
                        v14_12("_f", new com.google.android.gms.measurement.a.b(v3_17), "auto", v6_6);
                        this.a(v14_12, p21);
                    }
                    android.os.Bundle v3_24 = new android.os.Bundle();
                    v3_24.putLong("_et", v4_3);
                    com.google.android.gms.measurement.a.e v4_4 = new com.google.android.gms.measurement.a.e;
                    v4_4("_e", new com.google.android.gms.measurement.a.b(v3_24), "auto", v6_6);
                    this.a(v4_4, p21);
                }
                v20_1.d().u();
                v20_1.d().v();
                return;
            } else {
                v20_1.e(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    final void b(com.google.android.gms.measurement.a.eh p12)
    {
        if (this.u != null) {
            this.v = new java.util.ArrayList();
            this.v.addAll(this.u);
        }
        com.google.android.gms.measurement.a.eh v0_7 = this.d();
        boolean v1_0 = p12.a;
        com.google.android.gms.common.internal.ag.a(v1_0);
        v0_7.c();
        v0_7.j();
        try {
            String v2_0 = v0_7.w();
            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.q().k_().a("Error resetting analytics data. appId, error", com.google.android.gms.measurement.a.q.a(v1_0), v2_2);
            com.google.android.gms.measurement.a.eh v0_8 = this.a(this.i.m(), p12.a, p12.b, p12.h, p12.o, p12.p, p12.m, p12.r);
            if ((!this.i.b().i(p12.a)) || (p12.h)) {
                this.c(v0_8);
            }
            return;
        }
        if (v5_10) {
        } else {
            v0_7.q().v().a("Reset analytics data. app, records", v1_0, Integer.valueOf(v5_10));
        }
    }

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


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

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                int v22;
                long v7_24;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        String v39_0;
                                        int v36;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        boolean v40;
                                        com.google.android.gms.measurement.a.s v2_7;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            int v41;
                                            com.google.android.gms.measurement.a.an v44;
                                            long v42;
                                            int v62;
                                            long v43;
                                            int v63_0;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                long v45;
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            long v66;
                                                            Boolean v65;
                                                            String v5_81;
                                                            long v64;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                int v17_2;
                                long v16_5;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

Method com.freshchat.consumer.sdk.c.j.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.freshchat.consumer.sdk.beans.Tag$TaggedType p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        String[] v3_1 = new String[1];
        v3_1[0] = Integer.toString(p6.asInt());
        v0.delete("tags", "tagged_type = ? ", v3_1);
        return;
    }

Method com.freshchat.consumer.sdk.c.i.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(java.util.List p4, java.util.List p5, java.util.List p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        v0.beginTransaction();
        try {
            v0.delete("articles", 0, 0);
            v0.delete("categories", 0, 0);
            com.freshchat.consumer.sdk.c.j v1_0 = new com.freshchat.consumer.sdk.c.j(this.context);
            v1_0.a(com.freshchat.consumer.sdk.beans.Tag$TaggedType.CATEGORY);
            v1_0.a(com.freshchat.consumer.sdk.beans.Tag$TaggedType.ARTICLE);
        } catch (boolean v4_4) {
            v0.endTransaction();
            throw v4_4;
        } catch (boolean v4_3) {
            com.freshchat.consumer.sdk.j.q.a(v4_3);
            throw v4_3;
        }
        if (com.freshchat.consumer.sdk.j.k.b(p4)) {
            this.o(p4);
            if (com.freshchat.consumer.sdk.j.k.b(p5)) {
                this.n(p5);
            }
            if (com.freshchat.consumer.sdk.j.k.b(p6)) {
                v1_0.f(p6);
            }
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.freshchat.consumer.sdk.c.e.V() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void V(String p6)
    {
        try {
            android.database.sqlite.SQLiteDatabase v0 = this.cs();
            String[] v3_1 = new String[1];
            v3_1[0] = p6;
            v0.delete("custsat", "conv_id=?", v3_1);
            return;
        } catch (Exception v6_1) {
            com.freshchat.consumer.sdk.j.q.a(v6_1);
            return;
        }
    }

Method com.freshchat.consumer.sdk.c.a.T() calling method android.database.sqlite.SQLiteDatabase.delete()


    public boolean T(String p6)
    {
        try {
            int v1_0 = this.cs();
            String v4_2 = new String[1];
            v4_2[0] = p6;
            int v1_1 = v1_0.delete("bl", "_id = ?", v4_2);
            StringBuilder v3_1 = new StringBuilder("Delete backlog ");
            v3_1.append(p6);
            v3_1.append(" ");
            v3_1.append(v1_1);
            com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, v3_1.toString());
            return 0;
        } catch (Exception v6_3) {
            com.freshchat.consumer.sdk.j.q.a(v6_3);
            return 0;
        }
    }

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


    public final void a(com.google.a.a.g p9)
    {
        if (p9 != null) {
            try {
                android.database.sqlite.SQLiteDatabase v1 = this.c();
            } catch (String v9_3) {
                throw v9_3;
            }
            if (v1 != null) {
                Object[] v4_1 = new Object[2];
                v4_1[0] = "conversion_ping_id";
                v4_1[1] = Long.valueOf(p9.h);
                v1.delete("conversiontracking", String.format(java.util.Locale.US, "%s = %d", v4_1), 0);
                return;
            } else {
                return;
            }
        } else {
            return;
        }
    }

Method com.google.a.a.i.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void d()
    {
        try {
            Throwable v1_0 = this.c();
        } catch (Throwable v1_1) {
            throw v1_1;
        }
        if (v1_0 != null) {
            int v4_2 = new Object[5];
            v4_2[0] = "retry_count";
            v4_2[1] = Long.valueOf(9000);
            v4_2[2] = "record_time";
            v4_2[3] = Long.valueOf((com.google.a.a.j.a() - 43200000));
            v4_2[4] = "retry_count";
            v1_0.delete("conversiontracking", String.format(java.util.Locale.US, "(%s > %d) or (%s < %d and %s > 0)", v4_2), 0);
            return;
        } else {
            return;
        }
    }

Method com.freshchat.consumer.sdk.c.b$a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void a(android.database.sqlite.SQLiteDatabase p5, com.freshchat.consumer.sdk.c.a.h[] p6)
    {
        p5.beginTransaction();
        try {
            int v0 = p6.length;
            int v1 = 0;
        } catch (Exception v6_2) {
            p5.endTransaction();
            throw v6_2;
        } catch (Exception v6_1) {
            com.freshchat.consumer.sdk.j.q.a(v6_1);
            p5.endTransaction();
            return;
        }
        while (v1 < v0) {
            p5.delete(p6[v1].cP(), 0, 0);
            v1++;
        }
        p5.setTransactionSuccessful();
        p5.endTransaction();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.removeRowFromPendingIntent() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int removeRowFromPendingIntent(long p3)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        String[] v1_1 = new String[1];
        v1_1[0] = String.valueOf(p3);
        return v0_1.delete("Bm_PendingSendMessg", "RandomTimePending =?", v1_1);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.removeLastInsertedRow() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int removeLastInsertedRow(int p4)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        String[] v1_1 = new String[1];
        v1_1[0] = String.valueOf(p4);
        return v0_1.delete("Bm_ChatWindow", "_id =?", v1_1);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.deletecompleteDB() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int deletecompleteDB(String p4)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        String[] v1_1 = new String[1];
        v1_1[0] = p4;
        return v0_1.delete("Bm_ChatWindow", "Userid =?", v1_1);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.deleteNotification() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void deleteNotification(android.os.Bundle p11)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        if (p11.getString("type") == null) {
            android.database.sqlite.SQLiteDatabase v0_4 = new String[2];
            v0_4[0] = String.valueOf(p11.getInt("msg_id"));
            v0_4[1] = p11.getString("matriid");
            this.sql_db.delete("Bm_Notification", "msg_id =? AND matriid =?", v0_4);
        } else {
            if ((!p11.getString("type").equalsIgnoreCase("expiary_day")) || (p11.getString("msgtype") == null)) {
                if (p11.getString("type").equalsIgnoreCase("non_gcm")) {
                    String[] v11_5 = new String[1];
                    v11_5[0] = "3";
                    this.sql_db.delete("Bm_Notification", "msgtype !=?", v11_5);
                }
            } else {
                android.database.sqlite.SQLiteDatabase v0_18 = p11.getString("msgtype").split("~");
                int v4_2 = v0_18.length;
                int v5 = 0;
                while (v5 < v4_2) {
                    String[] v7 = new String[2];
                    v7[0] = v0_18[v5];
                    v7[1] = p11.getString("matriid");
                    this.sql_db.delete("Bm_Notification", "msg_id =? AND matriid =?", v7);
                    v5++;
                }
            }
        }
        this.sql_db.close();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.deleteGcmNotifications() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void deleteGcmNotifications(long p8, String p10)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        String[] v10_1 = p10.split("~");
        int v0_3 = v10_1.length;
        int v2_0 = 0;
        while (v2_0 < v0_3) {
            String[] v4_1 = new String[4];
            v4_1[0] = v10_1[v2_0];
            v4_1[1] = "3";
            v4_1[2] = String.valueOf(p8);
            v4_1[3] = com.bharatmatrimony.AppState.getInstance().getMemberMatriID();
            this.sql_db.delete("Bm_Notification", "msg_id =? AND msgtype =? AND dateadded<? AND matriid=?", v4_1);
            v2_0++;
        }
        this.sql_db.close();
        return;
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.deletchatMsg() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int deletchatMsg(String p4, int p5)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.SqlHelp.getWritableDatabase();
        String[] v1_1 = new String[2];
        v1_1[0] = p4;
        v1_1[1] = Integer.toString(p5);
        return v0_1.delete("Bm_ChatWindow", "Userid =? AND _id =?", v1_1);
    }

Method com.freshchat.consumer.sdk.c.j.f() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public void f(java.util.List p6)
    {
        android.database.sqlite.SQLiteStatement v0_3 = this.cs().compileStatement(new com.freshchat.consumer.sdk.c.a.l().cS());
        if (v0_3 != null) {
            int v1_0 = 0;
            while (v1_0 < p6.size()) {
                String v2_2 = ((com.freshchat.consumer.sdk.beans.Tag) p6.get(v1_0));
                v0_3.clearBindings();
                v0_3.bindString(1, v2_2.getTagName());
                v0_3.bindString(2, v2_2.getTaggedItemId());
                v0_3.bindString(3, Integer.toString(v2_2.getTaggedItemType().asInt()));
                v0_3.execute();
                v1_0++;
            }
            com.freshchat.consumer.sdk.c.j.a(v0_3);
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.i.o() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void o(java.util.List p6)
    {
        android.database.sqlite.SQLiteStatement v0_3 = this.cs().compileStatement(new com.freshchat.consumer.sdk.c.a.d().cS());
        java.util.Iterator v6_1 = p6.iterator();
        while (v6_1.hasNext()) {
            long v3_4;
            String v1_2 = ((com.freshchat.consumer.sdk.beans.Category) v6_1.next());
            v0_3.clearBindings();
            v0_3.bindString(1, v1_2.getId());
            v0_3.bindString(2, v1_2.getTitle());
            v0_3.bindString(3, v1_2.getDescription());
            if (v1_2.getIconUrl() != null) {
                v3_4 = v1_2.getIconUrl();
            } else {
                v3_4 = "";
            }
            v0_3.bindString(4, v3_4);
            v0_3.bindString(5, Integer.toString(v1_2.getPosition()));
            v0_3.bindString(6, Long.toString(v1_2.getUpdatedAt()));
            v0_3.execute();
        }
        com.freshchat.consumer.sdk.c.i.a(v0_3);
        return;
    }

Method com.freshchat.consumer.sdk.c.i.n() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private void n(java.util.List p5)
    {
        android.database.sqlite.SQLiteStatement v0_3 = this.cs().compileStatement(new com.freshchat.consumer.sdk.c.a.a().cS());
        java.util.Iterator v5_1 = p5.iterator();
        while (v5_1.hasNext()) {
            String v1_2 = ((com.freshchat.consumer.sdk.beans.Article) v5_1.next());
            v0_3.clearBindings();
            v0_3.bindString(1, v1_2.getId());
            v0_3.bindString(2, v1_2.getCategoryId());
            v0_3.bindString(3, v1_2.getTitle());
            v0_3.bindString(4, v1_2.getDescription());
            v0_3.bindString(5, Integer.toString(v1_2.getPosition()));
            v0_3.bindString(6, v1_2.getUpdatedAt());
            v0_3.execute();
        }
        com.freshchat.consumer.sdk.c.i.a(v0_3);
        return;
    }

Method com.freshchat.consumer.sdk.c.e.f() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public void f(java.util.List p11)
    {
        android.database.sqlite.SQLiteStatement v0_1 = this.cs().compileStatement(new com.freshchat.consumer.sdk.c.a.f().cS());
        this.cs().beginTransaction();
        com.freshchat.consumer.sdk.c.h v1_1 = new com.freshchat.consumer.sdk.c.h(this.context);
        int v2_1 = 0;
        while (v2_1 < p11.size()) {
            boolean v3_2 = ((com.freshchat.consumer.sdk.beans.Conversation) p11.get(v2_1));
            int v4_0 = v3_2.getConversationId();
            long v6 = 0;
            if (v4_0 != 0) {
                long v8_1 = v3_2.getParticipants();
                if (com.freshchat.consumer.sdk.j.k.b(v8_1)) {
                    v1_1.g(v8_1);
                }
                v0_1.clearBindings();
                v0_1.bindString(1, Long.toString(v4_0));
                v0_1.bindLong(2, v3_2.getChannelId());
                if (v3_2.hasPendingCsat()) {
                    v6 = 1;
                }
                v0_1.bindLong(3, v6);
                v0_1.execute();
            }
            v2_1++;
        }
        this.cs().setTransactionSuccessful();
        this.cs().endTransaction();
        return;
    }

Method com.freshchat.consumer.sdk.c.e.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public void a(long p8, com.freshchat.consumer.sdk.beans.Csat p10)
    {
        if (p10 != null) {
            try {
                long v5;
                android.database.sqlite.SQLiteStatement v0_1 = this.cs().compileStatement(new com.freshchat.consumer.sdk.c.a.g().k(0));
                this.cs().beginTransaction();
                v0_1.clearBindings();
                v0_1.bindLong(1, p8);
                v0_1.bindLong(2, p10.getCsatId());
                v0_1.bindString(3, p10.getQuestion());
                long v1_3 = 0;
            } catch (android.database.sqlite.SQLiteDatabase v8_8) {
                this.cs().endTransaction();
                throw v8_8;
            } catch (android.database.sqlite.SQLiteDatabase v8_7) {
                com.freshchat.consumer.sdk.j.q.a(v8_7);
                this.cs().endTransaction();
                return;
            }
            if (!p10.isMobileUserCommentsAllowed()) {
                v5 = 0;
            } else {
                v5 = 1;
            }
            v0_1.bindLong(4, v5);
            if (p10.isMandatory()) {
                v1_3 = 1;
            }
            v0_1.bindLong(5, v1_3);
            v0_1.bindLong(6, ((long) p10.getStatus().asInt()));
            v0_1.execute();
            this.cs().setTransactionSuccessful();
            this.cs().endTransaction();
            return;
        } else {
            return;
        }
    }

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

Couldn't retrieve source code

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


    final java.util.Map g(String p13, String p14)
    {
        this.j();
        this.c();
        com.google.android.gms.common.internal.ag.a(p13);
        com.google.android.gms.common.internal.ag.a(p14);
        java.util.Map v0_2 = new android.support.v4.g.a();
        Integer v1_6 = this.w();
        try {
            Object v4_0 = new String[2];
            v4_0[0] = "audience_id";
            v4_0[1] = "data";
            int v6_0 = new String[2];
            v6_0[0] = p13;
            v6_0[1] = p14;
            int v14_2 = v1_6.query("property_filters", v4_0, "app_id=? AND property_name=?", v6_0, 0, 0, 0);
            try {
                if (!v14_2.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_2 != 0) {
                        v14_2.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.q().k_().a("Database error querying filters. appId", com.google.android.gms.measurement.a.q.a(p13), v0_0);
                if (v14_2 != 0) {
                    v14_2.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_2.getBlob(1);
                Integer v1_2 = com.google.android.gms.c.j.iv.a(v1_1, v1_1.length);
                com.google.android.gms.measurement.a.s v2_2 = new com.google.android.gms.c.j.cm();
                v2_2.a(v1_2);
                Integer v1_4 = v14_2.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_2.moveToNext());
            if (v14_2 != 0) {
                v14_2.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_2 = 0;
            if (v14_2 != 0) {
                v14_2.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_2 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    final java.util.Map f(String p13, String p14)
    {
        this.j();
        this.c();
        com.google.android.gms.common.internal.ag.a(p13);
        com.google.android.gms.common.internal.ag.a(p14);
        java.util.Map v0_2 = new android.support.v4.g.a();
        Integer v1_6 = this.w();
        try {
            Object v4_0 = new String[2];
            v4_0[0] = "audience_id";
            v4_0[1] = "data";
            int v6_0 = new String[2];
            v6_0[0] = p13;
            v6_0[1] = p14;
            int v14_2 = v1_6.query("event_filters", v4_0, "app_id=? AND event_name=?", v6_0, 0, 0, 0);
            try {
                if (!v14_2.moveToFirst()) {
                    java.util.Map v0_3 = java.util.Collections.emptyMap();
                    if (v14_2 != 0) {
                        v14_2.close();
                    }
                    return v0_3;
                }
            } catch (java.util.Map v0_0) {
                this.q().k_().a("Database error querying filters. appId", com.google.android.gms.measurement.a.q.a(p13), v0_0);
                if (v14_2 != 0) {
                    v14_2.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_2.getBlob(1);
                Integer v1_2 = com.google.android.gms.c.j.iv.a(v1_1, v1_1.length);
                com.google.android.gms.measurement.a.s v2_2 = new com.google.android.gms.c.j.cj();
                v2_2.a(v1_2);
                Integer v1_4 = v14_2.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_2.moveToNext());
            if (v14_2 != 0) {
                v14_2.close();
            }
            return v0_2;
        } catch (Throwable v13_1) {
            v14_2 = 0;
            if (v14_2 != 0) {
                v14_2.close();
            }
            throw v13_1;
        } catch (java.util.Map v0_0) {
            v14_2 = 0;
        } catch (Throwable v13_1) {
        }
    }

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


    final java.util.Map e(String p12)
    {
        this.j();
        this.c();
        com.google.android.gms.common.internal.ag.a(p12);
        int v0_1 = this.w();
        try {
            boolean v2_7 = new String[2];
            v2_7[0] = "audience_id";
            v2_7[1] = "current_results";
            com.google.android.gms.measurement.a.s v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", v2_7, "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.g.a v1_3 = new android.support.v4.g.a();
                    do {
                        boolean v2_0 = v0_0.getInt(0);
                        java.io.IOException v3_2 = v0_0.getBlob(1);
                        java.io.IOException v3_3 = com.google.android.gms.c.j.iv.a(v3_2, v3_2.length);
                        com.google.android.gms.measurement.a.s v4_3 = new com.google.android.gms.c.j.cx();
                        v4_3.a(v3_3);
                        v1_3.put(Integer.valueOf(v2_0), 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.g.a v1_0) {
                this.q().k_().a("Database error querying filter results. appId", com.google.android.gms.measurement.a.q.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.g.a v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final byte[] d(String p12)
    {
        com.google.android.gms.common.internal.ag.a(p12);
        this.c();
        this.j();
        try {
            int v1_1 = this.w();
            String v4_3 = new String[1];
            v4_3[0] = "remote_config";
            int v6_0 = new String[1];
            v6_0[0] = p12;
            int v1_0 = v1_1.query("apps", v4_3, "app_id=?", v6_0, 0, 0, 0);
            try {
                if (v1_0.moveToFirst()) {
                    byte[] v2_2 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.q().k_().a("Got multiple records for app config, expected one. appId", com.google.android.gms.measurement.a.q.a(p12));
                    }
                    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.q().k_().a("Error querying remote config. appId", com.google.android.gms.measurement.a.q.a(p12), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v12_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final com.google.android.gms.measurement.a.el d(String p34, String p35)
    {
        com.google.android.gms.common.internal.ag.a(p34);
        com.google.android.gms.common.internal.ag.a(p35);
        this.c();
        this.j();
        try {
            int v9_1 = this.w();
            Object v11_0 = new String[11];
            v11_0[0] = "origin";
            v11_0[1] = "value";
            v11_0[2] = "active";
            v11_0[3] = "trigger_event_name";
            v11_0[4] = "trigger_timeout";
            v11_0[5] = "timed_out_event";
            v11_0[6] = "creation_timestamp";
            v11_0[7] = "triggered_event";
            v11_0[8] = "triggered_timestamp";
            v11_0[9] = "time_to_live";
            v11_0[10] = "expired_event";
            String[] v13_1 = new String[2];
            v13_1[0] = p34;
            v13_1[1] = p35;
            int v9_0 = v9_1.query("conditional_properties", v11_0, "app_id=? and name=?", v13_1, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v19 = v9_0.getString(0);
                    try {
                        int v23;
                        Object v11_1 = this.a(v9_0, 1);
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                    }
                    if (v9_0.getInt(2) == 0) {
                        v23 = 0;
                    } else {
                        v23 = 1;
                    }
                    String v24 = v9_0.getString(3);
                    long v26 = v9_0.getLong(4);
                    com.google.android.gms.measurement.a.e v25_1 = ((com.google.android.gms.measurement.a.e) this.f().a(v9_0.getBlob(5), com.google.android.gms.measurement.a.e.CREATOR));
                    long v21 = v9_0.getLong(6);
                    com.google.android.gms.measurement.a.e v28_1 = ((com.google.android.gms.measurement.a.e) this.f().a(v9_0.getBlob(7), com.google.android.gms.measurement.a.e.CREATOR));
                    String v3_1 = v9_0.getLong(8);
                    long v29 = v9_0.getLong(9);
                    com.google.android.gms.measurement.a.e v31_1 = ((com.google.android.gms.measurement.a.e) this.f().a(v9_0.getBlob(10), com.google.android.gms.measurement.a.e.CREATOR));
                    com.google.android.gms.measurement.a.ea v20 = new com.google.android.gms.measurement.a.ea;
                    v20(p35, v3_1, v11_1, v19);
                    com.google.android.gms.measurement.a.el v1_8 = new com.google.android.gms.measurement.a.el;
                    v1_8(p34, v19, v20, v21, v23, v24, v25_1, v26, v28_1, v29, v31_1);
                    if (v9_0.moveToNext()) {
                        this.q().k_().a("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.a.q.a(p34), this.n().c(p35));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v1_8;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                com.google.android.gms.measurement.a.el v1_12 = v0_1;
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v1_12;
            } catch (android.database.sqlite.SQLiteException v0_0) {
            }
            com.google.android.gms.measurement.a.el v1_10 = v0_0;
            this.q().k_().a("Error querying conditional property", com.google.android.gms.measurement.a.q.a(p34), this.n().c(p35), v1_10);
            if (v9_0 != 0) {
                v9_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_12 = v0_3;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_10 = v0_2;
            v9_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final com.google.android.gms.measurement.a.ec c(String p20, String p21)
    {
        com.google.android.gms.common.internal.ag.a(p20);
        com.google.android.gms.common.internal.ag.a(p21);
        this.c();
        this.j();
        try {
            int v10_1 = this.w();
            com.google.android.gms.measurement.a.ec v12_0 = new String[3];
            v12_0[0] = "set_timestamp";
            v12_0[1] = "value";
            v12_0[2] = "origin";
            String[] v14 = new String[2];
            v14[0] = p20;
            v14[1] = p21;
            int v10_0 = v10_1.query("user_attributes", v12_0, "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.a.ec v12_1 = new com.google.android.gms.measurement.a.ec;
                        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.q().k_().a("Got multiple records for user property, expected one. appId", com.google.android.gms.measurement.a.q.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.a.s v1_4 = v0_3;
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v1_4;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            com.google.android.gms.measurement.a.s v1_3 = v0_2;
            this.q().k_().a("Error querying user property. appId", com.google.android.gms.measurement.a.q.a(p20), this.n().c(p21), v1_3);
            if (v10_0 != 0) {
                v10_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_4 = v0_1;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_3 = v0_0;
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final com.google.android.gms.measurement.a.eg b(String p21)
    {
        com.google.android.gms.common.internal.ag.a(p21);
        this.c();
        this.j();
        try {
            Throwable v3_2 = this.w();
            com.google.android.gms.measurement.a.eq v5_2 = new String[26];
            v5_2[0] = "app_instance_id";
            int v12 = 1;
            v5_2[1] = "gmp_app_id";
            v5_2[2] = "resettable_device_id_hash";
            v5_2[3] = "last_bundle_index";
            v5_2[4] = "last_bundle_start_timestamp";
            v5_2[5] = "last_bundle_end_timestamp";
            v5_2[6] = "app_version";
            v5_2[7] = "app_store";
            v5_2[8] = "gmp_version";
            v5_2[9] = "dev_cert_hash";
            v5_2[10] = "measurement_enabled";
            v5_2[11] = "day";
            v5_2[12] = "daily_public_events_count";
            v5_2[13] = "daily_events_count";
            v5_2[14] = "daily_conversions_count";
            v5_2[15] = "config_fetched_time";
            v5_2[16] = "failed_config_fetch_time";
            v5_2[17] = "app_version_int";
            v5_2[18] = "firebase_instance_id";
            v5_2[19] = "daily_error_events_count";
            v5_2[20] = "daily_realtime_events_count";
            v5_2[21] = "health_monitor_sample";
            v5_2[22] = "android_id";
            v5_2[23] = "adid_reporting_enabled";
            v5_2[24] = "ssaid_reporting_enabled";
            v5_2[25] = "admob_app_id";
            String v7_8 = new String[1];
            v7_8[0] = p21;
            int v15 = 7;
            Throwable v3_0 = v3_2.query("apps", v5_2, "app_id=?", v7_8, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        com.google.android.gms.measurement.a.s v6_22;
                        com.google.android.gms.measurement.a.eg v4_3 = new com.google.android.gms.measurement.a.eg(this.a.r(), p21);
                        v4_3.a(v3_0.getString(0));
                        v4_3.b(v3_0.getString(1));
                        v4_3.d(v3_0.getString(2));
                        v4_3.f(v3_0.getLong(3));
                        v4_3.a(v3_0.getLong(4));
                        v4_3.b(v3_0.getLong(5));
                        v4_3.f(v3_0.getString(6));
                        v4_3.g(v3_0.getString(7));
                        v4_3.d(v3_0.getLong(8));
                        v4_3.e(v3_0.getLong(9));
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                        com.google.android.gms.measurement.a.eg v4_0 = v3_0;
                        Throwable v3_1 = v0_2;
                        try {
                            this.q().k_().a("Error querying app. appId", com.google.android.gms.measurement.a.q.a(p21), v3_1);
                        } catch (android.database.sqlite.SQLiteException v0_4) {
                            Throwable v1_1 = v0_4;
                            v3_0 = v4_0;
                            if (v3_0 != null) {
                                v3_0.close();
                            }
                            throw v1_1;
                        }
                        if (v4_0 != null) {
                            v4_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_22 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_22 = 0;
                        } else {
                        }
                    }
                    com.google.android.gms.measurement.a.s v6_38;
                    v4_3.a(v6_22);
                    v4_3.i(v3_0.getLong(11));
                    v4_3.j(v3_0.getLong(12));
                    v4_3.k(v3_0.getLong(13));
                    v4_3.l(v3_0.getLong(14));
                    v4_3.g(v3_0.getLong(15));
                    v4_3.h(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_38 = ((long) v3_0.getInt(17));
                    } else {
                        v6_38 = -2147483648;
                    }
                    com.google.android.gms.measurement.a.s v6_49;
                    v4_3.c(v6_38);
                    v4_3.e(v3_0.getString(18));
                    v4_3.n(v3_0.getLong(19));
                    v4_3.m(v3_0.getLong(20));
                    v4_3.h(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_49 = v3_0.getLong(22);
                    } else {
                        v6_49 = 0;
                    }
                    com.google.android.gms.measurement.a.s v6_52;
                    v4_3.o(v6_49);
                    if (v3_0.isNull(23)) {
                        v6_52 = 1;
                    } else {
                        if (v3_0.getInt(23) == 0) {
                            v6_52 = 0;
                        } else {
                        }
                    }
                    v4_3.b(v6_52);
                    if (!v3_0.isNull(24)) {
                        if (v3_0.getInt(24) == 0) {
                            v12 = 0;
                        } else {
                        }
                    }
                    v4_3.c(v12);
                    v4_3.c(v3_0.getString(25));
                    v4_3.a();
                    if (v3_0.moveToNext()) {
                        this.q().k_().a("Got multiple records for app, expected one. appId", com.google.android.gms.measurement.a.q.a(p21));
                    }
                    if (v3_0 != null) {
                        v3_0.close();
                    }
                    return v4_3;
                } else {
                    if (v3_0 != null) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            v1_1 = v0_3;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_1 = v0_1;
            v3_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v3_1 = v0_0;
            v4_0 = 0;
        }
    }

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


    public final java.util.List a(String p39, String[] p40)
    {
        this.c();
        this.j();
        Throwable v1_4 = new java.util.ArrayList();
        try {
            com.google.android.gms.measurement.a.s v3_3 = this.w();
            com.google.android.gms.measurement.a.el v5_10 = new String[13];
            int v12_0 = 0;
            v5_10[0] = "app_id";
            v5_10[1] = "origin";
            v5_10[2] = "name";
            v5_10[3] = "value";
            v5_10[4] = "active";
            v5_10[5] = "trigger_event_name";
            v5_10[6] = "trigger_timeout";
            v5_10[7] = "timed_out_event";
            v5_10[8] = "creation_timestamp";
            v5_10[9] = "triggered_event";
            v5_10[10] = "triggered_timestamp";
            v5_10[11] = "time_to_live";
            v5_10[12] = "expired_event";
            int v2_5 = 4;
            com.google.android.gms.measurement.a.s v3_2 = v3_3.query("conditional_properties", v5_10, p39, p40, 0, 0, "rowid", "1001");
            try {
                if (!v3_2.moveToFirst()) {
                    if (v3_2 != null) {
                        v3_2.close();
                    }
                    return v1_4;
                }
            } catch (Throwable v0_2) {
                Throwable v1_2 = v0_2;
                if (v3_2 != null) {
                    v3_2.close();
                }
                throw v1_2;
            } catch (Throwable v0_0) {
                Throwable v1_0 = v0_0;
                int v2_8 = v3_2;
                try {
                    this.q().k_().a("Error querying conditional user property value", v1_0);
                    Throwable v1_1 = java.util.Collections.emptyList();
                } catch (Throwable v0_1) {
                    v1_2 = v0_1;
                    v3_2 = v2_8;
                }
                if (v2_8 != 0) {
                    v2_8.close();
                }
                return v1_1;
            }
            while (v1_4.size() < 1000) {
                long v7_8;
                int v22_1;
                String v4_5 = v3_2.getString(v12_0);
                String v11_2 = v3_2.getString(1);
                String v6_13 = v3_2.getString(2);
                Object v9_2 = this.a(v3_2, 3);
                if (v3_2.getInt(v2_5) == 0) {
                    v7_8 = 5;
                    v22_1 = 0;
                } else {
                    v7_8 = 5;
                    v22_1 = 1;
                }
                String v23_1 = v3_2.getString(v7_8);
                com.google.android.gms.measurement.a.e v27_1 = v3_2.getLong(6);
                int v2_3 = ((com.google.android.gms.measurement.a.e) this.f().a(v3_2.getBlob(7), com.google.android.gms.measurement.a.e.CREATOR));
                long v20_0 = v3_2.getLong(8);
                com.google.android.gms.measurement.a.e v29_1 = ((com.google.android.gms.measurement.a.e) this.f().a(v3_2.getBlob(9), com.google.android.gms.measurement.a.e.CREATOR));
                com.google.android.gms.measurement.a.el v16_0 = v3_2.getLong(10);
                long v34 = v3_2.getLong(11);
                com.google.android.gms.measurement.a.e v30_1 = ((com.google.android.gms.measurement.a.e) this.f().a(v3_2.getBlob(12), com.google.android.gms.measurement.a.e.CREATOR));
                com.google.android.gms.measurement.a.ea v19 = new com.google.android.gms.measurement.a.ea;
                int v32 = 6;
                int v36 = 10;
                v19(v6_13, v16_0, v9_2, v11_2);
                com.google.android.gms.measurement.a.el v5_6 = new com.google.android.gms.measurement.a.el;
                v5_6(v4_5, v11_2, v19, v20_0, v22_1, v23_1, v2_3, v27_1, v29_1, v34, v30_1);
                v1_4.add(v5_6);
                if (v3_2.moveToNext()) {
                    v2_5 = 4;
                    v12_0 = 0;
                }
                if (v3_2 != null) {
                    v3_2.close();
                }
                return v1_4;
            }
            this.q().k_().a("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
        } catch (Throwable v0_4) {
            v1_2 = v0_4;
            v3_2 = 0;
        } catch (Throwable v0_3) {
            v1_0 = v0_3;
            v2_8 = 0;
        }
    }

Method com.google.android.gms.measurement.a.eq.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.ag.a(p24);
        this.c();
        this.j();
        android.database.sqlite.SQLiteException v1_3 = new java.util.ArrayList();
        android.database.Cursor v2 = 0;
        try {
            int v4_1 = 3;
            android.database.Cursor v3_8 = new java.util.ArrayList(3);
            try {
                String v6_0;
                v3_8.add(p24);
                com.google.android.gms.measurement.a.ec v5_5 = new StringBuilder("app_id=?");
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v6_0 = p25;
                android.database.sqlite.SQLiteException v1_0 = v0_0;
                android.database.Cursor v3_7 = 0;
                this.q().k_().a("(2)Error querying user properties", com.google.android.gms.measurement.a.q.a(p24), v6_0, v1_0);
                if (v3_7 != null) {
                    v3_7.close();
                }
                return 0;
            }
            if (android.text.TextUtils.isEmpty(p25)) {
                v6_0 = p25;
            } else {
                v6_0 = p25;
                v3_8.add(p25);
                v5_5.append(" and origin=?");
            }
            if (!android.text.TextUtils.isEmpty(p26)) {
                v3_8.add(String.valueOf(p26).concat("*"));
                v5_5.append(" and name glob ?");
            }
            String v7_8 = new String[v3_8.size()];
            String v17_2 = ((String[]) v3_8.toArray(v7_8));
            int v13_1 = this.w();
            ark>com.google.android.gms.measurement.a.eqark> v15_0 = new String[4];
            int v11_1 = 0;
            v15_0[0] = "name";
            int v9_1 = 1;
            v15_0[1] = "set_timestamp";
            int v10 = 2;
            v15_0[2] = "value";
            v15_0[3] = "origin";
            v3_7 = v13_1.query("user_attributes", v15_0, v5_5.toString(), v17_2, 0, 0, "rowid", "1001");
            try {
                if (v3_7.moveToFirst()) {
                    while (v1_3.size() < 1000) {
                        Object v8_2 = v3_7.getString(v11_1);
                        int v13_2 = v3_7.getLong(v9_1);
                        try {
                            String v17_0;
                            Object v16_1 = this.a(v3_7, v10);
                            String v7_10 = v3_7.getString(v4_1);
                        } catch (android.database.sqlite.SQLiteException v0_3) {
                        }
                        if (v16_1 != null) {
                            try {
                                String v6_4 = new com.google.android.gms.measurement.a.ec;
                                int v4_6 = v6_4;
                                v17_0 = v7_10;
                                int v19 = 2;
                                try {
                                    v6_4(p24, v7_10, v8_2, v13_2, v16_1);
                                    v1_3.add(v4_6);
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v1_0 = v0_1;
                                    v6_0 = v17_0;
                                }
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                v17_0 = v7_10;
                            }
                        } else {
                            try {
                                this.q().k_().a("(2)Read invalid user property value, ignoring it", com.google.android.gms.measurement.a.q.a(p24), v7_10, p26);
                                v17_0 = v7_10;
                                int v18 = 1;
                            } catch (android.database.sqlite.SQLiteException v0_2) {
                                v1_0 = v0_2;
                                v6_0 = v7_10;
                            }
                        }
                        if (v3_7.moveToNext()) {
                            v6_0 = v17_0;
                            v4_1 = 3;
                            v9_1 = 1;
                            v10 = 2;
                            v11_1 = 0;
                        }
                        if (v3_7 != null) {
                            v3_7.close();
                        }
                        return v1_3;
                    }
                    this.q().k_().a("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
                } else {
                    if (v3_7 != null) {
                        v3_7.close();
                    }
                    return v1_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_4) {
                android.database.sqlite.SQLiteException v1_1 = v0_4;
                v2 = v3_7;
                if (v2 != null) {
                    v2.close();
                }
                throw v1_1;
            } catch (android.database.sqlite.SQLiteException v0_3) {
            }
            v1_0 = v0_3;
        } catch (android.database.sqlite.SQLiteException v0_5) {
            v1_1 = v0_5;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            String v12 = p24;
        } catch (android.database.sqlite.SQLiteException v0_4) {
        }
    }

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


    public final java.util.List a(String p18, int p19, int p20)
    {
        java.util.ArrayList v5_5;
        this.c();
        this.j();
        if (p19 <= 0) {
            v5_5 = 0;
        } else {
            v5_5 = 1;
        }
        java.util.ArrayList v5_0;
        com.google.android.gms.common.internal.ag.b(v5_5);
        if (p20 <= 0) {
            v5_0 = 0;
        } else {
            v5_0 = 1;
        }
        com.google.android.gms.common.internal.ag.b(v5_0);
        com.google.android.gms.common.internal.ag.a(p18);
        java.util.ArrayList v5_1 = 0;
        try {
            int v6_0 = this.w();
            String v8_1 = new String[3];
            v8_1[0] = "rowid";
            v8_1[1] = "data";
            v8_1[2] = "retry_count";
            Integer v10_0 = new String[1];
            v10_0[0] = p18;
            Object v4_1 = v6_0.query("queue", v8_1, "app_id=?", v10_0, 0, 0, "rowid", String.valueOf(p19));
            try {
                if (v4_1.moveToFirst()) {
                    java.util.ArrayList v5_4 = new java.util.ArrayList();
                    int v6_1 = 0;
                    do {
                        android.util.Pair v7_2 = v4_1.getLong(0);
                        int v9_5 = this.f().a(v4_1.getBlob(1));
                        if ((!v5_4.isEmpty()) && ((v9_5.length + v6_1) > p20)) {
                            break;
                        }
                        Integer v10_7 = com.google.android.gms.c.j.iv.a(v9_5, v9_5.length);
                        com.google.android.gms.c.j.cw v11_2 = new com.google.android.gms.c.j.cw();
                        v11_2.a(v10_7);
                        if (!v4_1.isNull(2)) {
                            v11_2.H = Integer.valueOf(v4_1.getInt(2));
                        }
                        v6_1 += v9_5.length;
                        v5_4.add(android.util.Pair.create(v11_2, Long.valueOf(v7_2)));
                    } while((v4_1.moveToNext()) && (v6_1 <= p20));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                } else {
                    java.util.List v1_4 = java.util.Collections.emptyList();
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v1_4;
                }
            } catch (java.io.IOException v0_1) {
                java.util.List v1_3 = v0_1;
                if (v4_1 != null) {
                    v4_1.close();
                }
                throw v1_3;
            } catch (java.io.IOException v0_5) {
                java.util.List v1_1 = v0_5;
                v5_1 = v4_1;
                this.q().k_().a("Error querying bundles. appId", com.google.android.gms.measurement.a.q.a(p18), v1_1);
                java.util.List v1_2 = java.util.Collections.emptyList();
                if (v5_1 != null) {
                    v5_1.close();
                }
                return v1_2;
            }
        } catch (java.io.IOException v0_0) {
            v1_3 = v0_0;
            v4_1 = v5_1;
        } catch (java.io.IOException v0_2) {
            v1_1 = v0_2;
        }
    }

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


    public final java.util.List a(String p25)
    {
        com.google.android.gms.common.internal.ag.a(p25);
        this.c();
        this.j();
        Throwable v1_3 = new java.util.ArrayList();
        try {
            int v3_1 = this.w();
            boolean v5_0 = new String[4];
            v5_0[0] = "name";
            v5_0[1] = "origin";
            v5_0[2] = "set_timestamp";
            v5_0[3] = "value";
            Object v7_0 = new String[1];
            v7_0[0] = p25;
            int v3_0 = v3_1.query("user_attributes", v5_0, "app_id=?", v7_0, 0, 0, "rowid", "1000");
            try {
                if (v3_0.moveToFirst()) {
                    do {
                        String v19 = v3_0.getString(0);
                        ark>com.google.android.gms.measurement.a.eqark> v4_1 = v3_0.getString(1);
                        if (v4_1 == null) {
                            v4_1 = "";
                        }
                        String v18 = v4_1;
                        long v20 = v3_0.getLong(2);
                        try {
                            Object v22 = this.a(v3_0, 3);
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                        }
                        if (v22 != null) {
                            boolean v5_1 = new com.google.android.gms.measurement.a.ec;
                            v5_1(p25, v18, v19, v20, v22);
                            v1_3.add(v5_1);
                        } else {
                            this.q().k_().a("Read invalid user property value, ignoring it. appId", com.google.android.gms.measurement.a.q.a(p25));
                        }
                    } while(v3_0.moveToNext());
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v1_3;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v1_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                Throwable v1_2 = v0_3;
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v1_2;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
            Throwable v1_1 = v0_2;
            this.q().k_().a("Error querying user properties. appId", com.google.android.gms.measurement.a.q.a(p25), v1_1);
            if (v3_0 != 0) {
                v3_0.close();
            }
            return 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_2 = v0_1;
            v3_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_1 = v0_0;
            v3_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
        }
    }

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


    public final com.google.android.gms.measurement.a.ez a(String p25, String p26)
    {
        com.google.android.gms.common.internal.ag.a(p25);
        com.google.android.gms.common.internal.ag.a(p26);
        this.c();
        this.j();
        try {
            int v1_10 = this.w();
            String v3_0 = new String[8];
            int v9 = 0;
            v3_0[0] = "lifetime_count";
            v3_0[1] = "current_bundle_count";
            v3_0[2] = "last_fire_timestamp";
            v3_0[3] = "last_bundled_timestamp";
            v3_0[4] = "last_bundled_day";
            v3_0[5] = "last_sampled_complex_event_id";
            v3_0[6] = "last_sampling_rate";
            v3_0[7] = "last_exempt_from_sampling";
            String v5_2 = new String[2];
            v5_2[0] = p25;
            v5_2[1] = p26;
            int v8_0 = v1_10.query("events", v3_0, "app_id=? and name=?", v5_2, 0, 0, 0);
            try {
                if (v8_0.moveToFirst()) {
                    int v1_8;
                    Object v4_11 = v8_0.getLong(0);
                    long v6_2 = v8_0.getLong(1);
                    long v17_1 = v8_0.getLong(2);
                    if (!v8_0.isNull(3)) {
                        v1_8 = v8_0.getLong(3);
                    } else {
                        v1_8 = 0;
                    }
                    Long v13_2;
                    if (!v8_0.isNull(4)) {
                        v13_2 = Long.valueOf(v8_0.getLong(4));
                    } else {
                        v13_2 = 0;
                    }
                    Long v14_2;
                    if (!v8_0.isNull(5)) {
                        v14_2 = Long.valueOf(v8_0.getLong(5));
                    } else {
                        v14_2 = 0;
                    }
                    Long v19;
                    if (!v8_0.isNull(6)) {
                        v19 = Long.valueOf(v8_0.getLong(6));
                    } else {
                        v19 = 0;
                    }
                    Boolean v20_0;
                    if (v8_0.isNull(7)) {
                        v20_0 = 0;
                    } else {
                        try {
                            if (v8_0.getLong(7) == 1) {
                                v9 = 1;
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            int v1_4 = v0_0;
                            this.q().k_().a("Error querying events. appId", com.google.android.gms.measurement.a.q.a(p25), this.n().a(p26), v1_4);
                            if (v8_0 != 0) {
                                v8_0.close();
                            }
                            return 0;
                        }
                        v20_0 = Boolean.valueOf(v9);
                    }
                    com.google.android.gms.measurement.a.ez v21 = new com.google.android.gms.measurement.a.ez;
                    long v10_0 = v8_0;
                    v8_0 = v17_1;
                    int v22 = v10_0;
                    try {
                        v21(p25, p26, v4_11, v6_2, v8_0, v1_8, v13_2, v14_2, v19, v20_0);
                        int v1_3 = v22;
                        try {
                            if (v1_3.moveToNext()) {
                                this.q().k_().a("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.measurement.a.q.a(p25));
                            }
                        } catch (android.database.sqlite.SQLiteException v0_1) {
                            v8_0 = v1_3;
                            int v1_5 = v0_1;
                            if (v8_0 != 0) {
                                v8_0.close();
                            }
                            throw v1_5;
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v8_0 = v1_3;
                        }
                        if (v1_3 != 0) {
                            v1_3.close();
                        }
                        return v21;
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        v1_3 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v1_3 = v22;
                    }
                } else {
                    if (v8_0 != 0) {
                        v8_0.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_5 = v0_3;
            v8_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_4 = v0_2;
            v8_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final com.google.android.gms.measurement.a.er a(long p22, String p24, boolean p25, boolean p26, boolean p27, boolean p28, boolean p29)
    {
        com.google.android.gms.common.internal.ag.a(p24);
        this.c();
        this.j();
        String v3_2 = new String[1];
        v3_2[0] = p24;
        com.google.android.gms.measurement.a.er v5_1 = new com.google.android.gms.measurement.a.er();
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.w();
            String[] v9 = new String[6];
            v9[0] = "day";
            v9[1] = "daily_events_count";
            v9[2] = "daily_public_events_count";
            v9[3] = "daily_conversions_count";
            v9[4] = "daily_error_events_count";
            v9[5] = "daily_realtime_events_count";
            int v7_8 = new String[1];
            v7_8[0] = p24;
            int v7_0 = v15.query("apps", v9, "app_id=?", v7_8, 0, 0, 0);
            try {
                if (v7_0.moveToFirst()) {
                    if (v7_0.getLong(0) == p22) {
                        v5_1.b = v7_0.getLong(1);
                        v5_1.a = v7_0.getLong(2);
                        v5_1.c = v7_0.getLong(3);
                        v5_1.d = v7_0.getLong(4);
                        v5_1.e = v7_0.getLong(5);
                    }
                    if (p25) {
                        v5_1.b = (v5_1.b + 1);
                    }
                    if (p26) {
                        v5_1.a = (v5_1.a + 1);
                    }
                    if (p27) {
                        v5_1.c = (v5_1.c + 1);
                    }
                    if (p28) {
                        v5_1.d = (v5_1.d + 1);
                    }
                    if (p29) {
                        v5_1.e = (v5_1.e + 1);
                    }
                    android.content.ContentValues v1_4 = new android.content.ContentValues();
                    v1_4.put("day", Long.valueOf(p22));
                    v1_4.put("daily_public_events_count", Long.valueOf(v5_1.a));
                    v1_4.put("daily_events_count", Long.valueOf(v5_1.b));
                    v1_4.put("daily_conversions_count", Long.valueOf(v5_1.c));
                    v1_4.put("daily_error_events_count", Long.valueOf(v5_1.d));
                    v1_4.put("daily_realtime_events_count", Long.valueOf(v5_1.e));
                    v15.update("apps", v1_4, "app_id=?", v3_2);
                    if (v7_0 != 0) {
                        v7_0.close();
                    }
                    return v5_1;
                } else {
                    this.q().h().a("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.a.q.a(p24));
                    if (v7_0 != 0) {
                        v7_0.close();
                    }
                    return v5_1;
                }
            } catch (Throwable v0_2) {
                android.content.ContentValues v1_2 = v0_2;
                if (v7_0 != 0) {
                    v7_0.close();
                }
                throw v1_2;
            } catch (Throwable v0_0) {
                android.content.ContentValues v1_1 = v0_0;
                int v6_0 = v7_0;
                try {
                    this.q().k_().a("Error updating daily counts. appId", com.google.android.gms.measurement.a.q.a(p24), v1_1);
                } catch (Throwable v0_1) {
                    v1_2 = v0_1;
                    v7_0 = v6_0;
                }
                if (v6_0 != 0) {
                    v6_0.close();
                }
                return v5_1;
            }
        } catch (Throwable v0_4) {
            v1_2 = v0_4;
            v7_0 = 0;
        } catch (Throwable v0_3) {
            v1_1 = v0_3;
            v6_0 = 0;
        }
    }

Method com.google.android.gms.c.j.ad.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List a(long p24)
    {
        boolean v1_5;
        int v11_0 = 0;
        if (p24 < 0) {
            v1_5 = 0;
        } else {
            v1_5 = 1;
        }
        com.google.android.gms.common.internal.ag.b(v1_5);
        com.google.android.gms.analytics.q.d();
        this.y();
        int v13_0 = this.B();
        try {
            int v15_0 = new String[5];
            v15_0[0] = "hit_id";
            v15_0[1] = "hit_time";
            int v9_0 = 2;
            v15_0[2] = "hit_string";
            int v7_0 = 3;
            v15_0[3] = "hit_url";
            int v8 = 4;
            v15_0[4] = "hit_app_id";
            Object[] v5_1 = new Object[1];
            v5_1[0] = "hit_id";
            int v13_1 = v13_0.query("hits2", v15_0, 0, 0, 0, 0, String.format("%s ASC", v5_1), Long.toString(p24));
            try {
                java.util.ArrayList v14_2 = new java.util.ArrayList();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                boolean v1_3 = v0_0;
                this.e("Error loading hits from the database", v1_3);
                throw v1_3;
            }
            if (v13_1.moveToFirst()) {
                while(true) {
                    String v2_9 = new com.google.android.gms.c.j.bi;
                    int v11_1 = v2_9;
                    int v19 = 4;
                    v2_9(this, this.g(v13_1.getString(v9_0)), v13_1.getLong(1), com.google.android.gms.c.j.ca.g(v13_1.getString(v7_0)), v13_1.getLong(v11_0), v13_1.getInt(v8));
                    v14_2.add(v11_1);
                    if (!v13_1.moveToNext()) {
                        break;
                    }
                    v7_0 = 3;
                    v8 = 4;
                    v9_0 = 2;
                    v11_0 = 0;
                }
            }
            if (v13_1 != 0) {
                v13_1.close();
            }
            return v14_2;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v13_1 = 0;
            boolean v1_4 = v0_1;
            if (v13_1 != 0) {
                v13_1.close();
            }
            throw v1_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v13_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

Method com.google.android.gms.c.j.ad.A() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List A()
    {
        this.y();
        com.google.android.gms.analytics.q.d();
        Throwable v2_1 = this.B();
        try {
            boolean v4_2 = new String[5];
            v4_2[0] = "cid";
            v4_2[1] = "tid";
            v4_2[2] = "adid";
            v4_2[3] = "hits_count";
            v4_2[4] = "params";
            com.google.android.gms.c.j.x v9_0 = ((Integer) com.google.android.gms.c.j.bd.d.a()).intValue();
            String v16 = String.valueOf(v9_0);
            String v6_0 = new String[1];
            v6_0[0] = "0";
            android.database.sqlite.SQLiteException v11_1 = v9_0;
            Throwable v2_2 = v2_1.query("properties", v4_2, "app_uid=?", v6_0, 0, 0, 0, v16);
            try {
                String v3_11 = new java.util.ArrayList();
            } catch (Throwable v0_0) {
                android.database.sqlite.SQLiteException v11_0 = v2_2;
                Throwable v2_0 = v0_0;
                if (v11_0 != null) {
                    v11_0.close();
                }
                throw v2_0;
            } catch (Throwable v0_3) {
                v11_0 = v2_2;
                Throwable v2_3 = v0_3;
                try {
                    this.e("Error loading hits from the database", v2_3);
                    throw v2_3;
                } catch (Throwable v0_0) {
                }
            }
            if (v2_2.moveToFirst()) {
                do {
                    int v21;
                    boolean v4_1 = v2_2.getString(0);
                    String v5_1 = v2_2.getString(1);
                    if (v2_2.getInt(2) == 0) {
                        v21 = 0;
                    } else {
                        v21 = 1;
                    }
                    String v6_3 = ((long) v2_2.getInt(3));
                    java.util.Map vtmp13 = this.h(v2_2.getString(4));
                    if (android.text.TextUtils.isEmpty(v4_1)) {
                        this.c("Read property with empty client id or tracker id", v4_1, v5_1);
                    } else {
                        if (!android.text.TextUtils.isEmpty(v5_1)) {
                            com.google.android.gms.c.j.x v9_5 = new com.google.android.gms.c.j.x;
                            v9_5(v4_1, v5_1, v21, v6_3, vtmp13);
                            v3_11.add(v9_5);
                        } else {
                        }
                    }
                } while(v2_2.moveToNext());
            }
            if (v3_11.size() >= v11_1) {
                this.e("Sending hits to too many properties. Campaign report might be incorrect");
            }
            if (v2_2 != null) {
                v2_2.close();
            }
            return v3_11;
        } catch (Throwable v0_2) {
            v2_0 = v0_2;
            v11_0 = 0;
        } catch (Throwable v0_1) {
            v2_3 = v0_1;
            v11_0 = 0;
        }
    }

Method com.google.android.gms.c.j.ad.c() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List c(long p14)
    {
        com.google.android.gms.analytics.q.d();
        this.y();
        if (p14 > 0) {
            long v0_2 = this.B();
            java.util.ArrayList v9_1 = new java.util.ArrayList();
            String v10 = 0;
            try {
                int v3_0 = new String[1];
                v3_0[0] = "hit_id";
                String[] v2_1 = new Object[1];
                v2_1[0] = "hit_id";
                String v14_2 = v0_2.query("hits2", v3_0, 0, 0, 0, 0, String.format("%s ASC", v2_1), Long.toString(p14));
                try {
                    if (v14_2.moveToFirst()) {
                        do {
                            v9_1.add(Long.valueOf(v14_2.getLong(0)));
                        } while(v14_2.moveToNext());
                    }
                } catch (boolean v15_2) {
                    v10 = v14_2;
                    if (v10 != null) {
                        v10.close();
                    }
                    throw v15_2;
                } catch (boolean v15_0) {
                    v10 = v14_2;
                    this.d("Error selecting hit ids", v15_0);
                    if (v10 == null) {
                        return v9_1;
                    } else {
                        v10.close();
                        return v9_1;
                    }
                }
                if (v14_2 == null) {
                    return v9_1;
                } else {
                    v14_2.close();
                    return v9_1;
                }
            } catch (boolean v15_2) {
            } catch (boolean v15_0) {
            }
        } else {
            return java.util.Collections.emptyList();
        }
    }

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                long v7_24;
                int v22;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        String v39_0;
                                        int v36;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_7;
                                        boolean v40;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            com.google.android.gms.measurement.a.an v44;
                                            long v42;
                                            int v62;
                                            long v43;
                                            int v63_0;
                                            int v41;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                long v45;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            Boolean v65;
                                                            long v64;
                                                            String v5_81;
                                                            long v66;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                int v17_2;
                                long v16_5;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

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


    private final boolean a(long p69)
    {
        this.d().e();
        try {
            com.google.android.gms.measurement.a.s v2_25 = new ark>com.google.android.gms.measurement.a.dtark>$a(this, 0);
            com.google.android.gms.measurement.a.ez v4_20 = this.d();
            String v5_87 = this.w;
            com.google.android.gms.common.internal.ag.a(v2_25);
            v4_20.c();
            v4_20.j();
            long v11_0 = 0;
            try {
                long v7_24;
                int v22;
                Long v15_5 = v4_20.w();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        long v7_66;
                        if (v5_87 == -1) {
                            v7_66 = new String[1];
                            v7_66[0] = 0;
                        } else {
                            v7_66 = new String[2];
                            v7_66[0] = 0;
                            v7_66[1] = String.valueOf(v5_87);
                        }
                        long v11_6;
                        if (v5_87 == -1) {
                            v11_6 = "";
                        } else {
                            v11_6 = " and rowid <= ?";
                        }
                        long v14_10 = new StringBuilder((String.valueOf(v11_6).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v11_6);
                        v14_10.append(" order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v14_10.toString(), v7_66);
                        if (v11_0.moveToFirst()) {
                            long v13_20 = v11_0.getString(0);
                            v11_0.close();
                            v22 = v11_0;
                            v7_24 = v13_20;
                            v11_0 = 0;
                        } else {
                            if (v11_0 == 0) {
                                com.google.android.gms.measurement.a.ez v4_10;
                                if (v2_25.c == null) {
                                    v4_10 = 1;
                                } else {
                                    if (!v2_25.c.isEmpty()) {
                                        v4_10 = 0;
                                    } else {
                                    }
                                }
                                if (v4_10 != null) {
                                    this.d().u();
                                    this.d().v();
                                    return 0;
                                } else {
                                    com.google.android.gms.measurement.a.ez v4_4 = v2_25.a;
                                    String v5_16 = new com.google.android.gms.c.j.ct[v2_25.c.size()];
                                    v4_4.b = v5_16;
                                    String v5_19 = this.i.b().e(v4_4.o);
                                    int v8_16 = 0;
                                    int v9_23 = 0;
                                    long v11_1 = 0;
                                    long v13_7 = 0;
                                    while (v8_16 < v2_25.c.size()) {
                                        int v36;
                                        String v39_0;
                                        Long v15_3 = ((com.google.android.gms.c.j.ct) v2_25.c.get(v8_16));
                                        if (!this.u().b(v2_25.a.o, v15_3.b)) {
                                            com.google.android.gms.c.j.cu[] v3_1 = this.u().c(v2_25.a.o, v15_3.b);
                                            if (v3_1 != null) {
                                                if (v15_3.a == null) {
                                                    boolean v10_6 = new com.google.android.gms.c.j.cu[0];
                                                    v15_3.a = v10_6;
                                                }
                                                long v7_16 = v15_3.a;
                                                boolean v10_7 = v7_16.length;
                                                long v12_17 = 0;
                                                long v16_1 = 0;
                                                int v17_0 = 0;
                                                while (v12_17 < v10_7) {
                                                    long v26_1;
                                                    long v6_73 = v7_16[v12_17];
                                                    com.google.android.gms.measurement.a.eq v24_1 = v7_16;
                                                    long v25_1 = v10_7;
                                                    if (!"_c".equals(v6_73.a)) {
                                                        v26_1 = v9_23;
                                                        if ("_r".equals(v6_73.a)) {
                                                            v6_73.c = Long.valueOf(1);
                                                            v17_0 = 1;
                                                        }
                                                    } else {
                                                        v26_1 = v9_23;
                                                        v6_73.c = Long.valueOf(1);
                                                        v16_1 = 1;
                                                    }
                                                    v12_17++;
                                                    v7_16 = v24_1;
                                                    v10_7 = v25_1;
                                                    v9_23 = v26_1;
                                                }
                                                long v26_0 = v9_23;
                                                if ((v16_1 == 0) && (v3_1 != null)) {
                                                    this.i.q().v().a("Marking event as conversion", this.i.k().a(v15_3.b));
                                                    long v6_10 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_22 = new com.google.android.gms.c.j.cu();
                                                    v7_22.a = "_c";
                                                    v7_22.c = Long.valueOf(1);
                                                    v6_10[(v6_10.length - 1)] = v7_22;
                                                    v15_3.a = v6_10;
                                                }
                                                if (v17_0 == 0) {
                                                    this.i.q().v().a("Marking event as real-time", this.i.k().a(v15_3.b));
                                                    long v6_16 = ((com.google.android.gms.c.j.cu[]) java.util.Arrays.copyOf(v15_3.a, (v15_3.a.length + 1)));
                                                    long v7_29 = new com.google.android.gms.c.j.cu();
                                                    v7_29.a = "_r";
                                                    v7_29.c = Long.valueOf(1);
                                                    v6_16[(v6_16.length - 1)] = v7_29;
                                                    v15_3.a = v6_16;
                                                }
                                                if (this.d().a(this.y(), v2_25.a.o, 0, 0, 0, 0, 1).e <= ((long) this.i.b().a(v2_25.a.o))) {
                                                    v9_23 = 1;
                                                } else {
                                                    long v6_21 = 0;
                                                    while (v6_21 < v15_3.a.length) {
                                                        if (!"_r".equals(v15_3.a[v6_21].a)) {
                                                            v6_21++;
                                                        } else {
                                                            long v7_37 = new com.google.android.gms.c.j.cu[(v15_3.a.length - 1)];
                                                            if (v6_21 > 0) {
                                                                System.arraycopy(v15_3.a, 0, v7_37, 0, v6_21);
                                                            }
                                                            if (v6_21 < v7_37.length) {
                                                                System.arraycopy(v15_3.a, (v6_21 + 1), v7_37, v6_21, (v7_37.length - v6_21));
                                                            }
                                                            v15_3.a = v7_37;
                                                            break;
                                                        }
                                                    }
                                                    v9_23 = v26_0;
                                                }
                                                if ((!com.google.android.gms.measurement.a.ed.a(v15_3.b)) || (v3_1 == null)) {
                                                    v39_0 = v8_16;
                                                    v36 = v9_23;
                                                } else {
                                                    v36 = v9_23;
                                                    if (this.d().a(this.y(), v2_25.a.o, 0, 0, 1, 0, 0).c <= ((long) this.i.b().b(v2_25.a.o, com.google.android.gms.measurement.a.g.v))) {
                                                        v39_0 = v8_16;
                                                    } else {
                                                        this.i.q().h().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                        long v6_31 = v15_3.a;
                                                        long v7_39 = v6_31.length;
                                                        int v9_37 = 0;
                                                        boolean v10_18 = 0;
                                                        long v12_25 = 0;
                                                        while (v9_37 < v7_39) {
                                                            long v7_54 = v6_31[v9_37];
                                                            if (!"_c".equals(v7_54.a)) {
                                                                if ("_err".equals(v7_54.a)) {
                                                                    v10_18 = 1;
                                                                }
                                                            } else {
                                                                v12_25 = v7_54;
                                                            }
                                                            v9_37++;
                                                        }
                                                        v39_0 = v8_16;
                                                        if ((!v10_18) || (v12_25 == 0)) {
                                                            if (v12_25 == 0) {
                                                                this.i.q().k_().a("Did not find conversion parameter. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                            } else {
                                                                v12_25.a = "_err";
                                                                v12_25.c = Long.valueOf(10);
                                                            }
                                                        } else {
                                                            long v6_38 = v15_3.a;
                                                            int v8_9 = new com.google.android.gms.c.j.cu[1];
                                                            v8_9[0] = v12_25;
                                                            v15_3.a = ((com.google.android.gms.c.j.cu[]) com.google.android.gms.common.util.b.a(v6_38, v8_9));
                                                        }
                                                    }
                                                }
                                            } else {
                                                long v7_10;
                                                this.f();
                                                long v7_8 = v15_3.b;
                                                com.google.android.gms.common.internal.ag.a(v7_8);
                                                boolean v10_2 = v7_8.hashCode();
                                                if (v10_2 == 94660) {
                                                    if (!v7_8.equals("_in")) {
                                                        v7_10 = -1;
                                                    } else {
                                                        v7_10 = 0;
                                                    }
                                                } else {
                                                    if (v10_2 == 95025) {
                                                        if (!v7_8.equals("_ug")) {
                                                        } else {
                                                            v7_10 = 2;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95027) {
                                                            if (!v7_8.equals("_ui")) {
                                                            } else {
                                                                v7_10 = 1;
                                                            }
                                                        } else {
                                                        }
                                                    }
                                                }
                                                long v7_13;
                                                switch (v7_10) {
                                                    case 0:
                                                    case 1:
                                                    case 2:
                                                        v7_13 = 1;
                                                    default:
                                                        v7_13 = 0;
                                                }
                                                if (v7_13 == 0) {
                                                } else {
                                                }
                                            }
                                            if ((!this.i.b().k(v2_25.a.o)) || (v3_1 == null)) {
                                            } else {
                                                com.google.android.gms.c.j.cu[] v3_2 = v15_3.a;
                                                long v6_44 = 0;
                                                long v7_45 = -1;
                                                int v8_10 = -1;
                                                while (v6_44 < v3_2.length) {
                                                    if (!"value".equals(v3_2[v6_44].a)) {
                                                        if ("currency".equals(v3_2[v6_44].a)) {
                                                            v8_10 = v6_44;
                                                        }
                                                    } else {
                                                        v7_45 = v6_44;
                                                    }
                                                    v6_44++;
                                                }
                                                if (v7_45 == -1) {
                                                } else {
                                                    if ((v3_2[v7_45].c != null) || (v3_2[v7_45].d != null)) {
                                                        long v6_53;
                                                        if (v8_10 != -1) {
                                                            long v6_52 = v3_2[v8_10].b;
                                                            if (v6_52 == 0) {
                                                            } else {
                                                                if (v6_52.length() == 3) {
                                                                    int v8_12 = 0;
                                                                    while (v8_12 < v6_52.length()) {
                                                                        boolean v10_20 = v6_52.codePointAt(v8_12);
                                                                        if (Character.isLetter(v10_20)) {
                                                                            v8_12 += Character.charCount(v10_20);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v6_53 = 0;
                                                                    if (v6_53 != 0) {
                                                                        this.i.q().j().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 19, "currency");
                                                                    }
                                                                    v15_3.a = v3_2;
                                                                    if ((v5_19 != null) && ("_e".equals(v15_3.b))) {
                                                                        if (v15_3.a != null) {
                                                                            if (v15_3.a.length != 0) {
                                                                                this.f();
                                                                                com.google.android.gms.c.j.cu[] v3_14 = ((Long) com.google.android.gms.measurement.a.dz.b(v15_3, "_et"));
                                                                                if (v3_14 != null) {
                                                                                    v13_7 += v3_14.longValue();
                                                                                    long v6_68 = (v11_1 + 1);
                                                                                    v4_4.b[v11_1] = v15_3;
                                                                                    v11_1 = v6_68;
                                                                                    v8_16 = (v39_0 + 1);
                                                                                    v9_23 = v36;
                                                                                    boolean v10 = 2;
                                                                                } else {
                                                                                    this.i.q().h().a("Engagement event does not include duration. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                                }
                                                                            } else {
                                                                            }
                                                                        }
                                                                        this.i.q().h().a("Engagement event does not contain any parameters. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o));
                                                                    }
                                                                } else {
                                                                }
                                                            }
                                                            v6_53 = 1;
                                                        } else {
                                                            v6_53 = 1;
                                                        }
                                                    } else {
                                                        this.i.q().j().a("Value must be specified with a numeric type.");
                                                        v3_2 = ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(ark>com.google.android.gms.measurement.a.dtark>.a(v3_2, v7_45), "_c"), 18, "value");
                                                    }
                                                }
                                            }
                                        } else {
                                            com.google.android.gms.c.j.cu[] v3_28;
                                            this.i.q().h().a("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.a.q.a(v2_25.a.o), this.i.k().a(v15_3.b));
                                            if (this.u().f(v2_25.a.o)) {
                                                v3_28 = 1;
                                            } else {
                                                if (!this.u().g(v2_25.a.o)) {
                                                    v3_28 = 0;
                                                } else {
                                                }
                                            }
                                            if ((v3_28 == null) && (!"_err".equals(v15_3.b))) {
                                                this.i.j().b(11, "_ev", v15_3.b, 0);
                                            }
                                            v39_0 = v8_16;
                                            v36 = v9_23;
                                        }
                                    }
                                    long v26_2 = v9_23;
                                    if (v11_1 < v2_25.c.size()) {
                                        v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v4_4.b, v11_1));
                                    }
                                    long v6_0;
                                    if (v5_19 == null) {
                                        v6_0 = v2_25;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_7;
                                        boolean v40;
                                        com.google.android.gms.c.j.cu[] v3_40 = this.d().c(v4_4.o, "_lte");
                                        if (v3_40 == null) {
                                            v40 = v2_25;
                                            v2_7 = new com.google.android.gms.measurement.a.ec;
                                            v2_7(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf(v13_7));
                                        } else {
                                            if (v3_40.e != null) {
                                                String v5_22 = new com.google.android.gms.measurement.a.ec;
                                                v40 = v2_25;
                                                v5_22(v4_4.o, "auto", "_lte", this.i.l().a(), Long.valueOf((((Long) v3_40.e).longValue() + v13_7)));
                                                v2_7 = v5_22;
                                            } else {
                                            }
                                        }
                                        com.google.android.gms.c.j.cu[] v3_45 = new com.google.android.gms.c.j.cz();
                                        v3_45.b = "_lte";
                                        v3_45.a = Long.valueOf(this.i.l().a());
                                        v3_45.d = ((Long) v2_7.e);
                                        String v5_32 = 0;
                                        while (v5_32 < v4_4.c.length) {
                                            if (!"_lte".equals(v4_4.c[v5_32].b)) {
                                                v5_32++;
                                            } else {
                                                v4_4.c[v5_32] = v3_45;
                                                String v5_33 = 1;
                                            }
                                            if (v5_33 != null) {
                                                v6_0 = v40;
                                            } else {
                                                v4_4.c = ((com.google.android.gms.c.j.cz[]) java.util.Arrays.copyOf(v4_4.c, (v4_4.c.length + 1)));
                                                v6_0 = v40;
                                                v4_4.c[(v6_0.a.c.length - 1)] = v3_45;
                                            }
                                            if (v13_7 > 0) {
                                                this.d().a(v2_7);
                                                this.i.q().u().a("Updated lifetime engagement user property with value. Value", v2_7.e);
                                            }
                                        }
                                        v5_33 = 0;
                                    }
                                    int v63_1;
                                    v4_4.A = this.a(v4_4.o, v4_4.c, v4_4.b);
                                    if (!this.i.b().d(v6_0.a.o)) {
                                        v63_1 = v6_0;
                                    } else {
                                        com.google.android.gms.measurement.a.s v2_16 = new java.util.HashMap();
                                        com.google.android.gms.c.j.cu[] v3_56 = new com.google.android.gms.c.j.ct[v4_4.b.length];
                                        String v5_1 = this.i.j().g();
                                        long v7_5 = v4_4.b;
                                        int v8_3 = v7_5.length;
                                        int v9_1 = 0;
                                        boolean v10_0 = 0;
                                        while (v9_1 < v8_3) {
                                            com.google.android.gms.measurement.a.an v44;
                                            long v42;
                                            long v43;
                                            int v41;
                                            int v63_0;
                                            int v62;
                                            long v11_11 = v7_5[v9_1];
                                            if (!v11_11.b.equals("_ep")) {
                                                com.google.android.gms.measurement.a.ez v4_18;
                                                long v45;
                                                v41 = v7_5;
                                                long v12_37 = this.u().e(v6_0.a.o);
                                                this.i.j();
                                                long v14_15 = com.google.android.gms.measurement.a.ed.a(v11_11.c.longValue(), v12_37);
                                                v44 = v4_4;
                                                v42 = v8_3;
                                                v43 = v9_1;
                                                com.google.android.gms.measurement.a.ez v4_16 = Long.valueOf(1);
                                                if (android.text.TextUtils.isEmpty("_dbg")) {
                                                    v45 = v12_37;
                                                    v4_18 = 0;
                                                } else {
                                                    if (v4_16 != null) {
                                                        int v8_32 = v11_11.a;
                                                        int v9_62 = v8_32.length;
                                                        v45 = v12_37;
                                                        long v12_38 = 0;
                                                        while (v12_38 < v9_62) {
                                                            long v13_24 = v8_32[v12_38];
                                                            if (!"_dbg".equals(v13_24.a)) {
                                                                v12_38++;
                                                            } else {
                                                                if (!(v4_16 instanceof Long)) {
                                                                    break;
                                                                }
                                                                if (v4_16.equals(v13_24.c)) {
                                                                    v4_18 = 1;
                                                                } else {
                                                                    break;
                                                                }
                                                            }
                                                        }
                                                    } else {
                                                    }
                                                }
                                                long v12_39;
                                                if (v4_18 != null) {
                                                    v12_39 = 1;
                                                } else {
                                                    v12_39 = this.u().d(v6_0.a.o, v11_11.b);
                                                }
                                                if (v12_39 > 0) {
                                                    com.google.android.gms.measurement.a.ez v4_23 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v11_11.b));
                                                    if (v4_23 == null) {
                                                        v4_23 = this.d().a(v6_0.a.o, v11_11.b);
                                                        if (v4_23 == null) {
                                                            this.i.q().h().a("Event being bundled has no eventAggregate. appId, eventName", v6_0.a.o, v11_11.b);
                                                            v4_23 = new com.google.android.gms.measurement.a.ez;
                                                            v4_23(v6_0.a.o, v11_11.b, 1, 1, v11_11.c.longValue(), 0, 0, 0, 0, 0);
                                                        }
                                                    }
                                                    int v8_40;
                                                    this.f();
                                                    long v7_115 = ((Long) com.google.android.gms.measurement.a.dz.b(v11_11, "_eid"));
                                                    if (v7_115 == 0) {
                                                        v8_40 = 0;
                                                    } else {
                                                        v8_40 = 1;
                                                    }
                                                    int v8_41 = Boolean.valueOf(v8_40);
                                                    if (v12_39 != 1) {
                                                        if (v5_1.nextInt(v12_39) != 0) {
                                                            Boolean v65;
                                                            long v64;
                                                            String v5_81;
                                                            long v66;
                                                            v62 = v5_1;
                                                            if (!this.i.b().m(v6_0.a.o)) {
                                                                v63_0 = v6_0;
                                                                v64 = v7_115;
                                                                v65 = v8_41;
                                                                v66 = v14_15;
                                                                if (Math.abs((v11_11.c.longValue() - v4_23.f)) < 86400000) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                            } else {
                                                                long v16_7;
                                                                if (v4_23.g == null) {
                                                                    this.i.j();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                    v16_7 = com.google.android.gms.measurement.a.ed.a(v11_11.d.longValue(), v45);
                                                                } else {
                                                                    v16_7 = v4_23.g.longValue();
                                                                    v63_0 = v6_0;
                                                                    v64 = v7_115;
                                                                    v65 = v8_41;
                                                                }
                                                                if (v16_7 == v14_15) {
                                                                    v5_81 = 0;
                                                                } else {
                                                                    v5_81 = 1;
                                                                }
                                                                v66 = v14_15;
                                                            }
                                                            if (v5_81 == null) {
                                                                if (!v65.booleanValue()) {
                                                                    v9_1 = (v43 + 1);
                                                                    v7_5 = v41;
                                                                    v8_3 = v42;
                                                                    v4_4 = v44;
                                                                    v5_1 = v62;
                                                                    v6_0 = v63_0;
                                                                } else {
                                                                    v2_16.put(v11_11.b, v4_23.a(v64, 0, 0));
                                                                }
                                                            } else {
                                                                this.f();
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                                this.f();
                                                                long v12_40 = ((long) v12_39);
                                                                v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_40));
                                                                String v5_95 = (v10_0 + 1);
                                                                v3_56[v10_0] = v11_11;
                                                                if (v65.booleanValue()) {
                                                                    v4_23 = v4_23.a(0, Long.valueOf(v12_40), Boolean.TRUE);
                                                                }
                                                                v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v66));
                                                                v10_0 = v5_95;
                                                            }
                                                        } else {
                                                            this.f();
                                                            long v12_41 = ((long) v12_39);
                                                            v62 = v5_1;
                                                            v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", Long.valueOf(v12_41));
                                                            String v5_98 = (v10_0 + 1);
                                                            v3_56[v10_0] = v11_11;
                                                            if (v8_41.booleanValue()) {
                                                                v4_23 = v4_23.a(0, Long.valueOf(v12_41), 0);
                                                            }
                                                            v2_16.put(v11_11.b, v4_23.a(v11_11.c.longValue(), v14_15));
                                                            v10_0 = v5_98;
                                                        }
                                                    } else {
                                                        long v7_131 = (v10_0 + 1);
                                                        v3_56[v10_0] = v11_11;
                                                        if ((v8_41.booleanValue()) && ((v4_23.h != null) || ((v4_23.i != null) || (v4_23.j != null)))) {
                                                            v2_16.put(v11_11.b, v4_23.a(0, 0, 0));
                                                        }
                                                        v62 = v5_1;
                                                        v63_0 = v6_0;
                                                        v10_0 = v7_131;
                                                    }
                                                } else {
                                                    this.i.q().h().a("Sample rate must be positive. event, rate", v11_11.b, Integer.valueOf(v12_39));
                                                    com.google.android.gms.measurement.a.ez v4_3 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v10_0 = v4_3;
                                                    v62 = v5_1;
                                                }
                                                v63_0 = v6_0;
                                            } else {
                                                this.f();
                                                long v12_2 = ((String) com.google.android.gms.measurement.a.dz.b(v11_11, "_en"));
                                                long v13_1 = ((com.google.android.gms.measurement.a.ez) v2_16.get(v12_2));
                                                if (v13_1 == 0) {
                                                    v13_1 = this.d().a(v6_0.a.o, v12_2);
                                                    v2_16.put(v12_2, v13_1);
                                                }
                                                if (v13_1.h != null) {
                                                    v41 = v7_5;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                } else {
                                                    if (v13_1.i.longValue() > 1) {
                                                        this.f();
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_sr", v13_1.i);
                                                    }
                                                    if ((v13_1.j == null) || (!v13_1.j.booleanValue())) {
                                                        v41 = v7_5;
                                                    } else {
                                                        this.f();
                                                        v41 = v7_5;
                                                        v11_11.a = com.google.android.gms.measurement.a.dz.a(v11_11.a, "_efs", Long.valueOf(1));
                                                    }
                                                    long v7_4 = (v10_0 + 1);
                                                    v3_56[v10_0] = v11_11;
                                                    v44 = v4_4;
                                                    v62 = v5_1;
                                                    v63_0 = v6_0;
                                                    v10_0 = v7_4;
                                                }
                                                v42 = v8_3;
                                                v43 = v9_1;
                                            }
                                        }
                                        v63_1 = v6_0;
                                        if (v10_0 < v4_4.b.length) {
                                            v4_4.b = ((com.google.android.gms.c.j.ct[]) java.util.Arrays.copyOf(v3_56, v10_0));
                                        }
                                        com.google.android.gms.measurement.a.s v2_18 = v2_16.entrySet().iterator();
                                        while (v2_18.hasNext()) {
                                            this.d().a(((com.google.android.gms.measurement.a.ez) ((java.util.Map$Entry) v2_18.next()).getValue()));
                                        }
                                    }
                                    v4_4.e = Long.valueOf(nan);
                                    v4_4.f = Long.valueOf(-0.0);
                                    com.google.android.gms.measurement.a.s v2_23 = 0;
                                    while (v2_23 < v4_4.b.length) {
                                        com.google.android.gms.c.j.cu[] v3_67 = v4_4.b[v2_23];
                                        if (v3_67.c.longValue() < v4_4.e.longValue()) {
                                            v4_4.e = v3_67.c;
                                        }
                                        if (v3_67.c.longValue() > v4_4.f.longValue()) {
                                            v4_4.f = v3_67.c;
                                        }
                                        v2_23++;
                                    }
                                    com.google.android.gms.measurement.a.s v2_24 = v63_1;
                                    com.google.android.gms.c.j.cu[] v3_64 = v2_24.a.o;
                                    String v5_45 = this.d().b(v3_64);
                                    if (v5_45 != null) {
                                        if (v4_4.b.length > 0) {
                                            long v11_9;
                                            long v6_111 = v5_45.i();
                                            if (v6_111 == 0) {
                                                v11_9 = 0;
                                            } else {
                                                v11_9 = Long.valueOf(v6_111);
                                            }
                                            v4_4.h = v11_9;
                                            int v8_27 = v5_45.h();
                                            if (v8_27 != 0) {
                                                v6_111 = v8_27;
                                            } else {
                                            }
                                            long v11_10;
                                            if (v6_111 == 0) {
                                                v11_10 = 0;
                                            } else {
                                                v11_10 = Long.valueOf(v6_111);
                                            }
                                            v4_4.g = v11_10;
                                            v5_45.s();
                                            v4_4.w = Integer.valueOf(((int) v5_45.p()));
                                            v5_45.a(v4_4.e.longValue());
                                            v5_45.b(v4_4.f.longValue());
                                            v4_4.x = v5_45.A();
                                            this.d().a(v5_45);
                                        }
                                    } else {
                                        this.i.q().k_().a("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                    }
                                    if (v4_4.b.length > 0) {
                                        String v5_52 = this.u().a(v2_24.a.o);
                                        if (v5_52 == null) {
                                            if (!android.text.TextUtils.isEmpty(v2_24.a.y)) {
                                                this.i.q().h().a("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.a.q.a(v2_24.a.o));
                                            } else {
                                                v4_4.E = Long.valueOf(-1);
                                            }
                                        } else {
                                            if (v5_52.a != null) {
                                                v4_4.E = v5_52.a;
                                            } else {
                                            }
                                        }
                                        this.d().a(v4_4, v26_2);
                                    }
                                    com.google.android.gms.measurement.a.ez v4_11 = this.d();
                                    com.google.android.gms.measurement.a.s v2_26 = v2_24.b;
                                    com.google.android.gms.common.internal.ag.a(v2_26);
                                    v4_11.c();
                                    v4_11.j();
                                    String v5_64 = new StringBuilder("rowid in (");
                                    long v6_128 = 0;
                                    while (v6_128 < v2_26.size()) {
                                        if (v6_128 != 0) {
                                            v5_64.append(",");
                                        }
                                        v5_64.append(((Long) v2_26.get(v6_128)).longValue());
                                        v6_128++;
                                    }
                                    v5_64.append(")");
                                    String v5_66 = v4_11.w().delete("raw_events", v5_64.toString(), 0);
                                    if (v5_66 != v2_26.size()) {
                                        v4_11.q().k_().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v5_66), Integer.valueOf(v2_26.size()));
                                    }
                                    com.google.android.gms.measurement.a.s v2_29 = this.d();
                                    com.google.android.gms.measurement.a.ez v4_14 = v2_29.w();
                                    try {
                                        long v6_134 = new String[2];
                                        v6_134[0] = v3_64;
                                        v6_134[1] = v3_64;
                                        v4_14.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_134);
                                    } catch (android.database.sqlite.SQLiteException v0_13) {
                                        v2_29.q().k_().a("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.a.q.a(v3_64), v0_13);
                                    }
                                    this.d().u();
                                    this.d().v();
                                    return 1;
                                }
                            } else {
                                v11_0.close();
                            }
                        }
                    } else {
                        try {
                            long v13_22;
                            if (v5_87 == -1) {
                                v13_22 = new String[1];
                                v13_22[0] = String.valueOf(p69);
                            } else {
                                v13_22 = new String[2];
                                v13_22[0] = String.valueOf(v5_87);
                                v13_22[1] = String.valueOf(p69);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_14) {
                            String v5_0 = v0_14;
                            int v8_2 = 0;
                            v4_20.q().k_().a("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.a.q.a(v11_0), v5_0);
                            if (v8_2 == 0) {
                            } else {
                                v8_2.close();
                            }
                        }
                        long v14_17;
                        if (v5_87 == -1) {
                            v14_17 = "";
                        } else {
                            v14_17 = "rowid <= ? and ";
                        }
                        long v11_13 = new StringBuilder((String.valueOf(v14_17).length() + 148));
                        v11_13.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_13.append(v14_17);
                        v11_13.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v11_0 = v15_5.rawQuery(v11_13.toString(), v13_22);
                        if (v11_0.moveToFirst()) {
                            long v7_6 = v11_0.getString(0);
                            try {
                                long v13_4 = v11_0.getString(1);
                                v11_0.close();
                                v22 = v11_0;
                                v11_0 = v7_6;
                                v7_24 = v13_4;
                            } catch (android.database.sqlite.SQLiteException v0_3) {
                                v5_0 = v0_3;
                                v8_2 = v11_0;
                                v11_0 = v7_24;
                            }
                        } else {
                            if (v11_0 == 0) {
                            } else {
                                v11_0.close();
                            }
                        }
                    }
                    try {
                        long v13_5 = new String[1];
                        v13_5[0] = "metadata";
                        int v8_5 = new String[2];
                        v8_5[0] = v11_0;
                        v8_5[1] = v7_24;
                        int v23 = v15_5;
                        v8_2 = v15_5.query("raw_events_metadata", v13_5, "app_id = ? and metadata_fingerprint = ?", v8_5, 0, 0, "rowid", "2");
                        try {
                            if (v8_2.moveToFirst()) {
                                int v9_49 = v8_2.getBlob(0);
                                int v9_50 = com.google.android.gms.c.j.iv.a(v9_49, v9_49.length);
                                long v13_10 = new com.google.android.gms.c.j.cw();
                                try {
                                    v13_10.a(v9_50);
                                } catch (android.database.sqlite.SQLiteException v0_8) {
                                    v4_20.q().k_().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.a.q.a(v11_0), v0_8);
                                    if (v8_2 == 0) {
                                    } else {
                                        v8_2.close();
                                    }
                                }
                                if (v8_2.moveToNext()) {
                                    v4_20.q().h().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                }
                                long v16_5;
                                int v17_2;
                                v8_2.close();
                                v2_25.a(v13_10);
                                if (v5_87 == -1) {
                                    long v6_84 = new String[2];
                                    v6_84[0] = v11_0;
                                    v6_84[1] = v7_24;
                                    v16_5 = "app_id = ? and metadata_fingerprint = ?";
                                    v17_2 = v6_84;
                                } else {
                                    long v14_7 = new String[3];
                                    v14_7[0] = v11_0;
                                    v14_7[1] = v7_24;
                                    v14_7[2] = String.valueOf(v5_87);
                                    v16_5 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v17_2 = v14_7;
                                }
                                Long v15_7 = new String[4];
                                v15_7[0] = "rowid";
                                v15_7[1] = "name";
                                v15_7[2] = "timestamp";
                                v15_7[3] = "data";
                                String v5_11 = v23.query("raw_events", v15_7, v16_5, v17_2, 0, 0, "rowid", 0);
                                try {
                                    if (!v5_11.moveToFirst()) {
                                        v4_20.q().h().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_12) {
                                    com.google.android.gms.measurement.a.s v2_0 = v0_12;
                                    v8_2 = v5_11;
                                    if (v8_2 != 0) {
                                        v8_2.close();
                                    }
                                    throw v2_0;
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v8_2 = v5_11;
                                }
                                do {
                                    long v6_87 = v5_11.getLong(0);
                                    int v9_56 = v5_11.getBlob(3);
                                    int v8_19 = com.google.android.gms.c.j.iv.a(v9_56, v9_56.length);
                                    int v9_58 = new com.google.android.gms.c.j.ct();
                                    v9_58.a(v8_19);
                                    v9_58.b = v5_11.getString(1);
                                    v9_58.c = Long.valueOf(v5_11.getLong(2));
                                    if (v2_25.a(v6_87, v9_58)) {
                                    } else {
                                        if (v5_11 == null) {
                                        } else {
                                            v5_11.close();
                                        }
                                    }
                                } while(v5_11.moveToNext());
                                if (v5_11 == null) {
                                } else {
                                    v5_11.close();
                                }
                            } else {
                                v4_20.q().k_().a("Raw event metadata record is missing. appId", com.google.android.gms.measurement.a.q.a(v11_0));
                                if (v8_2 == 0) {
                                } else {
                                    v8_2.close();
                                }
                            }
                        } catch (android.database.sqlite.SQLiteException v0_9) {
                        }
                        v5_0 = v0_9;
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v2_0 = v0_6;
                        v8_2 = v22;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                        v5_0 = v0_5;
                        v8_2 = v22;
                    }
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v2_0 = v0_4;
                    v8_2 = v11_0;
                } catch (android.database.sqlite.SQLiteException v0_2) {
                    v5_0 = v0_2;
                    v8_2 = v11_0;
                    v11_0 = 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v2_0 = v0_1;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_0 = v0_0;
                v8_2 = 0;
            } catch (android.database.sqlite.SQLiteException v0_11) {
                v2_0 = v0_11;
            }
        } catch (android.database.sqlite.SQLiteException v0_7) {
            com.google.android.gms.measurement.a.s v2_1 = v0_7;
            this.d().v();
            throw v2_1;
        }
    }

Method com.freshchat.consumer.sdk.c.k.bV() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean bV()
    {
        int v9 = 0;
        android.database.Cursor v10 = 0;
        try {
            android.database.Cursor v0_0 = this.cs().query("user_meta", com.freshchat.consumer.sdk.c.k.cR, "is_uploaded = 0", 0, 0, 0, 0, 0);
            try {
                if (v0_0.getCount() == 0) {
                    v9 = 1;
                }
            } catch (int v1_2) {
                v10 = v0_0;
                com.freshchat.consumer.sdk.c.k.c(v10);
                throw v1_2;
            } catch (int v1_0) {
                v10 = v0_0;
                com.freshchat.consumer.sdk.j.q.a(v1_0);
                com.freshchat.consumer.sdk.c.k.c(v10);
                return 0;
            }
            com.freshchat.consumer.sdk.c.k.c(v0_0);
            return v9;
        } catch (int v1_2) {
        } catch (int v1_0) {
            com.freshchat.consumer.sdk.j.q.a(v1_0);
            com.freshchat.consumer.sdk.c.k.c(v10);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.k.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public void a(String p17, String p18, boolean p19)
    {
        if (com.freshchat.consumer.sdk.j.as.aI(p18)) {
            android.content.ContentValues v1_1 = this.b(p17, p18, p19);
            String v3_1 = this.cs();
            String[] v5_0 = new String[2];
            v5_0[0] = p17;
            v5_0[1] = p18;
            if (v3_1.update("user_meta", v1_1, "meta_key= ? AND meta_value!= ?", v5_0) == 0) {
                android.database.sqlite.SQLiteDatabase v8 = this.cs();
                String[] v12 = new String[1];
                v12[0] = p17;
                android.database.Cursor v0 = v8.query("user_meta", 0, "meta_key = ?", v12, 0, 0, 0);
                if ((v0 != null) && (v0.getCount() == 0)) {
                    this.cs().insert("user_meta", 0, v1_1);
                }
                ark>com.freshchat.consumer.sdk.c.kark>.c(v0);
            }
        }
        return;
    }

Method com.freshchat.consumer.sdk.c.k.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.User a(boolean p12, boolean p13)
    {
        int v5_0;
        com.freshchat.consumer.sdk.beans.User v0_1 = new com.freshchat.consumer.sdk.beans.User();
        java.util.HashMap v1_0 = 0;
        try {
            if ((p12 != null) && (p13 != null)) {
                v5_0 = 0;
                String v12_2 = this.cs().query("user_meta", ark>com.freshchat.consumer.sdk.c.kark>.cR, v5_0, 0, 0, 0, 0, 0);
                try {
                    if (ark>com.freshchat.consumer.sdk.c.kark>.b(v12_2)) {
                        java.util.Map v13_4 = this.a(v12_2);
                        java.util.HashMap v1_2 = new java.util.HashMap();
                        do {
                            String v2_7 = v12_2.getString(((Integer) v13_4.get("meta_key")).intValue());
                            String v3_6 = v12_2.getString(((Integer) v13_4.get("meta_value")).intValue());
                            int v5_1 = 2;
                            if (v12_2.getInt(((Integer) v13_4.get("meta_type")).intValue()) != 2) {
                                switch (v2_7.hashCode()) {
                                    case -1930861854:
                                        if (!v2_7.equals("fc_user_last_name")) {
                                            v5_1 = -1;
                                        } else {
                                            v5_1 = 1;
                                        }
                                        break;
                                    case -1625524743:
                                        if (!v2_7.equals("fc_user_ext_identifier")) {
                                        } else {
                                            v5_1 = 5;
                                        }
                                        break;
                                    case -1253034262:
                                        if (!v2_7.equals("fc_user_email")) {
                                        } else {
                                        }
                                        break;
                                    case -1243010884:
                                        if (!v2_7.equals("fc_user_phone")) {
                                        } else {
                                            v5_1 = 3;
                                        }
                                        break;
                                    case 12946636:
                                        if (!v2_7.equals("fc_user_locale")) {
                                        } else {
                                            v5_1 = 7;
                                        }
                                        break;
                                    case 371829523:
                                        if (!v2_7.equals("fc_user_phone_country")) {
                                        } else {
                                            v5_1 = 4;
                                        }
                                        break;
                                    case 915726814:
                                        if (!v2_7.equals("fc_user_restore_id")) {
                                        } else {
                                            v5_1 = 6;
                                        }
                                        break;
                                    case 2129560620:
                                        if (!v2_7.equals("fc_user_first_name")) {
                                        } else {
                                            v5_1 = 0;
                                        }
                                        break;
                                    default:
                                }
                                switch (v5_1) {
                                    case 0:
                                        v0_1.setFirstName(v3_6);
                                        break;
                                    case 1:
                                        v0_1.setLastName(v3_6);
                                        break;
                                    case 2:
                                        v0_1.setEmail(v3_6);
                                        break;
                                    case 3:
                                        v0_1.setPhone(v3_6);
                                        break;
                                    case 4:
                                        v0_1.setPhoneCountry(v3_6);
                                        break;
                                    case 5:
                                        v0_1.setIdentifier(v3_6);
                                        break;
                                    case 6:
                                        v0_1.setRestoreId(v3_6);
                                        break;
                                    case 7:
                                        v0_1.setLocale(v3_6);
                                        break;
                                    default:
                                        com.freshchat.consumer.sdk.j.ai.j("FRESHCHAT", "Unknown key from the user meta table");
                                }
                            } else {
                                v1_2.put(v2_7, v3_6);
                            }
                        } while(v12_2.moveToNext());
                        v0_1.setMeta(v1_2);
                    }
                } catch (java.util.Map v13_2) {
                } catch (java.util.Map v13_1) {
                    v1_0 = v12_2;
                    com.freshchat.consumer.sdk.j.q.a(v13_1);
                    ark>com.freshchat.consumer.sdk.c.kark>.c(v1_0);
                    return v0_1;
                }
                ark>com.freshchat.consumer.sdk.c.kark>.c(v12_2);
                return v0_1;
            } else {
                String v12_4;
                if (p12 == null) {
                    if (p13 == null) {
                    } else {
                        v12_4 = "is_uploaded = 0";
                    }
                } else {
                    v12_4 = "is_uploaded = 1";
                }
                v5_0 = v12_4;
            }
        } catch (String v12_1) {
            v13_2 = v12_1;
            v12_2 = v1_0;
        } catch (String v12_3) {
            v13_1 = v12_3;
            com.freshchat.consumer.sdk.j.q.a(v13_1);
            ark>com.freshchat.consumer.sdk.c.kark>.c(v1_0);
            return v0_1;
        }
        ark>com.freshchat.consumer.sdk.c.kark>.c(v12_2);
        throw v13_2;
    }

Method com.freshchat.consumer.sdk.c.i.Y() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Category Y(String p12)
    {
        android.database.Cursor v0_0 = 0;
        try {
            if (!com.freshchat.consumer.sdk.j.as.aH(p12)) {
                java.util.List v2_3 = this.cs();
                String[] v6 = new String[1];
                v6[0] = p12;
                Throwable v12_1 = v2_3.query("categories", com.freshchat.consumer.sdk.c.i.ep, "_id=?", v6, 0, 0, 0);
                try {
                    if (com.freshchat.consumer.sdk.c.i.b(v12_1)) {
                        java.util.List v2_2 = this.h(v12_1, this.h(v12_1));
                        if (com.freshchat.consumer.sdk.j.k.b(v2_2)) {
                            com.freshchat.consumer.sdk.beans.Category v1_4 = ((com.freshchat.consumer.sdk.beans.Category) v2_2.get(0));
                            com.freshchat.consumer.sdk.c.i.c(v12_1);
                            return v1_4;
                        }
                    }
                } catch (com.freshchat.consumer.sdk.beans.Category v1_1) {
                    com.freshchat.consumer.sdk.j.q.a(v1_1);
                }
            } else {
                com.freshchat.consumer.sdk.c.i.c(0);
                return 0;
            }
        } catch (Throwable v12_2) {
            com.freshchat.consumer.sdk.c.i.c(v0_0);
            throw v12_2;
        } catch (com.freshchat.consumer.sdk.beans.Category v1_1) {
            v12_1 = 0;
        } catch (android.database.Cursor v0_1) {
            v0_0 = v12_1;
            v12_2 = v0_1;
        }
        com.freshchat.consumer.sdk.c.i.c(v12_1);
        return 0;
    }

Method com.freshchat.consumer.sdk.c.i.cL() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor cL()
    {
        return this.cs().query("articles", com.freshchat.consumer.sdk.c.i.eo, 0, 0, 0, 0, "position");
    }

Method com.freshchat.consumer.sdk.c.i.ac() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor ac(String p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        String[] v4_1 = new String[1];
        v4_1[0] = p9;
        return v0.query("articles", com.freshchat.consumer.sdk.c.i.eo, "_id=?", v4_1, 0, 0, 0);
    }

Method com.freshchat.consumer.sdk.c.i.aa() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor aa(String p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.cs();
        String[] v4_1 = new String[1];
        v4_1[0] = p9;
        return v0.query("articles", com.freshchat.consumer.sdk.c.i.eo, "category_id=?", v4_1, 0, 0, "position");
    }

Method com.freshchat.consumer.sdk.c.h.cI() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor cI()
    {
        return this.cs().query("participants", com.freshchat.consumer.sdk.c.h.em, 0, 0, 0, 0, 0);
    }

Method com.freshchat.consumer.sdk.c.g.l() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Message l(long p12)
    {
        Exception v0_0 = 0;
        try {
            String v1_0 = this.cs();
            String[] v5_1 = new String[1];
            v5_1[0] = Long.toString(p12);
            Exception v12_2 = v1_0.query("message", com.freshchat.consumer.sdk.c.g.el, "channel_id=? AND display != -1", v5_1, 0, 0, "created_at DESC", "1");
            try {
                Exception v13_0;
                if (!com.freshchat.consumer.sdk.c.g.b(v12_2)) {
                    v13_0 = 0;
                } else {
                    v13_0 = this.f(v12_2, this.a(v12_2));
                    try {
                        v13_0.setMessageFragments(this.cy().W(v13_0.getAlias()));
                    } catch (Exception v0_3) {
                        v0_0 = v12_2;
                        Exception v12_3 = v0_3;
                        com.freshchat.consumer.sdk.j.q.a(v12_3);
                        com.freshchat.consumer.sdk.c.g.c(v0_0);
                        return v13_0;
                    }
                }
            } catch (Exception v13_4) {
                v0_0 = v12_2;
                com.freshchat.consumer.sdk.c.g.c(v0_0);
                throw v13_4;
            } catch (Exception v13_3) {
                v0_0 = v12_2;
                v12_3 = v13_3;
                v13_0 = 0;
                com.freshchat.consumer.sdk.j.q.a(v12_3);
                com.freshchat.consumer.sdk.c.g.c(v0_0);
                return v13_0;
            }
            com.freshchat.consumer.sdk.c.g.c(v12_2);
            return v13_0;
        } catch (Exception v13_4) {
        } catch (Exception v12_3) {
            v13_0 = 0;
            com.freshchat.consumer.sdk.j.q.a(v12_3);
            com.freshchat.consumer.sdk.c.g.c(v0_0);
            return v13_0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.k() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List k(long p12)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        boolean v1_0 = 0;
        try {
            java.util.Map v2_1 = this.cy().h(p12);
            java.util.List v3_3 = this.cs();
            String[] v7_1 = new String[1];
            v7_1[0] = Long.toString(p12);
            android.database.Cursor v12_2 = v3_3.query("message", k>com.freshchat.consumer.sdk.c.gk>.el, "display!=-1 AND channel_id=?", v7_1, 0, 0, "created_at");
            try {
                if (k>com.freshchat.consumer.sdk.c.gk>.b(v12_2)) {
                    do {
                        boolean v1_1 = this.f(v12_2, this.a(v12_2));
                        v1_1.setMessageFragments(((java.util.List) v2_1.get(v1_1.getAlias())));
                        v0_1.add(v1_1);
                    } while(v12_2.moveToNext());
                }
            } catch (java.util.Map v13_3) {
                v1_0 = v12_2;
                k>com.freshchat.consumer.sdk.c.gk>.c(v1_0);
                throw v13_3;
            } catch (java.util.Map v13_0) {
                v1_0 = v12_2;
                com.freshchat.consumer.sdk.j.q.a(v13_0);
                k>com.freshchat.consumer.sdk.c.gk>.c(v1_0);
                return v0_1;
            }
            k>com.freshchat.consumer.sdk.c.gk>.c(v12_2);
            return v0_1;
        } catch (java.util.Map v13_3) {
        } catch (java.util.Map v13_0) {
            com.freshchat.consumer.sdk.j.q.a(v13_0);
            k>com.freshchat.consumer.sdk.c.gk>.c(v1_0);
            return v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.g.j() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean j(long p12)
    {
        int v0 = 0;
        android.database.Cursor v1_0 = 0;
        try {
            android.database.Cursor v2_1 = this.cs();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            android.database.Cursor v2_0 = v2_1.query("message", com.freshchat.consumer.sdk.c.g.el, "marketing_id=?", v6, 0, 0, 0);
            try {
                android.database.Cursor v1_1 = v2_0.getCount();
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.g.TAG, "Message by marketing ID ".concat(String.valueOf(p12)));
            } catch (Exception v12_4) {
                v1_0 = v2_0;
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                throw v12_4;
            } catch (Exception v12_1) {
                v1_0 = v2_0;
                com.freshchat.consumer.sdk.j.q.a(v12_1);
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                return 0;
            }
            if (v1_1 > null) {
                v0 = 1;
            }
            com.freshchat.consumer.sdk.c.g.c(v2_0);
            return v0;
        } catch (Exception v12_4) {
        } catch (Exception v12_1) {
            com.freshchat.consumer.sdk.j.q.a(v12_1);
            com.freshchat.consumer.sdk.c.g.c(v1_0);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.i() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Set i(long p11)
    {
        java.util.HashSet v0_1 = new java.util.HashSet();
        if (p11 > 0) {
            boolean v1_1 = 0;
            try {
                android.database.sqlite.SQLiteDatabase v2 = this.cs();
                String v5_0 = new String[1];
                v5_0[0] = "marketing_id";
                int v8_0 = new String[1];
                v8_0[0] = Long.toString(p11);
                android.database.Cursor v11_3 = v2.query("message", v5_0, "marketing_id > 0 AND read=0 AND channel_id = ?", v8_0, 0, 0, 0);
                try {
                    if (com.freshchat.consumer.sdk.c.g.b(v11_3)) {
                        do {
                            v0_1.add(Long.valueOf(v11_3.getLong(v11_3.getColumnIndex("marketing_id"))));
                        } while(v11_3.moveToNext());
                    }
                } catch (int v12_4) {
                    v1_1 = v11_3;
                    com.freshchat.consumer.sdk.c.g.c(v1_1);
                    throw v12_4;
                } catch (int v12_0) {
                    v1_1 = v11_3;
                    com.freshchat.consumer.sdk.j.q.a(v12_0);
                    com.freshchat.consumer.sdk.c.g.c(v1_1);
                    return v0_1;
                }
                com.freshchat.consumer.sdk.c.g.c(v11_3);
                return v0_1;
            } catch (int v12_4) {
            } catch (int v12_0) {
                com.freshchat.consumer.sdk.j.q.a(v12_0);
                com.freshchat.consumer.sdk.c.g.c(v1_1);
                return v0_1;
            }
        } else {
            return v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.g.cF() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Map cF()
    {
        Throwable v0_1 = new java.util.HashMap();
        try {
            int v2_2 = this.cs();
            Integer v4_2 = new String[2];
            v4_2[0] = "channel_id";
            v4_2[1] = "COUNT(1)";
            int v2_0 = v2_2.query("message", v4_2, "display!=-1 AND read=0", 0, "channel_id", 0, 0);
            try {
                while (v2_0.moveToNext()) {
                    v0_1.put(Long.valueOf(v2_0.getLong(0)), Integer.valueOf(v2_0.getInt(1)));
                }
            } catch (java.util.Iterator v1_1) {
                com.freshchat.consumer.sdk.j.q.a(v1_1);
                com.freshchat.consumer.sdk.c.g.c(v2_0);
                return v0_1;
            }
            java.util.Iterator v1_4 = this.cG().iterator();
            while (v1_4.hasNext()) {
                Long v3_4;
                Integer v4_0;
                Long v3_3 = ((Long) v1_4.next()).longValue();
                if (!v0_1.containsKey(Long.valueOf(v3_3))) {
                    v3_4 = Long.valueOf(v3_3);
                    v4_0 = Integer.valueOf(1);
                } else {
                    int v5_8 = (((Integer) v0_1.get(Long.valueOf(v3_3))).intValue() + 1);
                    v3_4 = Long.valueOf(v3_3);
                    v4_0 = Integer.valueOf(v5_8);
                }
                v0_1.put(v3_4, v4_0);
            }
            com.freshchat.consumer.sdk.c.g.c(v2_0);
            return v0_1;
        } catch (Throwable v0_2) {
            v2_0 = 0;
            com.freshchat.consumer.sdk.c.g.c(v2_0);
            throw v0_2;
        } catch (int v2_1) {
            v2_0 = 0;
            v1_1 = v2_1;
        } catch (Throwable v0_2) {
        }
    }

Method com.freshchat.consumer.sdk.c.g.X() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Message X(String p10)
    {
        try {
            int v1_1 = this.cs();
            String v5_4 = new String[1];
            v5_4[0] = p10;
            int v1_0 = v1_1.query("message", com.freshchat.consumer.sdk.c.g.el, "_id=?", v5_4, 0, 0, 0);
            try {
                com.freshchat.consumer.sdk.beans.Message v2_0 = v1_0.getCount();
                StringBuilder v4_1 = new StringBuilder("Message by alias ");
                v4_1.append(p10);
                v4_1.append(" count ");
                v4_1.append(v2_0);
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.g.TAG, v4_1.toString());
            } catch (String v10_1) {
                com.freshchat.consumer.sdk.j.q.a(v10_1);
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                return 0;
            }
            if (!com.freshchat.consumer.sdk.c.g.b(v1_0)) {
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                return 0;
            } else {
                com.freshchat.consumer.sdk.beans.Message v2_5 = this.f(v1_0, this.a(v1_0));
                if (v2_5 != null) {
                    v2_5.setMessageFragments(this.cy().W(v2_5.getAlias()));
                }
                StringBuilder v4_5 = new StringBuilder("Message by alias ");
                v4_5.append(p10);
                v4_5.append(" message ");
                v4_5.append(v2_5);
                com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.g.TAG, v4_5.toString());
                com.freshchat.consumer.sdk.c.g.c(v1_0);
                return v2_5;
            }
        } catch (String v10_2) {
            v1_0 = 0;
            com.freshchat.consumer.sdk.c.g.c(v1_0);
            throw v10_2;
        } catch (String v10_1) {
            v1_0 = 0;
        } catch (String v10_2) {
        }
    }

Method com.freshchat.consumer.sdk.c.g.o() calling method android.database.sqlite.SQLiteDatabase.query()


    private long o(long p14)
    {
        long v0 = 0;
        if (p14 > 0) {
            long v2_1 = 0;
            try {
                android.database.sqlite.SQLiteDatabase v3 = this.cs();
                String v6_1 = new String[1];
                v6_1[0] = "created_at";
                int v8_0 = new String[1];
                v8_0[0] = Long.toString(p14);
                android.database.Cursor v14_3 = v3.query("message", v6_1, "marketing_id =0 AND channel_id = ?", v8_0, 0, 0, "created_at DESC ", "1");
                try {
                    if (com.freshchat.consumer.sdk.c.g.b(v14_3)) {
                        v0 = v14_3.getLong(0);
                    }
                } catch (Exception v15_2) {
                    v2_1 = v14_3;
                    com.freshchat.consumer.sdk.c.g.c(v2_1);
                    throw v15_2;
                } catch (Exception v15_0) {
                    v2_1 = v14_3;
                    com.freshchat.consumer.sdk.j.q.a(v15_0);
                    com.freshchat.consumer.sdk.c.g.c(v2_1);
                    return 0;
                }
                com.freshchat.consumer.sdk.c.g.c(v14_3);
                return v0;
            } catch (Exception v15_2) {
            } catch (Exception v15_0) {
                com.freshchat.consumer.sdk.j.q.a(v15_0);
                com.freshchat.consumer.sdk.c.g.c(v2_1);
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.n() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean n(long p12)
    {
        int v0_1 = 0;
        if (p12 > 0) {
            android.database.Cursor v1 = 0;
            try {
                android.database.sqlite.SQLiteDatabase v2_1 = this.cs();
                String[] v4 = new String[1];
                v4[0] = "created_at";
                String[] v6 = new String[1];
                v6[0] = Long.toString(p12);
                android.database.Cursor v12_2 = v2_1.query("message", v4, "marketing_id =0  AND uploaded=1 AND user_type=0 AND channel_id = ?", v6, 0, 0, 0);
                try {
                    if ((com.freshchat.consumer.sdk.c.g.b(v12_2)) && (v12_2.getCount() > 0)) {
                        v0_1 = 1;
                    }
                } catch (int v13_2) {
                    v1 = v12_2;
                    com.freshchat.consumer.sdk.c.g.c(v1);
                    throw v13_2;
                } catch (int v13_0) {
                    v1 = v12_2;
                    com.freshchat.consumer.sdk.j.q.a(v13_0);
                    com.freshchat.consumer.sdk.c.g.c(v1);
                    return 0;
                }
                com.freshchat.consumer.sdk.c.g.c(v12_2);
                return v0_1;
            } catch (int v13_2) {
            } catch (int v13_0) {
                com.freshchat.consumer.sdk.j.q.a(v13_0);
                com.freshchat.consumer.sdk.c.g.c(v1);
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.g.cC() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor cC()
    {
        android.database.Cursor v0_0 = this.cs();
        String[] v4_1 = new String[1];
        v4_1[0] = "-1";
        return v0_0.query("message", com.freshchat.consumer.sdk.c.g.el, "display!=?", v4_1, 0, 0, "created_at");
    }

Method com.freshchat.consumer.sdk.c.g.cB() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor cB()
    {
        return this.cs().query("message", com.freshchat.consumer.sdk.c.g.el, 0, 0, 0, 0, "created_at");
    }

Method com.freshchat.consumer.sdk.c.f.W() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List W(String p12)
    {
        Throwable v0_1 = new java.util.ArrayList();
        java.util.Map v1_1 = 0;
        try {
            boolean v2_3 = this.cs();
            String[] v6_1 = new String[1];
            v6_1[0] = p12;
            Exception v12_1 = v2_3.query("fragments", com.freshchat.consumer.sdk.c.f.eh, "_id = ?", v6_1, 0, 0, "position");
            try {
                if (com.freshchat.consumer.sdk.c.f.b(v12_1)) {
                    java.util.Map v1_2 = this.a(v12_1);
                    do {
                        boolean v2_0 = this.e(v12_1, v1_2);
                        if (v2_0) {
                            v0_1.add(com.freshchat.consumer.sdk.c.f$a.c(v2_0));
                        }
                    } while(v12_1.moveToNext());
                }
            } catch (Throwable v0_2) {
                v1_1 = v12_1;
                com.freshchat.consumer.sdk.c.f.c(v1_1);
                throw v0_2;
            } catch (java.util.Map v1_3) {
                v1_1 = v12_1;
                Exception v12_2 = v1_3;
                com.freshchat.consumer.sdk.j.q.a(v12_2);
                com.freshchat.consumer.sdk.c.f.c(v1_1);
                return v0_1;
            }
            com.freshchat.consumer.sdk.c.f.c(v12_1);
            return v0_1;
        } catch (Throwable v0_2) {
        } catch (Exception v12_2) {
            com.freshchat.consumer.sdk.j.q.a(v12_2);
            com.freshchat.consumer.sdk.c.f.c(v1_1);
            return v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.e.g() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Csat g(long p10)
    {
        com.freshchat.consumer.sdk.beans.Csat v0 = 0;
        try {
            int v10_2 = Long.toString(p10);
            android.database.sqlite.SQLiteDatabase v1 = this.cs();
            String[] v5 = new String[1];
            v5[0] = v10_2;
            int v10_1 = v1.query("custsat", com.freshchat.consumer.sdk.c.e.eg, "conv_id=?", v5, 0, 0, 0);
            try {
                if (!com.freshchat.consumer.sdk.c.e.b(v10_1)) {
                    com.freshchat.consumer.sdk.c.e.c(v10_1);
                    return v0;
                } else {
                    v0 = this.d(v10_1, this.f(v10_1));
                    com.freshchat.consumer.sdk.c.e.c(v10_1);
                    return v0;
                }
            } catch (com.freshchat.consumer.sdk.beans.Csat v11_1) {
                com.freshchat.consumer.sdk.j.q.a(v11_1);
                com.freshchat.consumer.sdk.c.e.c(v10_1);
                return v0;
            }
        } catch (com.freshchat.consumer.sdk.beans.Csat v11_2) {
            com.freshchat.consumer.sdk.c.e.c(v0);
            throw v11_2;
        } catch (com.freshchat.consumer.sdk.beans.Csat v11_1) {
            v10_1 = 0;
        } catch (com.freshchat.consumer.sdk.beans.Csat v11_2) {
            v0 = v10_1;
        }
    }

Method com.freshchat.consumer.sdk.c.e.f() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Conversation f(long p10)
    {
        com.freshchat.consumer.sdk.beans.Conversation v0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v1 = this.cs();
            String[] v5_1 = new String[1];
            v5_1[0] = Long.toString(p10);
            int v10_2 = v1.query("conversations", com.freshchat.consumer.sdk.c.e.ef, "channel_id=?", v5_1, 0, 0, 0);
            try {
                if (!com.freshchat.consumer.sdk.c.e.b(v10_2)) {
                    com.freshchat.consumer.sdk.c.e.c(v10_2);
                    return v0;
                } else {
                    v0 = this.c(v10_2, this.e(v10_2));
                    com.freshchat.consumer.sdk.c.e.c(v10_2);
                    return v0;
                }
            } catch (com.freshchat.consumer.sdk.beans.Conversation v11_0) {
                com.freshchat.consumer.sdk.j.q.a(v11_0);
                com.freshchat.consumer.sdk.c.e.c(v10_2);
                return v0;
            }
        } catch (com.freshchat.consumer.sdk.beans.Conversation v11_1) {
            com.freshchat.consumer.sdk.c.e.c(v0);
            throw v11_1;
        } catch (com.freshchat.consumer.sdk.beans.Conversation v11_0) {
            v10_2 = 0;
        } catch (com.freshchat.consumer.sdk.beans.Conversation v11_1) {
            v0 = v10_2;
        }
    }

Method com.freshchat.consumer.sdk.c.c.e() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.beans.Channel e(long p10)
    {
        com.freshchat.consumer.sdk.beans.Channel v0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v1 = this.cs();
            String[] v5_1 = new String[1];
            v5_1[0] = Long.toString(p10);
            int v10_2 = v1.query("channels", com.freshchat.consumer.sdk.c.c.ee, "_id=?", v5_1, 0, 0, 0);
            try {
                if (!com.freshchat.consumer.sdk.c.c.b(v10_2)) {
                    com.freshchat.consumer.sdk.c.c.c(v10_2);
                    return v0;
                } else {
                    v0 = this.b(v10_2, this.a(v10_2));
                    com.freshchat.consumer.sdk.c.c.c(v10_2);
                    return v0;
                }
            } catch (com.freshchat.consumer.sdk.beans.Channel v11_0) {
                com.freshchat.consumer.sdk.j.q.a(v11_0);
                com.freshchat.consumer.sdk.c.c.c(v10_2);
                return v0;
            }
        } catch (com.freshchat.consumer.sdk.beans.Channel v11_1) {
            com.freshchat.consumer.sdk.c.c.c(v0);
            throw v11_1;
        } catch (com.freshchat.consumer.sdk.beans.Channel v11_0) {
            v10_2 = 0;
        } catch (com.freshchat.consumer.sdk.beans.Channel v11_1) {
            v0 = v10_2;
        }
    }

Method com.freshchat.consumer.sdk.c.c.d() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List d(java.util.List p11)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.Cursor v1 = 0;
        try {
            java.util.Map v11_1;
            if (!com.freshchat.consumer.sdk.j.k.b(p11)) {
                v11_1 = this.cs().query("channels", com.freshchat.consumer.sdk.c.c.ee, "hidden = 0 AND restricted = 0", 0, 0, 0, "position");
                v1 = v11_1;
                if (com.freshchat.consumer.sdk.c.c.b(v1)) {
                    java.util.Map v11_5 = this.a(v1);
                    do {
                        boolean v2_4 = this.b(v1, v11_5);
                        if (v2_4) {
                            v0_1.add(v2_4);
                        }
                    } while(v1.moveToNext());
                }
            } else {
                boolean v2_1 = new StringBuilder(" SELECT DISTINCT channels.*  FROM channels, (SELECT *  FROM tags WHERE ");
                String v3_1 = com.freshchat.consumer.sdk.j.k.c(p11);
                String[] v4_2 = new com.freshchat.consumer.sdk.beans.Tag$TaggedType[1];
                v4_2[0] = com.freshchat.consumer.sdk.beans.Tag$TaggedType.CHANNEL;
                v2_1.append(com.freshchat.consumer.sdk.c.j.a(v3_1, v4_2));
                v2_1.append(")  AS matching_tags  WHERE ( matching_tags.tagged_id = _id) AND hidden= 0  ORDER BY position");
                String[] v4_3 = new String[0];
                v11_1 = this.cs().rawQuery(v2_1.toString(), ((String[]) p11.toArray(v4_3)));
            }
        } catch (java.util.Map v11_7) {
            com.freshchat.consumer.sdk.c.c.c(v1);
            throw v11_7;
        } catch (java.util.Map v11_6) {
            com.freshchat.consumer.sdk.j.q.a(v11_6);
        }
        com.freshchat.consumer.sdk.c.c.c(v1);
        return v0_1;
    }

Method com.freshchat.consumer.sdk.c.c.cw() calling method android.database.sqlite.SQLiteDatabase.query()


    private com.freshchat.consumer.sdk.beans.Channel cw()
    {
        com.freshchat.consumer.sdk.beans.Channel v0_0 = 0;
        try {
            Throwable v1_0 = this.cs().query("channels", com.freshchat.consumer.sdk.c.c.ee, "is_default = \'1\'", 0, 0, 0, "CAST(_id as int)");
            try {
                if (!com.freshchat.consumer.sdk.c.c.b(v1_0)) {
                    com.freshchat.consumer.sdk.c.c.c(v1_0);
                    return v0_0;
                } else {
                    v0_0 = this.b(v1_0, this.a(v1_0));
                    com.freshchat.consumer.sdk.c.c.c(v1_0);
                    return v0_0;
                }
            } catch (com.freshchat.consumer.sdk.beans.Channel v2_0) {
                com.freshchat.consumer.sdk.j.q.a(v2_0);
                com.freshchat.consumer.sdk.c.c.c(v1_0);
                return v0_0;
            }
        } catch (Throwable v1_1) {
            com.freshchat.consumer.sdk.c.c.c(v0_0);
            throw v1_1;
        } catch (com.freshchat.consumer.sdk.beans.Channel v2_0) {
            v1_0 = 0;
        } catch (com.freshchat.consumer.sdk.beans.Channel v0_1) {
            v1_1 = v0_1;
            v0_0 = v1_0;
        }
    }

Method com.freshchat.consumer.sdk.c.a.l() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean l(int p13)
    {
        com.freshchat.consumer.sdk.j.ai.i(com.freshchat.consumer.sdk.c.a.TAG, "Does backlog exists by type ".concat(String.valueOf(p13)));
        int v0_2 = 0;
        Exception v1_3 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v2_0 = this.cs();
            String[] v4 = new String[1];
            v4[0] = "_id";
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p13);
            Exception v13_2 = v2_0.query("bl", v4, "type = ?", v6, 0, 0, 0);
            try {
                if ((v13_2 != null) && (v13_2.getCount() > 0)) {
                    v0_2 = 1;
                }
            } catch (int v0_1) {
                v1_3 = v13_2;
                com.freshchat.consumer.sdk.c.a.c(v1_3);
                throw v0_1;
            } catch (Exception v1_2) {
                v1_3 = v13_2;
                Exception v13_3 = v1_2;
                com.freshchat.consumer.sdk.j.q.a(v13_3);
                com.freshchat.consumer.sdk.c.a.c(v1_3);
                return 0;
            }
            com.freshchat.consumer.sdk.c.a.c(v13_2);
            return v0_2;
        } catch (int v0_1) {
        } catch (Exception v13_3) {
            com.freshchat.consumer.sdk.j.q.a(v13_3);
            com.freshchat.consumer.sdk.c.a.c(v1_3);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.a.S() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean S(String p13)
    {
        int v0_0 = 0;
        Exception v1_0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v2 = this.cs();
            String[] v4 = new String[1];
            v4[0] = "_id";
            String[] v6 = new String[1];
            v6[0] = p13;
            Exception v13_1 = v2.query("bl", v4, "_id = ?", v6, 0, 0, 0);
            try {
                if ((v13_1 != null) && (v13_1.getCount() > 0)) {
                    v0_0 = 1;
                }
            } catch (int v0_1) {
                v1_0 = v13_1;
                com.freshchat.consumer.sdk.c.a.c(v1_0);
                throw v0_1;
            } catch (Exception v1_2) {
                v1_0 = v13_1;
                Exception v13_2 = v1_2;
                com.freshchat.consumer.sdk.j.q.a(v13_2);
                com.freshchat.consumer.sdk.c.a.c(v1_0);
                return 0;
            }
            com.freshchat.consumer.sdk.c.a.c(v13_1);
            return v0_0;
        } catch (int v0_1) {
        } catch (Exception v13_2) {
            com.freshchat.consumer.sdk.j.q.a(v13_2);
            com.freshchat.consumer.sdk.c.a.c(v1_0);
            return 0;
        }
    }

Method com.freshchat.consumer.sdk.c.a.C() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.freshchat.consumer.sdk.service.a.a C(int p11)
    {
        int v0_0 = 0;
        try {
            com.freshchat.consumer.sdk.service.a.a v1_0 = this.cs();
            String[] v3_2 = new com.freshchat.consumer.sdk.c.a.b().cR();
            String[] v5_0 = new String[1];
            v5_0[0] = String.valueOf(p11);
            Throwable v11_2 = v1_0.query("bl", v3_2, "type= ?", v5_0, 0, 0, "priority,created_m");
            try {
                if (!com.freshchat.consumer.sdk.c.a.b(v11_2)) {
                    com.freshchat.consumer.sdk.c.a.c(v11_2);
                    return 0;
                } else {
                    com.freshchat.consumer.sdk.service.a.a v1_4 = this.a(v11_2, this.a(v11_2));
                    com.freshchat.consumer.sdk.c.a.c(v11_2);
                    return v1_4;
                }
            } catch (com.freshchat.consumer.sdk.service.a.a v1_1) {
                com.freshchat.consumer.sdk.j.q.a(v1_1);
                com.freshchat.consumer.sdk.c.a.c(v11_2);
                return 0;
            }
        } catch (Throwable v11_3) {
            com.freshchat.consumer.sdk.c.a.c(v0_0);
            throw v11_3;
        } catch (com.freshchat.consumer.sdk.service.a.a v1_1) {
            v11_2 = 0;
        } catch (int v0_1) {
            v0_0 = v11_2;
            v11_3 = v0_1;
        }
    }

Method com.freshchat.consumer.sdk.c.a.cq() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor cq()
    {
        return this.cs().query("bl", new com.freshchat.consumer.sdk.c.a.b().cR(), 0, 0, 0, 0, "priority,created_m");
    }

Method com.freshchat.consumer.sdk.c.a.R() calling method android.database.sqlite.SQLiteDatabase.query()


    private com.freshchat.consumer.sdk.service.a.a R(String p11)
    {
        int v0_0 = 0;
        try {
            com.freshchat.consumer.sdk.service.a.a v1_1 = this.cs();
            String[] v3_2 = new com.freshchat.consumer.sdk.c.a.b().cR();
            String[] v5_0 = new String[1];
            v5_0[0] = p11;
            Throwable v11_1 = v1_1.query("bl", v3_2, "_id= ?", v5_0, 0, 0, "priority,created_m");
            try {
                if (!com.freshchat.consumer.sdk.c.a.b(v11_1)) {
                    com.freshchat.consumer.sdk.c.a.c(v11_1);
                    return 0;
                } else {
                    com.freshchat.consumer.sdk.service.a.a v1_4 = this.a(v11_1, this.a(v11_1));
                    com.freshchat.consumer.sdk.c.a.c(v11_1);
                    return v1_4;
                }
            } catch (com.freshchat.consumer.sdk.service.a.a v1_0) {
                com.freshchat.consumer.sdk.j.q.a(v1_0);
                com.freshchat.consumer.sdk.c.a.c(v11_1);
                return 0;
            }
        } catch (Throwable v11_2) {
            com.freshchat.consumer.sdk.c.a.c(v0_0);
            throw v11_2;
        } catch (com.freshchat.consumer.sdk.service.a.a v1_0) {
            v11_1 = 0;
        } catch (int v0_1) {
            v0_0 = v11_1;
            v11_2 = v0_1;
        }
    }

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


    private static boolean a(com.google.android.gms.measurement.a.q p11, android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        if (p11 != null) {
            android.database.sqlite.SQLiteException v0_0 = 0;
            try {
                String[] v4 = new String[1];
                v4[0] = "name";
                String[] v6 = new String[1];
                v6[0] = p13;
                android.database.sqlite.SQLiteException v12_1 = p12.query("SQLITE_MASTER", v4, "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.h().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.c.j.ae.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private final boolean a(android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        android.database.sqlite.SQLiteException v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p13;
            android.database.sqlite.SQLiteException v12_1 = p12.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                android.database.sqlite.SQLiteException v1_1 = v12_1.moveToFirst();
            } catch (Throwable v13_1) {
                v1_0 = v12_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v13_1;
            } catch (android.database.sqlite.SQLiteException v1_2) {
                v1_0 = v12_1;
                android.database.sqlite.SQLiteException v12_2 = v1_2;
                this.a.c("Error querying for table", p13, v12_2);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v12_1 != null) {
                v12_1.close();
            }
            return v1_1;
        } catch (Throwable v13_1) {
        } catch (android.database.sqlite.SQLiteException v12_2) {
        }
    }

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


    public final java.util.List a()
    {
        try {
            Throwable v1_1 = new java.util.LinkedList();
            String v2_2 = this.c();
        } catch (Throwable v1_3) {
            throw v1_3;
        }
        if (v2_2 != null) {
            String v11 = 0;
            try {
                String v2_0 = v2_2.query("conversiontracking", 0, 0, 0, 0, 0, "last_retry_time ASC", "100");
                try {
                    if (v2_0.moveToFirst()) {
                        do {
                            v1_1.add(ark>com.google.a.a.iark>.a(v2_0));
                        } while(v2_0.moveToNext());
                    }
                } catch (Throwable v1_2) {
                    v11 = v2_0;
                    if (v11 != null) {
                        v11.close();
                    }
                    throw v1_2;
                } catch (String v3_0) {
                    v11 = v2_0;
                    String v3_3 = String.valueOf(v3_0.getMessage());
                    if (v3_3.length() == 0) {
                        String v3_5 = new String("Error extracing ping Info: ");
                    } else {
                        v3_5 = "Error extracing ping Info: ".concat(v3_3);
                    }
                    android.util.Log.w("GoogleConversionReporter", v3_5);
                    if (v11 == null) {
                        return v1_1;
                    } else {
                        v11.close();
                        return v1_1;
                    }
                }
                if (v2_0 == null) {
                    return v1_1;
                } else {
                    v2_0.close();
                    return v1_1;
                }
            } catch (Throwable v1_2) {
            } catch (String v3_0) {
            }
        } else {
            return v1_1;
        }
    }

Method com.google.a.a.i.f() calling method android.database.sqlite.SQLiteDatabase.query()


    private void f()
    {
        try {
            String v1_1 = this.c();
        } catch (String v1_3) {
            throw v1_3;
        }
        if (v1_1 != null) {
            String v10 = 0;
            try {
                String v1_0 = v1_1.query("conversiontracking", 0, 0, 0, 0, 0, "record_time ASC", "1");
                try {
                    if ((v1_0 != null) && (v1_0.moveToFirst())) {
                        this.a(com.google.a.a.i.a(v1_0));
                    }
                } catch (String v2_6) {
                    v10 = v1_0;
                    if (v10 != null) {
                        v10.close();
                    }
                    throw v2_6;
                } catch (String v2_0) {
                    v10 = v1_0;
                    String v2_3 = String.valueOf(v2_0.getMessage());
                    if (v2_3.length() == 0) {
                        String v2_5 = new String("Error remove oldest record");
                    } else {
                        v2_5 = "Error remove oldest record".concat(v2_3);
                    }
                    android.util.Log.w("GoogleConversionReporter", v2_5);
                    if (v10 == null) {
                        return;
                    } else {
                        v10.close();
                        return;
                    }
                }
                if (v1_0 == null) {
                    return;
                } else {
                    v1_0.close();
                    return;
                }
            } catch (String v2_6) {
            } catch (String v2_0) {
            }
        } else {
            return;
        }
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.selectNotification() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor selectNotification(long p12, android.os.Bundle p14)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        String[] v4 = new String[15];
        v4[0] = "ngrpid";
        v4[1] = "msg_id";
        v4[2] = "matriid";
        v4[3] = "notifyids";
        v4[4] = "senderid";
        v4[5] = "message";
        v4[6] = "image";
        v4[7] = "readstatus";
        v4[8] = "msgtype";
        v4[9] = "MAX(dateadded) as dateadded";
        v4[10] = "primary_cta";
        v4[11] = "secondary_cta";
        v4[12] = "secondary_cnt";
        v4[13] = "primary_cnt";
        v4[14] = "sendername";
        if (p14 == null) {
            return this.sql_db.query("Bm_Notification", v4, 0, 0, "msg_id,senderid", 0, "dateadded desc");
        } else {
            if ((p14.getString("stlimit") == null) || (p14.getString("endlimit") == null)) {
                String[] v6_2 = new String[1];
                v6_2[0] = p14.getString("matriid");
                return this.sql_db.query("Bm_Notification", v4, "matriid =? AND dateadded >= ".concat(String.valueOf(p12)), v6_2, "msg_id,senderid", 0, "dateadded desc", 0);
            } else {
                String v0_29 = p14.getString("stlimit");
                String v3_1 = p14.getString("endlimit");
                String v5_1 = new StringBuilder();
                v5_1.append(v0_29);
                v5_1.append(",");
                v5_1.append(v3_1);
                String v10_0 = v5_1.toString();
                String[] v6_0 = new String[1];
                v6_0[0] = p14.getString("matriid");
                return this.sql_db.query("Bm_Notification", v4, "matriid =? AND dateadded >= ".concat(String.valueOf(p12)), v6_0, "msg_id,senderid", 0, "dateadded desc", v10_0);
            }
        }
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.retriveLastInsertedRowOnResume() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor retriveLastInsertedRowOnResume(String p10, String p11)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.SqlHelp.getWritableDatabase();
        String[] v3 = new String[6];
        v3[0] = "_id";
        v3[1] = "Userid";
        v3[2] = "Message";
        v3[3] = "Mssgtimestamp";
        v3[4] = "Mssgstatus";
        v3[5] = "Mssgfrom";
        String[] v5_1 = new String[2];
        v5_1[0] = p10;
        v5_1[1] = p11;
        return v1.query("Bm_ChatWindow", v3, "Userid= ? AND Mssgtimestamp>?", v5_1, 0, 0, 0);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.retriveLastInsertedRow() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor retriveLastInsertedRow(String p10, String p11)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.SqlHelp.getWritableDatabase();
        String[] v3 = new String[6];
        v3[0] = "_id";
        v3[1] = "Userid";
        v3[2] = "Message";
        v3[3] = "Mssgtimestamp";
        v3[4] = "Mssgstatus";
        v3[5] = "Mssgfrom";
        String[] v5_1 = new String[2];
        v5_1[0] = p10;
        v5_1[1] = p11;
        return v1.query("Bm_ChatWindow", v3, "Userid= ? AND Mssgtimestamp=?", v5_1, 0, 0, 0);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.retriveData_frm_pendingMessg() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor retriveData_frm_pendingMessg()
    {
        android.database.sqlite.SQLiteDatabase v1 = this.SqlHelp.getWritableDatabase();
        String[] v3 = new String[4];
        v3[0] = "_id";
        v3[1] = "Userid";
        v3[2] = "Message";
        v3[3] = "RandomTimePending";
        return v1.query("Bm_PendingSendMessg", v3, 0, 0, 0, 0, 0);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.retriveData() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor retriveData(String p10)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.SqlHelp.getWritableDatabase();
        String[] v3 = new String[6];
        v3[0] = "_id";
        v3[1] = "Userid";
        v3[2] = "Message";
        v3[3] = "Mssgtimestamp";
        v3[4] = "Mssgstatus";
        v3[5] = "Mssgfrom";
        String[] v5_4 = new String[1];
        v5_4[0] = p10;
        return v1.query("Bm_ChatWindow", v3, "Userid= ?", v5_4, 0, 0, 0);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.getUnreadGcmCnt() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor getUnreadGcmCnt()
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        String[] v6 = new String[3];
        v6[0] = "3";
        v6[1] = "0";
        v6[2] = com.bharatmatrimony.AppState.getInstance().getMemberMatriID();
        return this.sql_db.query("Bm_Notification", 0, "msgtype=? AND disp_status=? AND matriid=?", v6, 0, 0, 0, 0);
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.getLatestTime() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor getLatestTime()
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        String[] v4 = new String[1];
        v4[0] = "dateadded";
        String[] v6 = new String[1];
        v6[0] = "3";
        return this.sql_db.query("Bm_Notification", v4, "msgtype!=?", v6, 0, 0, "dateadded desc", "1");
    }

Method com.bharatmatrimony.socketchat.SocketChatDB.checkNotificationavail() calling method android.database.sqlite.SQLiteDatabase.query()


    public final android.database.Cursor checkNotificationavail(String p12)
    {
        if ((this.sql_db == null) || (!this.sql_db.isOpen())) {
            this.sql_db = this.mcontext.openOrCreateDatabase("BMchat_db", 0, 0);
        }
        String[] v6 = new String[3];
        v6[0] = "3";
        v6[1] = p12;
        v6[2] = com.bharatmatrimony.AppState.getInstance().getMemberMatriID();
        return this.sql_db.query("Bm_Notification", 0, "msgtype=? AND msg_id=? AND matriid=?", v6, 0, 0, 0, 0);
    }