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.newrelic.agent.android.instrumentation.SQLiteInstrumentation.updateWithOnConflict() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public static int updateWithOnConflict(android.database.sqlite.SQLiteDatabase p2, String p3, android.content.ContentValues p4, String p5, String[] p6, int p7)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#updateWithOnConflict", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        int v2_1 = p2.updateWithOnConflict(p3, p4, p5, p6, p7);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.update() calling method android.database.sqlite.SQLiteDatabase.update()


    public static int update(android.database.sqlite.SQLiteDatabase p2, String p3, android.content.ContentValues p4, String p5, String[] p6)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#update", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        int v2_1 = p2.update(p3, p4, p5, p6);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

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


    protected final boolean a(String p18, byte[] p19, String p20)
    {
        this.Q();
        this.c();
        com.google.android.gms.common.internal.zzbq.a(p18);
        com.google.android.gms.internal.zzcho v3_2 = this.a(p18, p19);
        if (v3_2 != null) {
            void v1_1 = this.a(p18, v3_2);
            v1_1.f.put(p18, v3_2);
            v1_1.h.put(p18, p20);
            v1_1.c.put(p18, ark>com.google.android.gms.internal.zzcigark>.a(v3_2));
            com.google.android.gms.internal.zzcho v5_3 = this.e();
            String v6_2 = v3_2.e;
            com.google.android.gms.common.internal.zzbq.a(v6_2);
            String v7_1 = v6_2.length;
            int v8_0 = 0;
            while (v8_0 < v7_1) {
                int v9_3 = v6_2[v8_0];
                int v10_2 = v9_3.c;
                String v11_2 = v10_2.length;
                int v12 = 0;
                while (v12 < v11_2) {
                    com.google.android.gms.internal.zzclt[] v13_0 = v10_2[v12];
                    int v14_1 = com.google.android.gms.measurement.AppMeasurement$Event.a(v13_0.b);
                    if (v14_1 != 0) {
                        v13_0.b = v14_1;
                    }
                    com.google.android.gms.internal.zzclt[] v13_1 = v13_0.c;
                    int v14_2 = v13_1.length;
                    int v15 = 0;
                    while (v15 < v14_2) {
                        int v4_0 = v13_1[v15];
                        String v16_0 = v7_1;
                        String v7_3 = com.google.android.gms.measurement.AppMeasurement$Param.a(v4_0.d);
                        if (v7_3 != null) {
                            v4_0.d = v7_3;
                        }
                        v15++;
                        v7_1 = v16_0;
                    }
                    v12++;
                }
                String v16_1 = v7_1;
                int v4_9 = v9_3.b;
                String v7_0 = v4_9.length;
                int v9_0 = 0;
                while (v9_0 < v7_0) {
                    int v10_0 = v4_9[v9_0];
                    String v11_1 = com.google.android.gms.measurement.AppMeasurement$UserProperty.a(v10_0.b);
                    if (v11_1 != null) {
                        v10_0.b = v11_1;
                    }
                    v9_0++;
                }
                v8_0++;
                v7_1 = v16_1;
            }
            v5_3.n().a(p18, v6_2);
            try {
                v3_2.e = 0;
                int v4_4 = new byte[v3_2.f()];
                v3_2.a(com.google.android.gms.internal.zzfjk.a(v4_4, 0, v4_4.length));
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.t().A().a("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.zzchm.a(p18), v0_0);
                v4_4 = p19;
            }
            com.google.android.gms.internal.zzcho v3_1 = this.n();
            com.google.android.gms.common.internal.zzbq.a(p18);
            v3_1.c();
            v3_1.Q();
            com.google.android.gms.internal.zzcho v5_8 = new android.content.ContentValues();
            v5_8.put("remote_config", v4_4);
            try {
                String v6_6 = v3_1.A();
                int v9_1 = new String[1];
                v9_1[0] = p18;
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v3_1.t().y().a("Error storing remote config. appId", com.google.android.gms.internal.zzchm.a(p18), v0_1);
                return 1;
            }
            if (((long) v6_6.update("apps", v5_8, "app_id = ?", v9_1)) != 0) {
                return 1;
            } else {
                v3_1.t().y().a("Failed to update remote config (got 0). appId", com.google.android.gms.internal.zzchm.a(p18));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


    protected final long h(String p19, String p20)
    {
        com.google.android.gms.common.internal.zzbq.a(p19);
        com.google.android.gms.common.internal.zzbq.a(p20);
        this.c();
        this.Q();
        android.database.sqlite.SQLiteDatabase v3 = this.A();
        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.t().y().a("Error inserting column. appId", com.google.android.gms.internal.zzchm.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.t().y().a("Failed to insert column (got -1). appId", com.google.android.gms.internal.zzchm.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.t().y().a("Failed to update column (got 0). appId", com.google.android.gms.internal.zzchm.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.internal.zzcgo.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public final void a(com.google.android.gms.internal.zzcgh p8)
    {
        com.google.android.gms.common.internal.zzbq.a(p8);
        this.c();
        this.Q();
        com.google.android.gms.internal.zzcho 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.e());
        v0_5.put("last_bundle_index", Long.valueOf(p8.o()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.g()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.h()));
        v0_5.put("app_version", p8.i());
        v0_5.put("app_store", p8.k());
        v0_5.put("gmp_version", Long.valueOf(p8.l()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.m()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.n()));
        v0_5.put("day", Long.valueOf(p8.s()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.t()));
        v0_5.put("daily_events_count", Long.valueOf(p8.u()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.v()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.p()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.q()));
        v0_5.put("app_version_int", Long.valueOf(p8.j()));
        v0_5.put("firebase_instance_id", p8.f());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.x()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.w()));
        v0_5.put("health_monitor_sample", p8.y());
        v0_5.put("android_id", Long.valueOf(p8.A()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.B()));
        try {
            String v1_8 = this.A();
            long v4_1 = new String[1];
            v4_1[0] = p8.b();
        } catch (com.google.android.gms.internal.zzcho v0_3) {
            this.t().y().a("Error storing app. appId", com.google.android.gms.internal.zzchm.a(p8.b()), v0_3);
            return;
        }
        if ((((long) v1_8.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_8.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.t().y().a("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.zzchm.a(p8.b()));
        }
        return;
    }

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


    public final com.google.android.gms.internal.zzcgp a(long p22, String p24, boolean p25, boolean p26, boolean p27, boolean p28, boolean p29)
    {
        com.google.android.gms.common.internal.zzbq.a(p24);
        this.c();
        this.Q();
        String v3_2 = new String[1];
        v3_2[0] = p24;
        com.google.android.gms.internal.zzcgp v5_1 = new com.google.android.gms.internal.zzcgp();
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.A();
            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.t().A().a("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzchm.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.t().y().a("Error updating daily counts. appId", com.google.android.gms.internal.zzchm.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.tagmanager.zzec.a() calling method android.database.sqlite.SQLiteDatabase.update()


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

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.replaceOrThrow() calling method android.database.sqlite.SQLiteDatabase.replaceOrThrow()


    public static long replaceOrThrow(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, android.content.ContentValues p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#replaceOrThrow", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        long v2_1 = p2.replaceOrThrow(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase.b() calling method android.database.sqlite.SQLiteDatabase.replaceOrThrow()


    protected void b(String p6, com.facebook.imagepipeline.request.ImageRequest$CacheChoice p7, com.facebook.cache.common.CacheKey p8, com.facebook.imagepipeline.image.EncodedImage p9)
    {
        try {
            android.database.sqlite.SQLiteDatabase v1_1 = this.c.a();
            try {
                v1_1.beginTransaction();
                Object[] v2_3 = new android.content.ContentValues();
                v2_3.put("media_id", p6);
                v2_3.put("width", Integer.valueOf(p9.g()));
                v2_3.put("height", Integer.valueOf(p9.h()));
                v2_3.put("cache_choice", p7.name());
                v2_3.put("cache_key", p8.a());
                v2_3.put("resource_id", com.facebook.cache.common.CacheKeyUtil.b(p8));
                v1_1.replaceOrThrow("media_variations_index", 0, v2_3);
                v1_1.setTransactionSuccessful();
            } catch (Throwable v6_1) {
                v1_1.endTransaction();
                throw v6_1;
            } catch (Exception v7_5) {
                Object[] v2_1 = new Object[1];
                v2_1[0] = p6;
                com.facebook.common.logging.FLog.b(com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase.a, v7_5, "Error writing for %s", v2_1);
            }
            v1_1.endTransaction();
            return;
        } catch (Throwable v6_2) {
            throw v6_2;
        }
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.replace() calling method android.database.sqlite.SQLiteDatabase.replace()


    public static long replace(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, android.content.ContentValues p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#replace", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        long v2_1 = p2.replace(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.rawQueryWithFactory() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public static android.database.Cursor rawQueryWithFactory(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3, String p4, String[] p5, String p6, android.os.CancellationSignal p7)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#rawQueryWithFactory", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.rawQueryWithFactory(p3, p4, p5, p6, p7);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.rawQueryWithFactory() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public static android.database.Cursor rawQueryWithFactory(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3, String p4, String[] p5, String p6)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#rawQueryWithFactory", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.rawQueryWithFactory(p3, p4, p5, p6);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.rawQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.database.Cursor rawQuery(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4, android.os.CancellationSignal p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#rawQuery", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.rawQuery(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.rawQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.database.Cursor rawQuery(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#rawQuery", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.rawQuery(p3, p4);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.j256.ormlite.android.compat.JellyBeanApiCompatibility.rawQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.database.Cursor rawQuery(android.database.sqlite.SQLiteDatabase p1, String p2, String[] p3, com.j256.ormlite.android.compat.ApiCompatibility$CancellationHook p4)
    {
        if (p4 != null) {
            return p1.rawQuery(p2, p3, com.j256.ormlite.android.compat.JellyBeanApiCompatibility$JellyBeanCancellationHook.access$000(((com.j256.ormlite.android.compat.JellyBeanApiCompatibility$JellyBeanCancellationHook) p4)));
        } else {
            return p1.rawQuery(p2, p3);
        }
    }

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


    private final boolean a(int p20, byte[] p21)
    {
        this.c();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_0 = new android.content.ContentValues();
            v2_0.put("type", Integer.valueOf(p20));
            v2_0.put("entry", p21);
            com.google.android.gms.internal.zzcho v4_5 = 5;
            int v5_1 = 0;
            int v6 = 5;
            while (v5_1 < v4_5) {
                Long v7_2 = 0;
                try {
                    int v9 = this.z();
                } catch (android.database.sqlite.SQLiteException v0_9) {
                    v2_0 = v0_9;
                    v9 = 0;
                    int v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_0;
                } catch (android.database.sqlite.SQLiteException v0_8) {
                    Long v3_0 = v0_8;
                    v9 = 0;
                    this.t().y().a("Error writing entry to local database", v3_0);
                    this.b = 1;
                    if (v7_2 != null) {
                        v7_2.close();
                    }
                    if (v9 == 0) {
                        v5_1++;
                        v3_6 = 0;
                        v4_5 = 5;
                    } else {
                        v9.close();
                    }
                } catch (android.database.sqlite.SQLiteException v0_7) {
                    Long v3_1 = v0_7;
                    v12_0 = 0;
                    try {
                        if (android.os.Build$VERSION.SDK_INT < 11) {
                            if (v7_2 != null) {
                                if (v7_2.inTransaction()) {
                                    v7_2.endTransaction();
                                }
                            }
                            this.t().y().a("Error writing entry to local database", v3_1);
                            this.b = 1;
                        } else {
                            if (!(v3_1 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                            } else {
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                            }
                        }
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7_2 == null) {
                        } else {
                            v7_2.close();
                        }
                        v3_0 = android.database.sqlite.SQLiteException v0_5;
                    } catch (android.database.sqlite.SQLiteException v0_4) {
                        v2_0 = v0_4;
                        v9 = v7_2;
                    }
                } catch (android.database.sqlite.SQLiteException v0_6) {
                    v2_0 = v0_6;
                    v12_0 = v7_2;
                }
                if (v9 != 0) {
                    try {
                        v9.beginTransaction();
                        long v10_0 = 0;
                        v12_0 = v9.rawQuery("select count(1) from messages", 0);
                    } catch (android.database.sqlite.SQLiteException v0_11) {
                        v2_0 = v0_11;
                        v12_0 = 0;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_10) {
                        v3_1 = v0_10;
                        v12_0 = 0;
                        v7_2 = v9;
                    }
                    if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                        v10_0 = v12_0.getLong(v3_6);
                    }
                    if (v10_0 >= 100000) {
                        this.t().y().a("Data loss, local db full");
                        long v13_2 = ((100000 - v10_0) + 1);
                        String[] v11 = new String[1];
                        v11[v3_6] = Long.toString(v13_2);
                        long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                        if (v10_3 != v13_2) {
                            this.t().y().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                        }
                    }
                    v9.insertOrThrow("messages", 0, v2_0);
                    v9.setTransactionSuccessful();
                    v9.endTransaction();
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return 1;
                } else {
                    try {
                        this.b = 1;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                        v3_1 = v0_3;
                        v12_0 = 0;
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return v3_6;
                }
            }
            this.t().A().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    public final String a(long p5)
    {
        this.c();
        this.Q();
        try {
            String v1_3 = this.A();
            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.t().E().a("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.t().y().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.internal.zzcgo.I() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long I()
    {
        int v2_0 = 0;
        try {
            android.database.sqlite.SQLiteException v3_2 = this.A().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.t().y().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.internal.zzcgo.B() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String B()
    {
        try {
            Throwable v0_1 = this.A().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.t().y().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.internal.zzcgo.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.internal.zzcho v5_3 = this.A().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.t().y().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.internal.zzcgo.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.internal.zzcgo.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

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


    private final long a(String p1, String[] p2, long p3)
    {
        String v4 = 0;
        try {
            String v2_2 = this.A().rawQuery(p1, p2);
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return 0;
                } else {
                    long v3_2 = v2_2.getLong(0);
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v3_2;
                }
            } catch (long v1_1) {
                v4 = v2_2;
                if (v4 != null) {
                    v4.close();
                }
                throw v1_1;
            } catch (long v3_3) {
                v4 = v2_2;
                this.d("Database error", p1, v3_3);
                throw v3_3;
            }
        } catch (long v1_1) {
        } catch (long v3_3) {
        }
    }

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


    private final long a(String p4, String[] p5)
    {
        try {
            int v5_1 = this.A().rawQuery(p4, 0);
            try {
                if (!v5_1.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v0_6 = v5_1.getLong(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v0_6;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                this.d("Database error", p4, v0_3);
                throw v0_3;
            }
        } catch (Throwable v4_1) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v4_1;
        } catch (int v5_2) {
            v0_3 = v5_2;
            v5_1 = 0;
        } catch (Throwable v4_1) {
        }
    }

Method com.j256.ormlite.android.compat.BasicApiCompatibility.rawQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.database.Cursor rawQuery(android.database.sqlite.SQLiteDatabase p1, String p2, String[] p3, com.j256.ormlite.android.compat.ApiCompatibility$CancellationHook p4)
    {
        return p1.rawQuery(p2, p3);
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.queryForOne() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Object queryForOne(String p3, Object[] p4, com.j256.ormlite.field.FieldType[] p5, com.j256.ormlite.stmt.GenericRowMapper p6, com.j256.ormlite.dao.ObjectCache p7)
    {
        try {
            int v4_1 = this.db.rawQuery(p3, this.toStrings(p4));
            try {
                android.database.SQLException v0_1 = new com.j256.ormlite.android.AndroidDatabaseResults(v4_1, p7, 1);
                try {
                    com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: queried for one result: {}", this, p3);
                } catch (Object v5_1) {
                    boolean v6_4 = new StringBuilder();
                    v6_4.append("queryForOne from database failed: ");
                    v6_4.append(p3);
                    throw com.j256.ormlite.misc.SqlExceptionUtil.create(v6_4.toString(), v5_1);
                }
                if (v0_1.first()) {
                    Object v5_2 = p6.mapRow(v0_1);
                    if (!v0_1.next()) {
                        com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                        this.closeQuietly(v4_1);
                        return v5_2;
                    } else {
                        com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                        this.closeQuietly(v4_1);
                        return com.j256.ormlite.android.AndroidDatabaseConnection.MORE_THAN_ONE;
                    }
                } else {
                    com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                    this.closeQuietly(v4_1);
                    return 0;
                }
            } catch (Throwable v3_1) {
                v0_1 = 0;
                com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                this.closeQuietly(v4_1);
                throw v3_1;
            } catch (boolean v6_1) {
                v0_1 = 0;
                v5_1 = v6_1;
            }
        } catch (Throwable v3_1) {
            v4_1 = 0;
            v0_1 = 0;
        } catch (int v4_3) {
            v0_1 = 0;
            v5_1 = v4_3;
            v4_1 = 0;
        } catch (Throwable v3_1) {
        }
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.queryForLong() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public long queryForLong(String p7, Object[] p8, com.j256.ormlite.field.FieldType[] p9)
    {
        try {
            int v8_1 = this.db.rawQuery(p7, this.toStrings(p8));
            try {
                android.database.SQLException v0_1 = new com.j256.ormlite.android.AndroidDatabaseResults(v8_1, 0, 0);
                try {
                    long v1_1;
                    if (!v0_1.first()) {
                        v1_1 = 0;
                    } else {
                        v1_1 = v0_1.getLong(0);
                    }
                } catch (com.j256.ormlite.logger.Logger v9_1) {
                    long v1_3 = new StringBuilder();
                    v1_3.append("queryForLong from database failed: ");
                    v1_3.append(p7);
                    throw com.j256.ormlite.misc.SqlExceptionUtil.create(v1_3.toString(), v9_1);
                }
                com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: query for long raw query returned {}: {}", this, Long.valueOf(v1_1), p7);
                this.closeQuietly(v8_1);
                com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                return v1_1;
            } catch (Throwable v7_1) {
                v0_1 = 0;
                this.closeQuietly(v8_1);
                com.j256.ormlite.misc.IOUtils.closeQuietly(v0_1);
                throw v7_1;
            } catch (android.database.SQLException v0_3) {
                v0_1 = 0;
                v9_1 = v0_3;
            }
        } catch (Throwable v7_1) {
            v8_1 = 0;
            v0_1 = 0;
        } catch (int v8_3) {
            v0_1 = 0;
            v9_1 = v8_3;
            v8_1 = 0;
        } catch (Throwable v7_1) {
        }
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.isTableExists() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isTableExists(String p6)
    {
        android.database.Cursor v0_0 = this.db;
        int v2 = 1;
        String v3_1 = new String[1];
        v3_1[0] = p6;
        android.database.Cursor v0_1 = v0_0.rawQuery("SELECT DISTINCT tbl_name FROM sqlite_master WHERE tbl_name = ?", v3_1);
        try {
            if (v0_1.getCount() <= 0) {
                v2 = 0;
            } else {
            }
        } catch (Throwable v6_1) {
            v0_1.close();
            throw v6_1;
        }
        com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: isTableExists \'{}\' returned {}", this, p6, Boolean.valueOf(v2));
        v0_1.close();
        return v2;
    }

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


    private final int c()
    {
        String v0_2 = this.a("Error opening database for getNumStoredHits.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdj.b("Error getting numStoredHits");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

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


    private final int d()
    {
        String v0_2 = this.c("Error opening database for getNumStoredEntries.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from datalayer", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdj.b("Error getting numStoredEntries");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

Method com.coupa.android.coupamobile.core.orm.DatabaseHelper.syncDefaultUser() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void syncDefaultUser(android.database.sqlite.SQLiteDatabase p5)
    {
        com.coupa.android.coupamobile.core.LoginInfo v0_0 = com.coupa.android.coupamobile.core.LoginInfo.getInstance();
        if (v0_0.getUserId() != 0) {
            int v1_5 = new StringBuilder();
            v1_5.append("SELECT firstname, lastname, email, isExpenseUser, isPurchasingUser FROM user WHERE serverId=");
            v1_5.append(v0_0.getUserId());
            android.database.Cursor v5_1 = p5.rawQuery(v1_5.toString(), 0);
            if (!v5_1.moveToFirst()) {
                com.coupa.android.coupamobile.core.LoginInfo.getInstance().reset();
            } else {
                int v3_5;
                int v1_2 = 0;
                v0_0.setFirstName(v5_1.getString(0));
                v0_0.setLastName(v5_1.getString(1));
                v0_0.setEmail(v5_1.getString(2));
                if (v5_1.getInt(3) != 1) {
                    v3_5 = 0;
                } else {
                    v3_5 = 1;
                }
                v0_0.setExpensingUser(v3_5);
                if (v5_1.getInt(4) == 1) {
                    v1_2 = 1;
                }
                v0_0.setPurchasingUser(v1_2);
                v0_0.saveToKeychain();
            }
            v5_1.close();
        } else {
            com.coupa.android.coupamobile.core.LoginInfo.getInstance().reset();
        }
        return;
    }

Method com.coupa.android.coupamobile.core.orm.DatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p4)
    {
        super.onOpen(p4);
        try {
            if (!p4.isReadOnly()) {
                String[] v2_0 = new String[0];
                p4.rawQuery("PRAGMA journal_mode=MEMORY", v2_0);
                String[] v2_1 = new String[0];
                p4.rawQuery("PRAGMA temp_store=MEMORY", v2_1);
                String[] v1_1 = new String[0];
                p4.rawQuery("PRAGMA synchronous=OFF", v1_1);
            }
        } catch (String v4_1) {
            android.util.Log.e("SQLite PRAGMA error", v4_1.getMessage());
        }
        return;
    }

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


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

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


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

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


    private final boolean a(String p47, long p48)
    {
        this.q().x();
        try {
            com.google.android.gms.internal.zzcgw v3_1 = 0;
            String v2_15 = new ark>com.google.android.gms.internal.zzcimark>$zza(this, 0);
            long v4_40 = this.q();
            int v5_37 = this.J;
            com.google.android.gms.common.internal.zzbq.a(v2_15);
            v4_40.c();
            v4_40.Q();
            com.google.android.gms.internal.zzcmc[] v10_25 = 0;
            try {
                String v21;
                int v22;
                long v15_7 = v4_40.A();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.internal.zzcgw v3_4;
                        if (v5_37 == -1) {
                            v3_4 = new String[1];
                            v3_4[0] = 0;
                        } else {
                            v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_37);
                        }
                        int v12_30;
                        if (v5_37 == -1) {
                            v12_30 = "";
                        } else {
                            v12_30 = " and rowid <= ?";
                        }
                        String v14_15 = new StringBuilder((String.valueOf(v12_30).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v12_30);
                        v14_15.append(" order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v14_15.toString(), v3_4);
                        if (v3_1.moveToFirst()) {
                            Long v13_23 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21 = v13_23;
                            v3_1 = 0;
                            try {
                                String v14_6 = new String[1];
                                v14_6[0] = "metadata";
                                int v12_11 = new String[2];
                                v12_11[0] = v3_1;
                                v12_11[1] = v21;
                                android.database.sqlite.SQLiteDatabase v24 = v15_7;
                                long v15_6 = v15_7.query("raw_events_metadata", v14_6, "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_6.moveToFirst()) {
                                        int v12_14 = v15_6.getBlob(0);
                                        int v12_15 = com.google.android.gms.internal.zzfjj.a(v12_14, 0, v12_14.length);
                                        Long v13_16 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_16.a(v12_15);
                                        } catch (java.io.IOException v0_5) {
                                            boolean v6_0 = v15_6;
                                            v4_40.t().y().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.a(v3_1), v0_5);
                                            if (!v6_0) {
                                                com.google.android.gms.internal.zzcgw v3_8;
                                                if (v2_15.c == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_15.c.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.q().y();
                                                    this.q().z();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.internal.zzcgw v3_9 = v2_15.a;
                                                    long v4_5 = new com.google.android.gms.internal.zzcmb[v2_15.c.size()];
                                                    v3_9.b = v4_5;
                                                    long v4_0 = 0;
                                                    int v5_0 = 0;
                                                    boolean v6_1 = 0;
                                                    while (v4_0 < v2_15.c.size()) {
                                                        if (!this.j().b(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                            com.google.android.gms.internal.zzcgw v7_65 = this.j().c(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b);
                                                            if (v7_65 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_25];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v13_60;
                                                                }
                                                                int v12_58 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a;
                                                                Long v13_62 = v12_58.length;
                                                                String v14_5 = 0;
                                                                long v15_3 = 0;
                                                                int v16_2 = 0;
                                                                while (v14_5 < v13_62) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_24 = v12_58[v14_5];
                                                                    if (!"_c".equals(v10_24.a)) {
                                                                        if ("_r".equals(v10_24.a)) {
                                                                            v10_24.c = Long.valueOf(1);
                                                                            v16_2 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_24.c = Long.valueOf(1);
                                                                        v15_3 = 1;
                                                                    }
                                                                    v14_5++;
                                                                    boolean v11 = 1;
                                                                }
                                                                if ((v15_3 == 0) && (v7_65 != null)) {
                                                                    this.f().E().a("Marking event as conversion", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_70 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_67 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_67.a = "_c";
                                                                    v9_67.c = Long.valueOf(1);
                                                                    v8_70[(v8_70.length - 1)] = v9_67;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_70;
                                                                }
                                                                if (v16_2 == 0) {
                                                                    this.f().E().a("Marking event as real-time", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_5 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_7 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_7.a = "_r";
                                                                    v9_7.c = Long.valueOf(1);
                                                                    v8_5[(v8_5.length - 1)] = v9_7;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_5;
                                                                }
                                                                if (this.q().a(this.L(), v2_15.a.o, 0, 0, 0, 0, 1).e <= ((long) this.c.a(v2_15.a.o))) {
                                                                    v5_0 = 1;
                                                                } else {
                                                                    Object v8_11 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v9_11 = 0;
                                                                    while (v9_11 < v8_11.a.length) {
                                                                        if (!"_r".equals(v8_11.a[v9_11].a)) {
                                                                            v9_11++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_18 = new com.google.android.gms.internal.zzcmc[(v8_11.a.length - 1)];
                                                                            if (v9_11 > null) {
                                                                                System.arraycopy(v8_11.a, 0, v10_18, 0, v9_11);
                                                                            }
                                                                            if (v9_11 < v10_18.length) {
                                                                                System.arraycopy(v8_11.a, (v9_11 + 1), v10_18, v9_11, (v10_18.length - v9_11));
                                                                            }
                                                                            v8_11.a = v10_18;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) && ((v7_65 != null) && (this.q().a(this.L(), v2_15.a.o, 0, 0, 1, 0, 0).c > ((long) this.c.b(v2_15.a.o, com.google.android.gms.internal.zzchc.p))))) {
                                                                    this.f().A().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                    com.google.android.gms.internal.zzcgw v7_7 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    Object v8_18 = v7_7.a;
                                                                    com.google.android.gms.internal.zzcmc[] v10_22 = 0;
                                                                    boolean v11_13 = 0;
                                                                    int v12_6 = 0;
                                                                    while (v10_22 < v8_18.length) {
                                                                        Long v13_5 = v8_18[v10_22];
                                                                        if (!"_c".equals(v13_5.a)) {
                                                                            if ("_err".equals(v13_5.a)) {
                                                                                v11_13 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_6 = v13_5;
                                                                        }
                                                                        v10_22++;
                                                                    }
                                                                    if ((!v11_13) || (v12_6 == 0)) {
                                                                        if (v12_6 == 0) {
                                                                            this.f().y().a("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                        } else {
                                                                            v12_6.a = "_err";
                                                                            v12_6.c = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Object v8_20 = v7_7.a;
                                                                        com.google.android.gms.internal.zzcmc[] v10_23 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_23[0] = v12_6;
                                                                        v7_7.a = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.a(v8_20, v10_23));
                                                                    }
                                                                }
                                                            } else {
                                                                this.o();
                                                                if (com.google.android.gms.internal.zzclq.n(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                                }
                                                            }
                                                            Object v8_23 = (v6_1 + 1);
                                                            v3_9.b[v6_1] = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                            v6_1 = v8_23;
                                                        } else {
                                                            com.google.android.gms.internal.zzcgw v7_20;
                                                            this.f().A().a("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o), this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                            if (this.o().l(v2_15.a.o)) {
                                                                v7_20 = 1;
                                                            } else {
                                                                if (!this.o().m(v2_15.a.o)) {
                                                                    v7_20 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_20 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b))) {
                                                                this.o().a(v2_15.a.o, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_25 = 0;
                                                    }
                                                    if (v6_1 < v2_15.c.size()) {
                                                        v3_9.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.b, v6_1));
                                                    }
                                                    int v42_0;
                                                    String v2_6;
                                                    int v12_31;
                                                    long v43_0;
                                                    v3_9.A = this.a(v2_15.a.o, v2_15.a.c, v3_9.b);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.b.b()).booleanValue()) || (!"1".equals(this.c.q().a(v2_15.a.o, "measurement.event_sampling_enabled")))) {
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                    } else {
                                                        long v4_23 = new java.util.HashMap();
                                                        boolean v6_25 = new com.google.android.gms.internal.zzcmb[v3_9.b.length];
                                                        com.google.android.gms.internal.zzcgw v7_38 = this.o().z();
                                                        Object v8_42 = v3_9.b;
                                                        com.google.android.gms.internal.zzcgw v9_43 = v8_42.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_26 = 0;
                                                        boolean v11_18 = 0;
                                                        while (v10_26 < v9_43) {
                                                            int v26;
                                                            android.database.sqlite.SQLiteDatabase v44;
                                                            com.google.android.gms.internal.zzcmc[] v25;
                                                            Object v8_49;
                                                            int v42_1;
                                                            Object v8_54;
                                                            long v41;
                                                            long v43_1;
                                                            int v12_35 = v8_42[v10_26];
                                                            if (!v12_35.b.equals("_ep")) {
                                                                Object v8_47;
                                                                v25 = v8_42;
                                                                v26 = v9_43;
                                                                if (ark>com.google.android.gms.internal.zzcimark>.a(v12_35, "_dbg", Long.valueOf(1))) {
                                                                    v8_47 = 1;
                                                                } else {
                                                                    v8_47 = this.j().d(v2_15.a.o, v12_35.b);
                                                                }
                                                                if (v8_47 > null) {
                                                                    com.google.android.gms.internal.zzcgw v9_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_35.b));
                                                                    if (v9_51 == null) {
                                                                        v9_51 = this.q().a(v2_15.a.o, v12_35.b);
                                                                        if (v9_51 == null) {
                                                                            this.f().A().a("Event being bundled has no eventAggregate. appId, eventName", v2_15.a.o, v12_35.b);
                                                                            v9_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v9_51(v2_15.a.o, v12_35.b, 1, 1, v12_35.c.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_21;
                                                                    this.o();
                                                                    Long v13_35 = ((Long) com.google.android.gms.internal.zzclq.a(v12_35, "_eid"));
                                                                    if (v13_35 == null) {
                                                                        v14_21 = 0;
                                                                    } else {
                                                                        v14_21 = 1;
                                                                    }
                                                                    String v14_22 = Boolean.valueOf(v14_21);
                                                                    if (v8_47 != 1) {
                                                                        if (v7_38.nextInt(v8_47) != 0) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            Object v45 = v4_23;
                                                                            if (Math.abs((v12_35.c.longValue() - v9_51.f)) < 86400000) {
                                                                                v8_49 = v45;
                                                                                if (!v14_22.booleanValue()) {
                                                                                } else {
                                                                                    v8_49.put(v12_35.b, v9_51.a(v13_35, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.o();
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                                this.o();
                                                                                com.google.android.gms.internal.zzcgw v7_53 = ((long) v8_47);
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_53));
                                                                                String v2_24 = (v11_18 + 1);
                                                                                v6_25[v11_18] = v12_35;
                                                                                if (v14_22.booleanValue()) {
                                                                                    v9_51 = v9_51.a(0, Long.valueOf(v7_53), Boolean.valueOf(1));
                                                                                }
                                                                                v8_49 = v45;
                                                                                v8_49.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                                v11_18 = v2_24;
                                                                            }
                                                                        } else {
                                                                            this.o();
                                                                            v41 = v7_38;
                                                                            com.google.android.gms.internal.zzcgw v7_59 = ((long) v8_47);
                                                                            v42_1 = v5_0;
                                                                            v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_59));
                                                                            int v5_36 = (v11_18 + 1);
                                                                            v6_25[v11_18] = v12_35;
                                                                            if (v14_22.booleanValue()) {
                                                                                v9_51 = v9_51.a(0, Long.valueOf(v7_59), 0);
                                                                            }
                                                                            v4_23.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v8_49 = v4_23;
                                                                            v11_18 = v5_36;
                                                                        }
                                                                    } else {
                                                                        v8_54 = (v11_18 + 1);
                                                                        v6_25[v11_18] = v12_35;
                                                                        if ((!v14_22.booleanValue()) || ((v9_51.g == null) && ((v9_51.h == null) && (v9_51.i == null)))) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            v11_18 = v8_54;
                                                                            v8_49 = v4_23;
                                                                        } else {
                                                                            v4_23.put(v12_35.b, v9_51.a(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.f().A().a("Sample rate must be positive. event, rate", v12_35.b, Integer.valueOf(v8_47));
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            } else {
                                                                this.o();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.a(v12_35, "_en"));
                                                                String v14_25 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_25 == null) {
                                                                    v14_25 = this.q().a(v2_15.a.o, v13_46);
                                                                    v4_23.put(v13_46, v14_25);
                                                                }
                                                                if (v14_25.g != null) {
                                                                    v25 = v8_42;
                                                                    v26 = v9_43;
                                                                    v43_1 = v2_15;
                                                                    v44 = v3_9;
                                                                    v8_49 = v4_23;
                                                                    v42_1 = v5_0;
                                                                    v41 = v7_38;
                                                                } else {
                                                                    if (v14_25.h.longValue() <= 1) {
                                                                        v25 = v8_42;
                                                                    } else {
                                                                        this.o();
                                                                        v25 = v8_42;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", v14_25.h);
                                                                    }
                                                                    if ((v14_25.i == null) || (!v14_25.i.booleanValue())) {
                                                                        v26 = v9_43;
                                                                    } else {
                                                                        this.o();
                                                                        v26 = v9_43;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            }
                                                            v10_26++;
                                                            v4_23 = v8_49;
                                                            v8_42 = v25;
                                                            v9_43 = v26;
                                                            v7_38 = v41;
                                                            v5_0 = v42_1;
                                                            v2_15 = v43_1;
                                                            v3_9 = v44;
                                                        }
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        Object v8_43 = v4_23;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                        if (v11_18 < v2_6.b.length) {
                                                            v2_6.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v6_25, v11_18));
                                                        }
                                                        com.google.android.gms.internal.zzcgw v3_15 = v8_43.entrySet().iterator();
                                                        while (v3_15.hasNext()) {
                                                            this.q().a(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v3_15.next()).getValue()));
                                                        }
                                                    }
                                                    v2_6.e = Long.valueOf(nan);
                                                    v2_6.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcgw v3_20 = 0;
                                                    while (v3_20 < v2_6.b.length) {
                                                        long v4_31 = v2_6.b[v3_20];
                                                        if (v4_31.c.longValue() < v2_6.e.longValue()) {
                                                            v2_6.e = v4_31.c;
                                                        }
                                                        if (v4_31.c.longValue() > v2_6.f.longValue()) {
                                                            v2_6.f = v4_31.c;
                                                        }
                                                        v3_20++;
                                                    }
                                                    com.google.android.gms.internal.zzcgw v3_21 = v43_0;
                                                    long v4_28 = v3_21.a.o;
                                                    int v5_10 = this.q().b(v4_28);
                                                    if (v5_10 != 0) {
                                                        if (v2_6.b.length > 0) {
                                                            com.google.android.gms.internal.zzcmc[] v10_28;
                                                            boolean v6_28 = v5_10.h();
                                                            if (v6_28 == 0) {
                                                                v10_28 = v12_31;
                                                            } else {
                                                                v10_28 = Long.valueOf(v6_28);
                                                            }
                                                            v2_6.h = v10_28;
                                                            com.google.android.gms.internal.zzcmc[] v10_29 = v5_10.g();
                                                            if (v10_29 == 0) {
                                                                v10_29 = v6_28;
                                                            }
                                                            if (v10_29 != 0) {
                                                                v12_31 = Long.valueOf(v10_29);
                                                            }
                                                            v2_6.g = v12_31;
                                                            v5_10.r();
                                                            v2_6.w = Integer.valueOf(((int) v5_10.o()));
                                                            v5_10.a(v2_6.e.longValue());
                                                            v5_10.b(v2_6.f.longValue());
                                                            v2_6.x = v5_10.z();
                                                            this.q().a(v5_10);
                                                        }
                                                    } else {
                                                        this.f().y().a("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                    }
                                                    if (v2_6.b.length > 0) {
                                                        int v5_17;
                                                        int v5_16 = this.j().a(v3_21.a.o);
                                                        if (v5_16 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_21.a.y)) {
                                                                this.f().A().a("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                            } else {
                                                                v5_17 = Long.valueOf(-1);
                                                                v2_6.E = v5_17;
                                                            }
                                                        } else {
                                                            if (v5_16.a != null) {
                                                                v5_17 = v5_16.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.q().a(v2_6, v42_0);
                                                    }
                                                    this.q().a(v3_21.b);
                                                    String v2_9 = this.q();
                                                    com.google.android.gms.internal.zzcgw v3_23 = v2_9.A();
                                                    try {
                                                        boolean v6_46 = new String[2];
                                                        v6_46[0] = v4_28;
                                                        v6_46[1] = v4_28;
                                                        v3_23.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_46);
                                                    } catch (java.io.IOException v0_10) {
                                                        v2_9.t().y().a("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.a(v4_28), v0_10);
                                                    }
                                                    this.q().y();
                                                    this.q().z();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_1) {
                                        }
                                        if (v15_6.moveToNext()) {
                                            v4_40.t().A().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        }
                                        int v16_6;
                                        int v5_3;
                                        v15_6.close();
                                        v2_15.a(v13_16);
                                        if (v5_37 == -1) {
                                            v5_3 = "app_id = ? and metadata_fingerprint = ?";
                                            com.google.android.gms.internal.zzcgw v9_35 = new String[2];
                                            v9_35[0] = v3_1;
                                            v9_35[1] = v21;
                                            v16_6 = v9_35;
                                        } else {
                                            int v12_19 = new String[3];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21;
                                            v12_19[2] = String.valueOf(v5_37);
                                            v5_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v12_19;
                                        }
                                        boolean v6_5 = new String[4];
                                        v6_5[0] = "rowid";
                                        v6_5[1] = "name";
                                        v6_5[2] = "timestamp";
                                        v6_5[3] = "data";
                                        v6_0 = v15_6;
                                        int v5_5 = v24.query("raw_events", v6_5, v5_3, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_5.moveToFirst()) {
                                                do {
                                                    int v12_23 = v5_5.getLong(0);
                                                    boolean v6_7 = v5_5.getBlob(3);
                                                    boolean v6_8 = com.google.android.gms.internal.zzfjj.a(v6_7, 0, v6_7.length);
                                                    String v14_13 = new com.google.android.gms.internal.zzcmb();
                                                    v14_13.a(v6_8);
                                                    v14_13.b = v5_5.getString(1);
                                                    v14_13.c = Long.valueOf(v5_5.getLong(2));
                                                    if (v2_15.a(v12_23, v14_13)) {
                                                    } else {
                                                        if (v5_5 == 0) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_5.moveToNext());
                                                if (v5_5 == 0) {
                                                }
                                            } else {
                                                v4_40.t().A().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                                if (v5_5 == 0) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            String v2_0 = v0_8;
                                            v6_0 = v5_5;
                                            if (v6_0) {
                                                v6_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_1) {
                                            int v12_0 = v3_1;
                                            v6_0 = v5_5;
                                            com.google.android.gms.internal.zzcgw v3_0 = v0_1;
                                            v4_40.t().y().a("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.a(v12_0), v3_0);
                                            if (!v6_0) {
                                            }
                                        }
                                        v5_5.close();
                                    } else {
                                        v4_40.t().y().a("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        if (v15_6 == 0) {
                                        } else {
                                            v15_6.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v6_0 = v15_6;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_1) {
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_1) {
                                    v12_0 = v3_1;
                                    v6_0 = v15_6;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_1) {
                                v12_0 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_37;
                            if (v5_37 == -1) {
                                v12_37 = new String[1];
                                v12_37[0] = String.valueOf(p48);
                            } else {
                                v12_37 = new String[2];
                                v12_37[0] = String.valueOf(v5_37);
                                v12_37[1] = String.valueOf(p48);
                            }
                        } catch (java.io.IOException v0_1) {
                            v6_0 = 0;
                            v12_0 = 0;
                        }
                        Long v13_42;
                        if (v5_37 == -1) {
                            v13_42 = "";
                        } else {
                            v13_42 = "rowid <= ? and ";
                        }
                        com.google.android.gms.internal.zzcgw v3_32 = new StringBuilder((String.valueOf(v13_42).length() + 148));
                        v3_32.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_32.append(v13_42);
                        v3_32.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v3_32.toString(), v12_37);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                Long v13_4 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_0;
                                v21 = v13_4;
                            } catch (java.io.IOException v0_1) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_2) {
                    v2_0 = v0_2;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_1) {
                    v6_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_0) {
                v2_0 = v0_0;
                v6_0 = 0;
            } catch (java.io.IOException v0_11) {
                v3_0 = v0_11;
                v6_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_3) {
            String v2_1 = v0_3;
            this.q().z();
            throw v2_1;
        }
    }

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


    private final boolean a(String p47, long p48)
    {
        this.q().x();
        try {
            com.google.android.gms.internal.zzcgw v3_1 = 0;
            String v2_15 = new ark>com.google.android.gms.internal.zzcimark>$zza(this, 0);
            long v4_40 = this.q();
            int v5_37 = this.J;
            com.google.android.gms.common.internal.zzbq.a(v2_15);
            v4_40.c();
            v4_40.Q();
            com.google.android.gms.internal.zzcmc[] v10_25 = 0;
            try {
                String v21;
                int v22;
                long v15_7 = v4_40.A();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.internal.zzcgw v3_4;
                        if (v5_37 == -1) {
                            v3_4 = new String[1];
                            v3_4[0] = 0;
                        } else {
                            v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_37);
                        }
                        int v12_30;
                        if (v5_37 == -1) {
                            v12_30 = "";
                        } else {
                            v12_30 = " and rowid <= ?";
                        }
                        String v14_15 = new StringBuilder((String.valueOf(v12_30).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v12_30);
                        v14_15.append(" order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v14_15.toString(), v3_4);
                        if (v3_1.moveToFirst()) {
                            Long v13_23 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21 = v13_23;
                            v3_1 = 0;
                            try {
                                String v14_6 = new String[1];
                                v14_6[0] = "metadata";
                                int v12_11 = new String[2];
                                v12_11[0] = v3_1;
                                v12_11[1] = v21;
                                android.database.sqlite.SQLiteDatabase v24 = v15_7;
                                long v15_6 = v15_7.query("raw_events_metadata", v14_6, "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_6.moveToFirst()) {
                                        int v12_14 = v15_6.getBlob(0);
                                        int v12_15 = com.google.android.gms.internal.zzfjj.a(v12_14, 0, v12_14.length);
                                        Long v13_16 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_16.a(v12_15);
                                        } catch (java.io.IOException v0_5) {
                                            boolean v6_0 = v15_6;
                                            v4_40.t().y().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.a(v3_1), v0_5);
                                            if (!v6_0) {
                                                com.google.android.gms.internal.zzcgw v3_8;
                                                if (v2_15.c == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_15.c.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.q().y();
                                                    this.q().z();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.internal.zzcgw v3_9 = v2_15.a;
                                                    long v4_5 = new com.google.android.gms.internal.zzcmb[v2_15.c.size()];
                                                    v3_9.b = v4_5;
                                                    long v4_0 = 0;
                                                    int v5_0 = 0;
                                                    boolean v6_1 = 0;
                                                    while (v4_0 < v2_15.c.size()) {
                                                        if (!this.j().b(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                            com.google.android.gms.internal.zzcgw v7_65 = this.j().c(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b);
                                                            if (v7_65 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_25];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v13_60;
                                                                }
                                                                int v12_58 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a;
                                                                Long v13_62 = v12_58.length;
                                                                String v14_5 = 0;
                                                                long v15_3 = 0;
                                                                int v16_2 = 0;
                                                                while (v14_5 < v13_62) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_24 = v12_58[v14_5];
                                                                    if (!"_c".equals(v10_24.a)) {
                                                                        if ("_r".equals(v10_24.a)) {
                                                                            v10_24.c = Long.valueOf(1);
                                                                            v16_2 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_24.c = Long.valueOf(1);
                                                                        v15_3 = 1;
                                                                    }
                                                                    v14_5++;
                                                                    boolean v11 = 1;
                                                                }
                                                                if ((v15_3 == 0) && (v7_65 != null)) {
                                                                    this.f().E().a("Marking event as conversion", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_70 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_67 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_67.a = "_c";
                                                                    v9_67.c = Long.valueOf(1);
                                                                    v8_70[(v8_70.length - 1)] = v9_67;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_70;
                                                                }
                                                                if (v16_2 == 0) {
                                                                    this.f().E().a("Marking event as real-time", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_5 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_7 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_7.a = "_r";
                                                                    v9_7.c = Long.valueOf(1);
                                                                    v8_5[(v8_5.length - 1)] = v9_7;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_5;
                                                                }
                                                                if (this.q().a(this.L(), v2_15.a.o, 0, 0, 0, 0, 1).e <= ((long) this.c.a(v2_15.a.o))) {
                                                                    v5_0 = 1;
                                                                } else {
                                                                    Object v8_11 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v9_11 = 0;
                                                                    while (v9_11 < v8_11.a.length) {
                                                                        if (!"_r".equals(v8_11.a[v9_11].a)) {
                                                                            v9_11++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_18 = new com.google.android.gms.internal.zzcmc[(v8_11.a.length - 1)];
                                                                            if (v9_11 > null) {
                                                                                System.arraycopy(v8_11.a, 0, v10_18, 0, v9_11);
                                                                            }
                                                                            if (v9_11 < v10_18.length) {
                                                                                System.arraycopy(v8_11.a, (v9_11 + 1), v10_18, v9_11, (v10_18.length - v9_11));
                                                                            }
                                                                            v8_11.a = v10_18;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) && ((v7_65 != null) && (this.q().a(this.L(), v2_15.a.o, 0, 0, 1, 0, 0).c > ((long) this.c.b(v2_15.a.o, com.google.android.gms.internal.zzchc.p))))) {
                                                                    this.f().A().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                    com.google.android.gms.internal.zzcgw v7_7 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    Object v8_18 = v7_7.a;
                                                                    com.google.android.gms.internal.zzcmc[] v10_22 = 0;
                                                                    boolean v11_13 = 0;
                                                                    int v12_6 = 0;
                                                                    while (v10_22 < v8_18.length) {
                                                                        Long v13_5 = v8_18[v10_22];
                                                                        if (!"_c".equals(v13_5.a)) {
                                                                            if ("_err".equals(v13_5.a)) {
                                                                                v11_13 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_6 = v13_5;
                                                                        }
                                                                        v10_22++;
                                                                    }
                                                                    if ((!v11_13) || (v12_6 == 0)) {
                                                                        if (v12_6 == 0) {
                                                                            this.f().y().a("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                        } else {
                                                                            v12_6.a = "_err";
                                                                            v12_6.c = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Object v8_20 = v7_7.a;
                                                                        com.google.android.gms.internal.zzcmc[] v10_23 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_23[0] = v12_6;
                                                                        v7_7.a = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.a(v8_20, v10_23));
                                                                    }
                                                                }
                                                            } else {
                                                                this.o();
                                                                if (com.google.android.gms.internal.zzclq.n(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                                }
                                                            }
                                                            Object v8_23 = (v6_1 + 1);
                                                            v3_9.b[v6_1] = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                            v6_1 = v8_23;
                                                        } else {
                                                            com.google.android.gms.internal.zzcgw v7_20;
                                                            this.f().A().a("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o), this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                            if (this.o().l(v2_15.a.o)) {
                                                                v7_20 = 1;
                                                            } else {
                                                                if (!this.o().m(v2_15.a.o)) {
                                                                    v7_20 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_20 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b))) {
                                                                this.o().a(v2_15.a.o, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_25 = 0;
                                                    }
                                                    if (v6_1 < v2_15.c.size()) {
                                                        v3_9.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.b, v6_1));
                                                    }
                                                    long v43_0;
                                                    String v2_6;
                                                    int v12_31;
                                                    int v42_0;
                                                    v3_9.A = this.a(v2_15.a.o, v2_15.a.c, v3_9.b);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.b.b()).booleanValue()) || (!"1".equals(this.c.q().a(v2_15.a.o, "measurement.event_sampling_enabled")))) {
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                    } else {
                                                        long v4_23 = new java.util.HashMap();
                                                        boolean v6_25 = new com.google.android.gms.internal.zzcmb[v3_9.b.length];
                                                        com.google.android.gms.internal.zzcgw v7_38 = this.o().z();
                                                        Object v8_42 = v3_9.b;
                                                        com.google.android.gms.internal.zzcgw v9_43 = v8_42.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_26 = 0;
                                                        boolean v11_18 = 0;
                                                        while (v10_26 < v9_43) {
                                                            long v43_1;
                                                            int v26;
                                                            android.database.sqlite.SQLiteDatabase v44;
                                                            Object v8_49;
                                                            com.google.android.gms.internal.zzcmc[] v25;
                                                            Object v8_54;
                                                            int v42_1;
                                                            long v41;
                                                            int v12_35 = v8_42[v10_26];
                                                            if (!v12_35.b.equals("_ep")) {
                                                                Object v8_47;
                                                                v25 = v8_42;
                                                                v26 = v9_43;
                                                                if (ark>com.google.android.gms.internal.zzcimark>.a(v12_35, "_dbg", Long.valueOf(1))) {
                                                                    v8_47 = 1;
                                                                } else {
                                                                    v8_47 = this.j().d(v2_15.a.o, v12_35.b);
                                                                }
                                                                if (v8_47 > null) {
                                                                    com.google.android.gms.internal.zzcgw v9_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_35.b));
                                                                    if (v9_51 == null) {
                                                                        v9_51 = this.q().a(v2_15.a.o, v12_35.b);
                                                                        if (v9_51 == null) {
                                                                            this.f().A().a("Event being bundled has no eventAggregate. appId, eventName", v2_15.a.o, v12_35.b);
                                                                            v9_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v9_51(v2_15.a.o, v12_35.b, 1, 1, v12_35.c.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_21;
                                                                    this.o();
                                                                    Long v13_35 = ((Long) com.google.android.gms.internal.zzclq.a(v12_35, "_eid"));
                                                                    if (v13_35 == null) {
                                                                        v14_21 = 0;
                                                                    } else {
                                                                        v14_21 = 1;
                                                                    }
                                                                    String v14_22 = Boolean.valueOf(v14_21);
                                                                    if (v8_47 != 1) {
                                                                        if (v7_38.nextInt(v8_47) != 0) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            Object v45 = v4_23;
                                                                            if (Math.abs((v12_35.c.longValue() - v9_51.f)) < 86400000) {
                                                                                v8_49 = v45;
                                                                                if (!v14_22.booleanValue()) {
                                                                                } else {
                                                                                    v8_49.put(v12_35.b, v9_51.a(v13_35, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.o();
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                                this.o();
                                                                                com.google.android.gms.internal.zzcgw v7_53 = ((long) v8_47);
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_53));
                                                                                String v2_24 = (v11_18 + 1);
                                                                                v6_25[v11_18] = v12_35;
                                                                                if (v14_22.booleanValue()) {
                                                                                    v9_51 = v9_51.a(0, Long.valueOf(v7_53), Boolean.valueOf(1));
                                                                                }
                                                                                v8_49 = v45;
                                                                                v8_49.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                                v11_18 = v2_24;
                                                                            }
                                                                        } else {
                                                                            this.o();
                                                                            v41 = v7_38;
                                                                            com.google.android.gms.internal.zzcgw v7_59 = ((long) v8_47);
                                                                            v42_1 = v5_0;
                                                                            v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_59));
                                                                            int v5_36 = (v11_18 + 1);
                                                                            v6_25[v11_18] = v12_35;
                                                                            if (v14_22.booleanValue()) {
                                                                                v9_51 = v9_51.a(0, Long.valueOf(v7_59), 0);
                                                                            }
                                                                            v4_23.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v8_49 = v4_23;
                                                                            v11_18 = v5_36;
                                                                        }
                                                                    } else {
                                                                        v8_54 = (v11_18 + 1);
                                                                        v6_25[v11_18] = v12_35;
                                                                        if ((!v14_22.booleanValue()) || ((v9_51.g == null) && ((v9_51.h == null) && (v9_51.i == null)))) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            v11_18 = v8_54;
                                                                            v8_49 = v4_23;
                                                                        } else {
                                                                            v4_23.put(v12_35.b, v9_51.a(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.f().A().a("Sample rate must be positive. event, rate", v12_35.b, Integer.valueOf(v8_47));
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            } else {
                                                                this.o();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.a(v12_35, "_en"));
                                                                String v14_25 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_25 == null) {
                                                                    v14_25 = this.q().a(v2_15.a.o, v13_46);
                                                                    v4_23.put(v13_46, v14_25);
                                                                }
                                                                if (v14_25.g != null) {
                                                                    v25 = v8_42;
                                                                    v26 = v9_43;
                                                                    v43_1 = v2_15;
                                                                    v44 = v3_9;
                                                                    v8_49 = v4_23;
                                                                    v42_1 = v5_0;
                                                                    v41 = v7_38;
                                                                } else {
                                                                    if (v14_25.h.longValue() <= 1) {
                                                                        v25 = v8_42;
                                                                    } else {
                                                                        this.o();
                                                                        v25 = v8_42;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", v14_25.h);
                                                                    }
                                                                    if ((v14_25.i == null) || (!v14_25.i.booleanValue())) {
                                                                        v26 = v9_43;
                                                                    } else {
                                                                        this.o();
                                                                        v26 = v9_43;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            }
                                                            v10_26++;
                                                            v4_23 = v8_49;
                                                            v8_42 = v25;
                                                            v9_43 = v26;
                                                            v7_38 = v41;
                                                            v5_0 = v42_1;
                                                            v2_15 = v43_1;
                                                            v3_9 = v44;
                                                        }
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        Object v8_43 = v4_23;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                        if (v11_18 < v2_6.b.length) {
                                                            v2_6.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v6_25, v11_18));
                                                        }
                                                        com.google.android.gms.internal.zzcgw v3_15 = v8_43.entrySet().iterator();
                                                        while (v3_15.hasNext()) {
                                                            this.q().a(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v3_15.next()).getValue()));
                                                        }
                                                    }
                                                    v2_6.e = Long.valueOf(nan);
                                                    v2_6.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcgw v3_20 = 0;
                                                    while (v3_20 < v2_6.b.length) {
                                                        long v4_31 = v2_6.b[v3_20];
                                                        if (v4_31.c.longValue() < v2_6.e.longValue()) {
                                                            v2_6.e = v4_31.c;
                                                        }
                                                        if (v4_31.c.longValue() > v2_6.f.longValue()) {
                                                            v2_6.f = v4_31.c;
                                                        }
                                                        v3_20++;
                                                    }
                                                    com.google.android.gms.internal.zzcgw v3_21 = v43_0;
                                                    long v4_28 = v3_21.a.o;
                                                    int v5_10 = this.q().b(v4_28);
                                                    if (v5_10 != 0) {
                                                        if (v2_6.b.length > 0) {
                                                            com.google.android.gms.internal.zzcmc[] v10_28;
                                                            boolean v6_28 = v5_10.h();
                                                            if (v6_28 == 0) {
                                                                v10_28 = v12_31;
                                                            } else {
                                                                v10_28 = Long.valueOf(v6_28);
                                                            }
                                                            v2_6.h = v10_28;
                                                            com.google.android.gms.internal.zzcmc[] v10_29 = v5_10.g();
                                                            if (v10_29 == 0) {
                                                                v10_29 = v6_28;
                                                            }
                                                            if (v10_29 != 0) {
                                                                v12_31 = Long.valueOf(v10_29);
                                                            }
                                                            v2_6.g = v12_31;
                                                            v5_10.r();
                                                            v2_6.w = Integer.valueOf(((int) v5_10.o()));
                                                            v5_10.a(v2_6.e.longValue());
                                                            v5_10.b(v2_6.f.longValue());
                                                            v2_6.x = v5_10.z();
                                                            this.q().a(v5_10);
                                                        }
                                                    } else {
                                                        this.f().y().a("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                    }
                                                    if (v2_6.b.length > 0) {
                                                        int v5_17;
                                                        int v5_16 = this.j().a(v3_21.a.o);
                                                        if (v5_16 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_21.a.y)) {
                                                                this.f().A().a("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                            } else {
                                                                v5_17 = Long.valueOf(-1);
                                                                v2_6.E = v5_17;
                                                            }
                                                        } else {
                                                            if (v5_16.a != null) {
                                                                v5_17 = v5_16.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.q().a(v2_6, v42_0);
                                                    }
                                                    this.q().a(v3_21.b);
                                                    String v2_9 = this.q();
                                                    com.google.android.gms.internal.zzcgw v3_23 = v2_9.A();
                                                    try {
                                                        boolean v6_46 = new String[2];
                                                        v6_46[0] = v4_28;
                                                        v6_46[1] = v4_28;
                                                        v3_23.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_46);
                                                    } catch (java.io.IOException v0_10) {
                                                        v2_9.t().y().a("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.a(v4_28), v0_10);
                                                    }
                                                    this.q().y();
                                                    this.q().z();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_1) {
                                        }
                                        if (v15_6.moveToNext()) {
                                            v4_40.t().A().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        }
                                        int v5_3;
                                        int v16_6;
                                        v15_6.close();
                                        v2_15.a(v13_16);
                                        if (v5_37 == -1) {
                                            v5_3 = "app_id = ? and metadata_fingerprint = ?";
                                            com.google.android.gms.internal.zzcgw v9_35 = new String[2];
                                            v9_35[0] = v3_1;
                                            v9_35[1] = v21;
                                            v16_6 = v9_35;
                                        } else {
                                            int v12_19 = new String[3];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21;
                                            v12_19[2] = String.valueOf(v5_37);
                                            v5_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v12_19;
                                        }
                                        boolean v6_5 = new String[4];
                                        v6_5[0] = "rowid";
                                        v6_5[1] = "name";
                                        v6_5[2] = "timestamp";
                                        v6_5[3] = "data";
                                        v6_0 = v15_6;
                                        int v5_5 = v24.query("raw_events", v6_5, v5_3, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_5.moveToFirst()) {
                                                do {
                                                    int v12_23 = v5_5.getLong(0);
                                                    boolean v6_7 = v5_5.getBlob(3);
                                                    boolean v6_8 = com.google.android.gms.internal.zzfjj.a(v6_7, 0, v6_7.length);
                                                    String v14_13 = new com.google.android.gms.internal.zzcmb();
                                                    v14_13.a(v6_8);
                                                    v14_13.b = v5_5.getString(1);
                                                    v14_13.c = Long.valueOf(v5_5.getLong(2));
                                                    if (v2_15.a(v12_23, v14_13)) {
                                                    } else {
                                                        if (v5_5 == 0) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_5.moveToNext());
                                                if (v5_5 == 0) {
                                                }
                                            } else {
                                                v4_40.t().A().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                                if (v5_5 == 0) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            String v2_0 = v0_8;
                                            v6_0 = v5_5;
                                            if (v6_0) {
                                                v6_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_1) {
                                            int v12_0 = v3_1;
                                            v6_0 = v5_5;
                                            com.google.android.gms.internal.zzcgw v3_0 = v0_1;
                                            v4_40.t().y().a("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.a(v12_0), v3_0);
                                            if (!v6_0) {
                                            }
                                        }
                                        v5_5.close();
                                    } else {
                                        v4_40.t().y().a("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        if (v15_6 == 0) {
                                        } else {
                                            v15_6.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v6_0 = v15_6;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_1) {
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_1) {
                                    v12_0 = v3_1;
                                    v6_0 = v15_6;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_1) {
                                v12_0 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_37;
                            if (v5_37 == -1) {
                                v12_37 = new String[1];
                                v12_37[0] = String.valueOf(p48);
                            } else {
                                v12_37 = new String[2];
                                v12_37[0] = String.valueOf(v5_37);
                                v12_37[1] = String.valueOf(p48);
                            }
                        } catch (java.io.IOException v0_1) {
                            v6_0 = 0;
                            v12_0 = 0;
                        }
                        Long v13_42;
                        if (v5_37 == -1) {
                            v13_42 = "";
                        } else {
                            v13_42 = "rowid <= ? and ";
                        }
                        com.google.android.gms.internal.zzcgw v3_32 = new StringBuilder((String.valueOf(v13_42).length() + 148));
                        v3_32.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_32.append(v13_42);
                        v3_32.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v3_32.toString(), v12_37);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                Long v13_4 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_0;
                                v21 = v13_4;
                            } catch (java.io.IOException v0_1) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_2) {
                    v2_0 = v0_2;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_1) {
                    v6_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_0) {
                v2_0 = v0_0;
                v6_0 = 0;
            } catch (java.io.IOException v0_11) {
                v3_0 = v0_11;
                v6_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_3) {
            String v2_1 = v0_3;
            this.q().z();
            throw v2_1;
        }
    }

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

Method com.google.android.gms.internal.zzcgr.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) {
            com.google.android.gms.internal.zzcgo v0_8 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_8.moveToFirst();
                v0_8.close();
            } catch (Throwable v8_1) {
                v0_8.close();
                throw v8_1;
            }
        }
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", com.google.android.gms.internal.zzcgo.J());
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", 0);
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", com.google.android.gms.internal.zzcgo.K());
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", com.google.android.gms.internal.zzcgo.L());
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", com.google.android.gms.internal.zzcgo.M());
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", 0);
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", com.google.android.gms.internal.zzcgo.N());
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", 0);
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", 0);
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", 0);
        com.google.android.gms.internal.zzcgo.a(this.a.t(), p8, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", com.google.android.gms.internal.zzcgo.O());
        return;
    }

Method com.google.android.gms.internal.zzaqm.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) {
            String v0_10 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v8_5) {
                v0_10.close();
                throw v8_5;
            }
        }
        String v0_7;
        if (this.a(p8, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaqm.b(p8, "hits2");
            int v2_0 = new String[4];
            int v4 = 0;
            v2_0[0] = "hit_id";
            v2_0[1] = "hit_string";
            v2_0[2] = "hit_time";
            v2_0[3] = "hit_url";
            while (v4 < 4) {
                String v3_4 = v2_0[v4];
                if (v0_4.remove(v3_4)) {
                    v4++;
                } else {
                    String v0_11;
                    String v1_6 = String.valueOf(v3_4);
                    if (v1_6.length() == 0) {
                        v0_11 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_11 = "Database hits2 is missing required column: ".concat(v1_6);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_11);
                }
            }
            String v1_4 = (v0_4.remove("hit_app_id") ^ 1);
            if (v0_4.isEmpty()) {
                if (v1_4 != null) {
                    v0_7 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p8.execSQL(v0_7);
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            v0_7 = com.google.android.gms.internal.zzaql.B();
        }
        if (this.a(p8, "properties")) {
            com.google.android.gms.internal.zzaqm.a(p8);
            return;
        } else {
            p8.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.internal.zzaqm.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.newrelic.agent.android.instrumentation.SQLiteInstrumentation.queryWithFactory() calling method android.database.sqlite.SQLiteDatabase.queryWithFactory()


    public static android.database.Cursor queryWithFactory(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3, boolean p4, String p5, String[] p6, String p7, String[] p8, String p9, String p10, String p11, String p12, android.os.CancellationSignal p13)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#queryWithFactory", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.queryWithFactory(p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.queryWithFactory() calling method android.database.sqlite.SQLiteDatabase.queryWithFactory()


    public static android.database.Cursor queryWithFactory(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteDatabase$CursorFactory p3, boolean p4, String p5, String[] p6, String p7, String[] p8, String p9, String p10, String p11, String p12)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#queryWithFactory", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.queryWithFactory(p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

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


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

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


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

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.insertOrThrow() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public static long insertOrThrow(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, android.content.ContentValues p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#insertOrThrow", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        long v2_1 = p2.insertOrThrow(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

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


    private final boolean a(int p20, byte[] p21)
    {
        this.c();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_0 = new android.content.ContentValues();
            v2_0.put("type", Integer.valueOf(p20));
            v2_0.put("entry", p21);
            com.google.android.gms.internal.zzcho v4_5 = 5;
            int v5_1 = 0;
            int v6 = 5;
            while (v5_1 < v4_5) {
                Long v7_2 = 0;
                try {
                    int v9 = this.z();
                } catch (android.database.sqlite.SQLiteException v0_9) {
                    v2_0 = v0_9;
                    v9 = 0;
                    int v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_0;
                } catch (android.database.sqlite.SQLiteException v0_8) {
                    Long v3_0 = v0_8;
                    v9 = 0;
                    this.t().y().a("Error writing entry to local database", v3_0);
                    this.b = 1;
                    if (v7_2 != null) {
                        v7_2.close();
                    }
                    if (v9 == 0) {
                        v5_1++;
                        v3_6 = 0;
                        v4_5 = 5;
                    } else {
                        v9.close();
                    }
                } catch (android.database.sqlite.SQLiteException v0_7) {
                    Long v3_1 = v0_7;
                    v12_0 = 0;
                    try {
                        if (android.os.Build$VERSION.SDK_INT < 11) {
                            if (v7_2 != null) {
                                if (v7_2.inTransaction()) {
                                    v7_2.endTransaction();
                                }
                            }
                            this.t().y().a("Error writing entry to local database", v3_1);
                            this.b = 1;
                        } else {
                            if (!(v3_1 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                            } else {
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                            }
                        }
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7_2 == null) {
                        } else {
                            v7_2.close();
                        }
                        v3_0 = android.database.sqlite.SQLiteException v0_5;
                    } catch (android.database.sqlite.SQLiteException v0_4) {
                        v2_0 = v0_4;
                        v9 = v7_2;
                    }
                } catch (android.database.sqlite.SQLiteException v0_6) {
                    v2_0 = v0_6;
                    v12_0 = v7_2;
                }
                if (v9 != 0) {
                    try {
                        v9.beginTransaction();
                        long v10_0 = 0;
                        v12_0 = v9.rawQuery("select count(1) from messages", 0);
                    } catch (android.database.sqlite.SQLiteException v0_11) {
                        v2_0 = v0_11;
                        v12_0 = 0;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_10) {
                        v3_1 = v0_10;
                        v12_0 = 0;
                        v7_2 = v9;
                    }
                    if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                        v10_0 = v12_0.getLong(v3_6);
                    }
                    if (v10_0 >= 100000) {
                        this.t().y().a("Data loss, local db full");
                        long v13_2 = ((100000 - v10_0) + 1);
                        String[] v11 = new String[1];
                        v11[v3_6] = Long.toString(v13_2);
                        long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                        if (v10_3 != v13_2) {
                            this.t().y().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                        }
                    }
                    v9.insertOrThrow("messages", 0, v2_0);
                    v9.setTransactionSuccessful();
                    v9.endTransaction();
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return 1;
                } else {
                    try {
                        this.b = 1;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                        v3_1 = v0_3;
                        v12_0 = 0;
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return v3_6;
                }
            }
            this.t().A().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.insert() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static long insert(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, android.content.ContentValues p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#insert", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        long v2_1 = p2.insert(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

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


    public final boolean a(com.google.android.gms.internal.zzcme p9, boolean p10)
    {
        this.c();
        this.Q();
        com.google.android.gms.common.internal.zzbq.a(p9);
        com.google.android.gms.common.internal.zzbq.a(p9.o);
        com.google.android.gms.common.internal.zzbq.a(p9.f);
        this.D();
        int v0_0 = this.k().a();
        if ((p9.f.longValue() < (v0_0 - com.google.android.gms.internal.zzcgn.y())) || (p9.f.longValue() > (v0_0 + com.google.android.gms.internal.zzcgn.y()))) {
            this.t().A().a("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.zzchm.a(p9.o), Long.valueOf(v0_0), p9.f);
        }
        try {
            String v1_3 = new byte[p9.f()];
            Object v2_9 = com.google.android.gms.internal.zzfjk.a(v1_3, 0, v1_3.length);
            p9.a(v2_9);
            v2_9.a();
            String v1_4 = this.p().a(v1_3);
            this.t().E().a("Saving bundle, size", Integer.valueOf(v1_4.length));
            Object v2_14 = new android.content.ContentValues();
            v2_14.put("app_id", p9.o);
            v2_14.put("bundle_end_timestamp", p9.f);
            v2_14.put("data", v1_4);
            v2_14.put("has_realtime", Integer.valueOf(p10));
            try {
                if (this.A().insert("queue", 0, v2_14) != -1) {
                    return 1;
                } else {
                    this.t().y().a("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.zzchm.a(p9.o));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v10_4) {
                String v1_7 = this.t().y();
                Object v2_15 = "Error storing bundle. appId";
                v1_7.a(v2_15, com.google.android.gms.internal.zzchm.a(p9.o), v10_4);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcho v10_4) {
            v1_7 = this.t().y();
            v2_15 = "Data loss. Failed to serialize bundle. appId";
            v1_7.a(v2_15, com.google.android.gms.internal.zzchm.a(p9.o), v10_4);
            return 0;
        }
    }

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


    public final boolean a(com.google.android.gms.internal.zzcgv p9, long p10, boolean p12)
    {
        this.c();
        this.Q();
        com.google.android.gms.common.internal.zzbq.a(p9);
        com.google.android.gms.common.internal.zzbq.a(p9.a);
        long v0_6 = new com.google.android.gms.internal.zzcmb();
        v0_6.d = Long.valueOf(p9.d);
        byte[] v1_2 = new com.google.android.gms.internal.zzcmc[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.internal.zzcmc();
            int v7 = (v3_2 + 1);
            v0_6.a[v3_2] = v5_1;
            v5_1.a = v4_1;
            this.p().a(v5_1, p9.e.a(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.f()];
            String v3_4 = com.google.android.gms.internal.zzfjk.a(v1_6, 0, v1_6.length);
            v0_6.a(v3_4);
            v3_4.a();
            this.t().E().a("Saving event, name, data size", this.o().a(p9.b), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.a);
            v0_4.put("name", p9.b);
            v0_4.put("timestamp", Long.valueOf(p9.c));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.A().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.t().y().a("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.zzchm.a(p9.a));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v10_5) {
                String v11_3 = this.t().y();
                Object v12_3 = "Error storing raw event. appId";
                v11_3.a(v12_3, com.google.android.gms.internal.zzchm.a(p9.a), v10_5);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcho v10_5) {
            v11_3 = this.t().y();
            v12_3 = "Data loss. Failed to serialize event params/data. appId";
            v11_3.a(v12_3, com.google.android.gms.internal.zzchm.a(p9.a), v10_5);
            return 0;
        }
    }

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


    public final void a(com.google.android.gms.internal.zzarq p9)
    {
        com.google.android.gms.common.internal.zzbq.a(p9);
        com.google.android.gms.analytics.zzj.d();
        this.y();
        com.google.android.gms.common.internal.zzbq.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.internal.zzarl.c.a()).intValue();
            String v2_6 = this.C();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_7 = this.d(((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.A();
            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.internal.zzard.i();
            } else {
                v3_11 = com.google.android.gms.internal.zzard.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.google.android.gms.tagmanager.zzec.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void a(long p10, String p12)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.h.a();
        if (v0_3 > (this.g + 86400000)) {
            this.g = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.a("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_4;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.h.a() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v5_1);
                if (this.c() != 0) {
                    v1_4 = 0;
                } else {
                    v1_4 = 1;
                }
                this.d.a(v1_4);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.c() - this.i) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.a(v0_7);
            android.content.ContentValues v1_6 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_6);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.e(v3_1.toString());
            android.content.ContentValues v1_9 = new String[0];
            this.a(((String[]) v0_8.toArray(v1_9)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.a("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_11 = new android.content.ContentValues();
            v1_11.put("hit_time", Long.valueOf(p10));
            v1_11.put("hit_url", p12);
            v1_11.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_11);
                this.d.a(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.b("Error storing hit");
            }
        }
        return;
    }

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


    private final void c(java.util.List p6, long p7)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.c("Error opening database for writeEntryToDatabase.");
        if (v0_1 != null) {
            java.util.Iterator v6_1 = p6.iterator();
            while (v6_1.hasNext()) {
                String v1_1 = ((com.google.android.gms.tagmanager.zzay) v6_1.next());
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("expires", Long.valueOf(p7));
                v2_1.put("key", v1_1.a);
                v2_1.put("value", v1_1.b);
                v0_1.insert("datalayer", 0, v2_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.execSQL() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void execSQL(android.database.sqlite.SQLiteDatabase p2, String p3, Object[] p4)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#execSQL", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        p2.execSQL(p3, p4);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.execSQL() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void execSQL(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#execSQL", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        p2.execSQL(p3);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return;
    }

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


    private static void a(com.google.android.gms.internal.zzchm p6, android.database.sqlite.SQLiteDatabase p7, String p8, String p9, String[] p10)
    {
        if (p6 != null) {
            java.util.Set v0 = ark>com.google.android.gms.internal.zzcgoark>.a(p7, p8);
            String v9_12 = p9.split(",");
            int v2 = 0;
            int v3 = 0;
            while (v3 < v9_12.length) {
                String v4 = v9_12[v3];
                if (v0.remove(v4)) {
                    v3++;
                } else {
                    String v9_11 = new StringBuilder(((String.valueOf(p8).length() + 35) + String.valueOf(v4).length()));
                    v9_11.append("Table ");
                    v9_11.append(p8);
                    v9_11.append(" is missing required column: ");
                    v9_11.append(v4);
                    throw new android.database.sqlite.SQLiteException(v9_11.toString());
                }
            }
            if (p10 != null) {
                while (v2 < p10.length) {
                    if (!v0.remove(p10[v2])) {
                        p7.execSQL(p10[(v2 + 1)]);
                    }
                    v2 += 2;
                }
            }
            if (!v0.isEmpty()) {
                p6.A().a("Table has extra columns. table, columns", p8, android.text.TextUtils.join(", ", v0));
            }
            return;
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

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


    static void a(com.google.android.gms.internal.zzchm p1, android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String p5, String[] p6)
    {
        if (p1 != null) {
            if (!ark>com.google.android.gms.internal.zzcgoark>.a(p1, p2, p3)) {
                p2.execSQL(p4);
            }
            try {
                ark>com.google.android.gms.internal.zzcgoark>.a(p1, p2, p3, p5, p6);
                return;
            } catch (android.database.sqlite.SQLiteException v2_2) {
                p1.y().a("Failed to verify columns on table that was just created", p3);
                throw v2_2;
            }
        } else {
            throw new IllegalArgumentException("Monitor must not be null");
        }
    }

Method com.j256.ormlite.android.AndroidCompiledStatement.execSql() calling method android.database.sqlite.SQLiteDatabase.execSQL()

Couldn't retrieve source code

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


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

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


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

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


    private final boolean a(String p14, com.google.android.gms.internal.zzcha p15)
    {
        String v3_1;
        Object v0_6 = p15.b.d("currency");
        if (!"ecommerce_purchase".equals(p15.a)) {
            v3_1 = p15.b.b("value").longValue();
        } else {
            String v3_6 = (p15.b.c("value").doubleValue() * 1000000.0);
            if (v3_6 == 0) {
                v3_6 = (((double) p15.b.b("value").longValue()) * 1000000.0);
            }
            if ((v3_6 > 9.223372036854776e+18) || (v3_6 < -9.223372036854776e+18)) {
                this.f().A().a("Data lost. Currency value is too big. appId", com.google.android.gms.internal.zzchm.a(p14), Double.valueOf(v3_6));
                return 0;
            } else {
                v3_1 = Math.round(v3_6);
            }
        }
        if (!android.text.TextUtils.isEmpty(v0_6)) {
            Object v0_8 = v0_6.toUpperCase(java.util.Locale.US);
            if (v0_8.matches("[A-Z]{3}")) {
                Object v0_11;
                String v1_23 = String.valueOf("_ltv_");
                Object v0_9 = String.valueOf(v0_8);
                if (v0_9.length() == 0) {
                    v0_11 = new String(v1_23);
                } else {
                    v0_11 = v1_23.concat(v0_9);
                }
                Object v0_1;
                int v9_1 = v0_11;
                Object v0_13 = this.q().c(p14, v9_1);
                if ((v0_13 != null) && ((v0_13.e instanceof Long))) {
                    Object v2_5 = new com.google.android.gms.internal.zzclp;
                    v2_5(p14, p15.c, v9_1, this.p.a(), Long.valueOf((((Long) v0_13.e).longValue() + v3_1)));
                    v0_1 = v2_5;
                } else {
                    Object v0_2 = this.q();
                    String v1_4 = (this.c.b(p14, com.google.android.gms.internal.zzchc.G) - 1);
                    com.google.android.gms.common.internal.zzbq.a(p14);
                    v0_2.c();
                    v0_2.Q();
                    try {
                        com.google.android.gms.internal.zzclq v6_1 = v0_2.A();
                        int v8_1 = new String[3];
                        v8_1[0] = p14;
                        v8_1[1] = p14;
                        v8_1[2] = String.valueOf(v1_4);
                        v6_1.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v8_1);
                    } catch (String v1_6) {
                        v0_2.t().y().a("Error pruning currencies. appId", com.google.android.gms.internal.zzchm.a(p14), v1_6);
                    }
                    v0_1 = new com.google.android.gms.internal.zzclp;
                    v0_1(p14, p15.c, v9_1, this.p.a(), Long.valueOf(v3_1));
                }
                if (!this.q().a(v0_1)) {
                    this.f().y().a("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.zzchm.a(p14), this.p().c(v0_1.c), v0_1.e);
                    this.o().a(p14, 9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

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


    private final boolean a(String p47, long p48)
    {
        this.q().x();
        try {
            com.google.android.gms.internal.zzcgw v3_1 = 0;
            String v2_15 = new ark>com.google.android.gms.internal.zzcimark>$zza(this, 0);
            long v4_40 = this.q();
            int v5_37 = this.J;
            com.google.android.gms.common.internal.zzbq.a(v2_15);
            v4_40.c();
            v4_40.Q();
            com.google.android.gms.internal.zzcmc[] v10_25 = 0;
            try {
                String v21;
                int v22;
                long v15_7 = v4_40.A();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.internal.zzcgw v3_4;
                        if (v5_37 == -1) {
                            v3_4 = new String[1];
                            v3_4[0] = 0;
                        } else {
                            v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_37);
                        }
                        int v12_30;
                        if (v5_37 == -1) {
                            v12_30 = "";
                        } else {
                            v12_30 = " and rowid <= ?";
                        }
                        String v14_15 = new StringBuilder((String.valueOf(v12_30).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v12_30);
                        v14_15.append(" order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v14_15.toString(), v3_4);
                        if (v3_1.moveToFirst()) {
                            Long v13_23 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21 = v13_23;
                            v3_1 = 0;
                            try {
                                String v14_6 = new String[1];
                                v14_6[0] = "metadata";
                                int v12_11 = new String[2];
                                v12_11[0] = v3_1;
                                v12_11[1] = v21;
                                android.database.sqlite.SQLiteDatabase v24 = v15_7;
                                long v15_6 = v15_7.query("raw_events_metadata", v14_6, "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_6.moveToFirst()) {
                                        int v12_14 = v15_6.getBlob(0);
                                        int v12_15 = com.google.android.gms.internal.zzfjj.a(v12_14, 0, v12_14.length);
                                        Long v13_16 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_16.a(v12_15);
                                        } catch (java.io.IOException v0_5) {
                                            boolean v6_0 = v15_6;
                                            v4_40.t().y().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.a(v3_1), v0_5);
                                            if (!v6_0) {
                                                com.google.android.gms.internal.zzcgw v3_8;
                                                if (v2_15.c == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_15.c.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.q().y();
                                                    this.q().z();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.internal.zzcgw v3_9 = v2_15.a;
                                                    long v4_5 = new com.google.android.gms.internal.zzcmb[v2_15.c.size()];
                                                    v3_9.b = v4_5;
                                                    long v4_0 = 0;
                                                    int v5_0 = 0;
                                                    boolean v6_1 = 0;
                                                    while (v4_0 < v2_15.c.size()) {
                                                        if (!this.j().b(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                            com.google.android.gms.internal.zzcgw v7_65 = this.j().c(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b);
                                                            if (v7_65 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_25];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v13_60;
                                                                }
                                                                int v12_58 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a;
                                                                Long v13_62 = v12_58.length;
                                                                String v14_5 = 0;
                                                                long v15_3 = 0;
                                                                int v16_2 = 0;
                                                                while (v14_5 < v13_62) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_24 = v12_58[v14_5];
                                                                    if (!"_c".equals(v10_24.a)) {
                                                                        if ("_r".equals(v10_24.a)) {
                                                                            v10_24.c = Long.valueOf(1);
                                                                            v16_2 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_24.c = Long.valueOf(1);
                                                                        v15_3 = 1;
                                                                    }
                                                                    v14_5++;
                                                                    boolean v11 = 1;
                                                                }
                                                                if ((v15_3 == 0) && (v7_65 != null)) {
                                                                    this.f().E().a("Marking event as conversion", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_70 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_67 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_67.a = "_c";
                                                                    v9_67.c = Long.valueOf(1);
                                                                    v8_70[(v8_70.length - 1)] = v9_67;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_70;
                                                                }
                                                                if (v16_2 == 0) {
                                                                    this.f().E().a("Marking event as real-time", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_5 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_7 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_7.a = "_r";
                                                                    v9_7.c = Long.valueOf(1);
                                                                    v8_5[(v8_5.length - 1)] = v9_7;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_5;
                                                                }
                                                                if (this.q().a(this.L(), v2_15.a.o, 0, 0, 0, 0, 1).e <= ((long) this.c.a(v2_15.a.o))) {
                                                                    v5_0 = 1;
                                                                } else {
                                                                    Object v8_11 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v9_11 = 0;
                                                                    while (v9_11 < v8_11.a.length) {
                                                                        if (!"_r".equals(v8_11.a[v9_11].a)) {
                                                                            v9_11++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_18 = new com.google.android.gms.internal.zzcmc[(v8_11.a.length - 1)];
                                                                            if (v9_11 > null) {
                                                                                System.arraycopy(v8_11.a, 0, v10_18, 0, v9_11);
                                                                            }
                                                                            if (v9_11 < v10_18.length) {
                                                                                System.arraycopy(v8_11.a, (v9_11 + 1), v10_18, v9_11, (v10_18.length - v9_11));
                                                                            }
                                                                            v8_11.a = v10_18;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) && ((v7_65 != null) && (this.q().a(this.L(), v2_15.a.o, 0, 0, 1, 0, 0).c > ((long) this.c.b(v2_15.a.o, com.google.android.gms.internal.zzchc.p))))) {
                                                                    this.f().A().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                    com.google.android.gms.internal.zzcgw v7_7 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    Object v8_18 = v7_7.a;
                                                                    com.google.android.gms.internal.zzcmc[] v10_22 = 0;
                                                                    boolean v11_13 = 0;
                                                                    int v12_6 = 0;
                                                                    while (v10_22 < v8_18.length) {
                                                                        Long v13_5 = v8_18[v10_22];
                                                                        if (!"_c".equals(v13_5.a)) {
                                                                            if ("_err".equals(v13_5.a)) {
                                                                                v11_13 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_6 = v13_5;
                                                                        }
                                                                        v10_22++;
                                                                    }
                                                                    if ((!v11_13) || (v12_6 == 0)) {
                                                                        if (v12_6 == 0) {
                                                                            this.f().y().a("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                        } else {
                                                                            v12_6.a = "_err";
                                                                            v12_6.c = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Object v8_20 = v7_7.a;
                                                                        com.google.android.gms.internal.zzcmc[] v10_23 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_23[0] = v12_6;
                                                                        v7_7.a = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.a(v8_20, v10_23));
                                                                    }
                                                                }
                                                            } else {
                                                                this.o();
                                                                if (com.google.android.gms.internal.zzclq.n(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                                }
                                                            }
                                                            Object v8_23 = (v6_1 + 1);
                                                            v3_9.b[v6_1] = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                            v6_1 = v8_23;
                                                        } else {
                                                            com.google.android.gms.internal.zzcgw v7_20;
                                                            this.f().A().a("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o), this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                            if (this.o().l(v2_15.a.o)) {
                                                                v7_20 = 1;
                                                            } else {
                                                                if (!this.o().m(v2_15.a.o)) {
                                                                    v7_20 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_20 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b))) {
                                                                this.o().a(v2_15.a.o, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_25 = 0;
                                                    }
                                                    if (v6_1 < v2_15.c.size()) {
                                                        v3_9.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.b, v6_1));
                                                    }
                                                    int v12_31;
                                                    int v42_0;
                                                    String v2_6;
                                                    long v43_0;
                                                    v3_9.A = this.a(v2_15.a.o, v2_15.a.c, v3_9.b);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.b.b()).booleanValue()) || (!"1".equals(this.c.q().a(v2_15.a.o, "measurement.event_sampling_enabled")))) {
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                    } else {
                                                        long v4_23 = new java.util.HashMap();
                                                        boolean v6_25 = new com.google.android.gms.internal.zzcmb[v3_9.b.length];
                                                        com.google.android.gms.internal.zzcgw v7_38 = this.o().z();
                                                        Object v8_42 = v3_9.b;
                                                        com.google.android.gms.internal.zzcgw v9_43 = v8_42.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_26 = 0;
                                                        boolean v11_18 = 0;
                                                        while (v10_26 < v9_43) {
                                                            com.google.android.gms.internal.zzcmc[] v25;
                                                            android.database.sqlite.SQLiteDatabase v44;
                                                            int v26;
                                                            Object v8_49;
                                                            int v42_1;
                                                            Object v8_54;
                                                            long v41;
                                                            long v43_1;
                                                            int v12_35 = v8_42[v10_26];
                                                            if (!v12_35.b.equals("_ep")) {
                                                                Object v8_47;
                                                                v25 = v8_42;
                                                                v26 = v9_43;
                                                                if (ark>com.google.android.gms.internal.zzcimark>.a(v12_35, "_dbg", Long.valueOf(1))) {
                                                                    v8_47 = 1;
                                                                } else {
                                                                    v8_47 = this.j().d(v2_15.a.o, v12_35.b);
                                                                }
                                                                if (v8_47 > null) {
                                                                    com.google.android.gms.internal.zzcgw v9_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_35.b));
                                                                    if (v9_51 == null) {
                                                                        v9_51 = this.q().a(v2_15.a.o, v12_35.b);
                                                                        if (v9_51 == null) {
                                                                            this.f().A().a("Event being bundled has no eventAggregate. appId, eventName", v2_15.a.o, v12_35.b);
                                                                            v9_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v9_51(v2_15.a.o, v12_35.b, 1, 1, v12_35.c.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_21;
                                                                    this.o();
                                                                    Long v13_35 = ((Long) com.google.android.gms.internal.zzclq.a(v12_35, "_eid"));
                                                                    if (v13_35 == null) {
                                                                        v14_21 = 0;
                                                                    } else {
                                                                        v14_21 = 1;
                                                                    }
                                                                    String v14_22 = Boolean.valueOf(v14_21);
                                                                    if (v8_47 != 1) {
                                                                        if (v7_38.nextInt(v8_47) != 0) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            Object v45 = v4_23;
                                                                            if (Math.abs((v12_35.c.longValue() - v9_51.f)) < 86400000) {
                                                                                v8_49 = v45;
                                                                                if (!v14_22.booleanValue()) {
                                                                                } else {
                                                                                    v8_49.put(v12_35.b, v9_51.a(v13_35, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.o();
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                                this.o();
                                                                                com.google.android.gms.internal.zzcgw v7_53 = ((long) v8_47);
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_53));
                                                                                String v2_24 = (v11_18 + 1);
                                                                                v6_25[v11_18] = v12_35;
                                                                                if (v14_22.booleanValue()) {
                                                                                    v9_51 = v9_51.a(0, Long.valueOf(v7_53), Boolean.valueOf(1));
                                                                                }
                                                                                v8_49 = v45;
                                                                                v8_49.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                                v11_18 = v2_24;
                                                                            }
                                                                        } else {
                                                                            this.o();
                                                                            v41 = v7_38;
                                                                            com.google.android.gms.internal.zzcgw v7_59 = ((long) v8_47);
                                                                            v42_1 = v5_0;
                                                                            v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_59));
                                                                            int v5_36 = (v11_18 + 1);
                                                                            v6_25[v11_18] = v12_35;
                                                                            if (v14_22.booleanValue()) {
                                                                                v9_51 = v9_51.a(0, Long.valueOf(v7_59), 0);
                                                                            }
                                                                            v4_23.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v8_49 = v4_23;
                                                                            v11_18 = v5_36;
                                                                        }
                                                                    } else {
                                                                        v8_54 = (v11_18 + 1);
                                                                        v6_25[v11_18] = v12_35;
                                                                        if ((!v14_22.booleanValue()) || ((v9_51.g == null) && ((v9_51.h == null) && (v9_51.i == null)))) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            v11_18 = v8_54;
                                                                            v8_49 = v4_23;
                                                                        } else {
                                                                            v4_23.put(v12_35.b, v9_51.a(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.f().A().a("Sample rate must be positive. event, rate", v12_35.b, Integer.valueOf(v8_47));
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            } else {
                                                                this.o();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.a(v12_35, "_en"));
                                                                String v14_25 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_25 == null) {
                                                                    v14_25 = this.q().a(v2_15.a.o, v13_46);
                                                                    v4_23.put(v13_46, v14_25);
                                                                }
                                                                if (v14_25.g != null) {
                                                                    v25 = v8_42;
                                                                    v26 = v9_43;
                                                                    v43_1 = v2_15;
                                                                    v44 = v3_9;
                                                                    v8_49 = v4_23;
                                                                    v42_1 = v5_0;
                                                                    v41 = v7_38;
                                                                } else {
                                                                    if (v14_25.h.longValue() <= 1) {
                                                                        v25 = v8_42;
                                                                    } else {
                                                                        this.o();
                                                                        v25 = v8_42;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", v14_25.h);
                                                                    }
                                                                    if ((v14_25.i == null) || (!v14_25.i.booleanValue())) {
                                                                        v26 = v9_43;
                                                                    } else {
                                                                        this.o();
                                                                        v26 = v9_43;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            }
                                                            v10_26++;
                                                            v4_23 = v8_49;
                                                            v8_42 = v25;
                                                            v9_43 = v26;
                                                            v7_38 = v41;
                                                            v5_0 = v42_1;
                                                            v2_15 = v43_1;
                                                            v3_9 = v44;
                                                        }
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        Object v8_43 = v4_23;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                        if (v11_18 < v2_6.b.length) {
                                                            v2_6.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v6_25, v11_18));
                                                        }
                                                        com.google.android.gms.internal.zzcgw v3_15 = v8_43.entrySet().iterator();
                                                        while (v3_15.hasNext()) {
                                                            this.q().a(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v3_15.next()).getValue()));
                                                        }
                                                    }
                                                    v2_6.e = Long.valueOf(nan);
                                                    v2_6.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcgw v3_20 = 0;
                                                    while (v3_20 < v2_6.b.length) {
                                                        long v4_31 = v2_6.b[v3_20];
                                                        if (v4_31.c.longValue() < v2_6.e.longValue()) {
                                                            v2_6.e = v4_31.c;
                                                        }
                                                        if (v4_31.c.longValue() > v2_6.f.longValue()) {
                                                            v2_6.f = v4_31.c;
                                                        }
                                                        v3_20++;
                                                    }
                                                    com.google.android.gms.internal.zzcgw v3_21 = v43_0;
                                                    long v4_28 = v3_21.a.o;
                                                    int v5_10 = this.q().b(v4_28);
                                                    if (v5_10 != 0) {
                                                        if (v2_6.b.length > 0) {
                                                            com.google.android.gms.internal.zzcmc[] v10_28;
                                                            boolean v6_28 = v5_10.h();
                                                            if (v6_28 == 0) {
                                                                v10_28 = v12_31;
                                                            } else {
                                                                v10_28 = Long.valueOf(v6_28);
                                                            }
                                                            v2_6.h = v10_28;
                                                            com.google.android.gms.internal.zzcmc[] v10_29 = v5_10.g();
                                                            if (v10_29 == 0) {
                                                                v10_29 = v6_28;
                                                            }
                                                            if (v10_29 != 0) {
                                                                v12_31 = Long.valueOf(v10_29);
                                                            }
                                                            v2_6.g = v12_31;
                                                            v5_10.r();
                                                            v2_6.w = Integer.valueOf(((int) v5_10.o()));
                                                            v5_10.a(v2_6.e.longValue());
                                                            v5_10.b(v2_6.f.longValue());
                                                            v2_6.x = v5_10.z();
                                                            this.q().a(v5_10);
                                                        }
                                                    } else {
                                                        this.f().y().a("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                    }
                                                    if (v2_6.b.length > 0) {
                                                        int v5_17;
                                                        int v5_16 = this.j().a(v3_21.a.o);
                                                        if (v5_16 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_21.a.y)) {
                                                                this.f().A().a("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                            } else {
                                                                v5_17 = Long.valueOf(-1);
                                                                v2_6.E = v5_17;
                                                            }
                                                        } else {
                                                            if (v5_16.a != null) {
                                                                v5_17 = v5_16.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.q().a(v2_6, v42_0);
                                                    }
                                                    this.q().a(v3_21.b);
                                                    String v2_9 = this.q();
                                                    com.google.android.gms.internal.zzcgw v3_23 = v2_9.A();
                                                    try {
                                                        boolean v6_46 = new String[2];
                                                        v6_46[0] = v4_28;
                                                        v6_46[1] = v4_28;
                                                        v3_23.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_46);
                                                    } catch (java.io.IOException v0_10) {
                                                        v2_9.t().y().a("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.a(v4_28), v0_10);
                                                    }
                                                    this.q().y();
                                                    this.q().z();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_1) {
                                        }
                                        if (v15_6.moveToNext()) {
                                            v4_40.t().A().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        }
                                        int v16_6;
                                        int v5_3;
                                        v15_6.close();
                                        v2_15.a(v13_16);
                                        if (v5_37 == -1) {
                                            v5_3 = "app_id = ? and metadata_fingerprint = ?";
                                            com.google.android.gms.internal.zzcgw v9_35 = new String[2];
                                            v9_35[0] = v3_1;
                                            v9_35[1] = v21;
                                            v16_6 = v9_35;
                                        } else {
                                            int v12_19 = new String[3];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21;
                                            v12_19[2] = String.valueOf(v5_37);
                                            v5_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v12_19;
                                        }
                                        boolean v6_5 = new String[4];
                                        v6_5[0] = "rowid";
                                        v6_5[1] = "name";
                                        v6_5[2] = "timestamp";
                                        v6_5[3] = "data";
                                        v6_0 = v15_6;
                                        int v5_5 = v24.query("raw_events", v6_5, v5_3, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_5.moveToFirst()) {
                                                do {
                                                    int v12_23 = v5_5.getLong(0);
                                                    boolean v6_7 = v5_5.getBlob(3);
                                                    boolean v6_8 = com.google.android.gms.internal.zzfjj.a(v6_7, 0, v6_7.length);
                                                    String v14_13 = new com.google.android.gms.internal.zzcmb();
                                                    v14_13.a(v6_8);
                                                    v14_13.b = v5_5.getString(1);
                                                    v14_13.c = Long.valueOf(v5_5.getLong(2));
                                                    if (v2_15.a(v12_23, v14_13)) {
                                                    } else {
                                                        if (v5_5 == 0) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_5.moveToNext());
                                                if (v5_5 == 0) {
                                                }
                                            } else {
                                                v4_40.t().A().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                                if (v5_5 == 0) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            String v2_0 = v0_8;
                                            v6_0 = v5_5;
                                            if (v6_0) {
                                                v6_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_1) {
                                            int v12_0 = v3_1;
                                            v6_0 = v5_5;
                                            com.google.android.gms.internal.zzcgw v3_0 = v0_1;
                                            v4_40.t().y().a("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.a(v12_0), v3_0);
                                            if (!v6_0) {
                                            }
                                        }
                                        v5_5.close();
                                    } else {
                                        v4_40.t().y().a("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        if (v15_6 == 0) {
                                        } else {
                                            v15_6.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v6_0 = v15_6;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_1) {
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_1) {
                                    v12_0 = v3_1;
                                    v6_0 = v15_6;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_1) {
                                v12_0 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_37;
                            if (v5_37 == -1) {
                                v12_37 = new String[1];
                                v12_37[0] = String.valueOf(p48);
                            } else {
                                v12_37 = new String[2];
                                v12_37[0] = String.valueOf(v5_37);
                                v12_37[1] = String.valueOf(p48);
                            }
                        } catch (java.io.IOException v0_1) {
                            v6_0 = 0;
                            v12_0 = 0;
                        }
                        Long v13_42;
                        if (v5_37 == -1) {
                            v13_42 = "";
                        } else {
                            v13_42 = "rowid <= ? and ";
                        }
                        com.google.android.gms.internal.zzcgw v3_32 = new StringBuilder((String.valueOf(v13_42).length() + 148));
                        v3_32.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_32.append(v13_42);
                        v3_32.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v3_32.toString(), v12_37);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                Long v13_4 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_0;
                                v21 = v13_4;
                            } catch (java.io.IOException v0_1) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_2) {
                    v2_0 = v0_2;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_1) {
                    v6_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_0) {
                v2_0 = v0_0;
                v6_0 = 0;
            } catch (java.io.IOException v0_11) {
                v3_0 = v0_11;
                v6_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_3) {
            String v2_1 = v0_3;
            this.q().z();
            throw v2_1;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p8)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v8_5) {
                v0_10.close();
                throw v8_5;
            }
        }
        String v0_7;
        if (this.a(p8, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaqm.b(p8, "hits2");
            int v2_0 = new String[4];
            int v4 = 0;
            v2_0[0] = "hit_id";
            v2_0[1] = "hit_string";
            v2_0[2] = "hit_time";
            v2_0[3] = "hit_url";
            while (v4 < 4) {
                String v3_4 = v2_0[v4];
                if (v0_4.remove(v3_4)) {
                    v4++;
                } else {
                    String v0_11;
                    String v1_6 = String.valueOf(v3_4);
                    if (v1_6.length() == 0) {
                        v0_11 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_11 = "Database hits2 is missing required column: ".concat(v1_6);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_11);
                }
            }
            String v1_4 = (v0_4.remove("hit_app_id") ^ 1);
            if (v0_4.isEmpty()) {
                if (v1_4 != null) {
                    v0_7 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p8.execSQL(v0_7);
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            v0_7 = com.google.android.gms.internal.zzaql.B();
        }
        if (this.a(p8, "properties")) {
            com.google.android.gms.internal.zzaqm.a(p8);
            return;
        } else {
            p8.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.facebook.react.modules.storage.ReactDatabaseSupplier.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE catalystLocalStorage (key TEXT PRIMARY KEY, value TEXT NOT NULL)");
        return;
    }

Method com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase$IndexDbOpenHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.beginTransaction();
        try {
            p1.execSQL("DROP TABLE IF EXISTS media_variations_index");
            p1.setTransactionSuccessful();
            p1.endTransaction();
            this.onCreate(p1);
            return;
        } catch (Throwable v2_1) {
            p1.endTransaction();
            throw v2_1;
        }
    }

Method com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase$IndexDbOpenHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.beginTransaction();
        try {
            p2.execSQL("CREATE TABLE media_variations_index (_id INTEGER PRIMARY KEY,media_id TEXT,width INTEGER,height INTEGER,cache_choice TEXT,cache_key TEXT,resource_id TEXT UNIQUE )");
            p2.execSQL("CREATE INDEX index_media_id ON media_variations_index (media_id)");
            p2.setTransactionSuccessful();
            p2.endTransaction();
            return;
        } catch (Throwable v0_2) {
            p2.endTransaction();
            throw v0_2;
        }
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.delete() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static int delete(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String[] p5)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#delete", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        int v2_1 = p2.delete(p3, p4, p5);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.google.android.gms.internal.zzchi.y() calling method android.database.sqlite.SQLiteDatabase.delete()


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

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


    public final java.util.List a(int p22)
    {
        this.c();
        long v3_4 = 0;
        if (!this.b) {
            Throwable v2_6 = new java.util.ArrayList();
            if (this.l().getDatabasePath("google_app_measurement_local.db").exists()) {
                Throwable v4_5 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_5) {
                    try {
                        long v15 = this.z();
                    } catch (Throwable v0_10) {
                        Throwable v2_1 = v0_10;
                        long v3_5 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v3_5 != 0) {
                            v3_5.close();
                        }
                        throw v2_1;
                    } catch (Throwable v0_9) {
                        long v3_2 = v0_9;
                        v9_0 = 0;
                        v15 = 0;
                        this.t().y().a("Error reading entries from local database", v3_2);
                        this.b = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v15 == 0) {
                            v6++;
                            v3_4 = 0;
                            v4_5 = 5;
                        } else {
                            v15.close();
                        }
                        v2_6.add(int v13_4);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_1 = v9_0.getLong(0);
                                com.google.android.gms.internal.zzcho v12_0 = v9_0.getInt(1);
                                int v13_0 = v9_0.getBlob(2);
                                if (v12_0 != null) {
                                    if (v12_0 != 1) {
                                        if (v12_0 != 2) {
                                            this.t().y().a("Unknown record type in local database");
                                        } else {
                                            com.google.android.gms.internal.zzcho v12_3 = android.os.Parcel.obtain();
                                            try {
                                                v12_3.unmarshall(v13_0, 0, v13_0.length);
                                                v12_3.setDataPosition(0);
                                                v13_4 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_3));
                                            } catch (Throwable v0_0) {
                                                Throwable v4_4 = v0_0;
                                                v12_3.recycle();
                                                throw v4_4;
                                            }
                                            v12_3.recycle();
                                            if (v13_4 != 0) {
                                            }
                                        }
                                    } else {
                                        com.google.android.gms.internal.zzcho v12_4 = android.os.Parcel.obtain();
                                        try {
                                            v12_4.unmarshall(v13_0, 0, v13_0.length);
                                            v12_4.setDataPosition(0);
                                            v13_4 = ((com.google.android.gms.internal.zzcln) com.google.android.gms.internal.zzcln.CREATOR.createFromParcel(v12_4));
                                        } catch (Throwable v0_1) {
                                            Throwable v4_6 = v0_1;
                                            v12_4.recycle();
                                            throw v4_6;
                                        }
                                        v12_4.recycle();
                                        if (v13_4 != 0) {
                                        }
                                    }
                                } else {
                                    com.google.android.gms.internal.zzcho v12_5 = android.os.Parcel.obtain();
                                    try {
                                        v12_5.unmarshall(v13_0, 0, v13_0.length);
                                        v12_5.setDataPosition(0);
                                        v13_4 = ((com.google.android.gms.internal.zzcha) com.google.android.gms.internal.zzcha.CREATOR.createFromParcel(v12_5));
                                    } catch (Throwable v0_2) {
                                        Throwable v4_7 = v0_2;
                                        v12_5.recycle();
                                        throw v4_7;
                                    }
                                    v12_5.recycle();
                                    if (v13_4 != 0) {
                                    }
                                }
                            }
                        } catch (Throwable v0_5) {
                            v2_1 = v0_5;
                        } catch (Throwable v0_4) {
                            v15 = v3_5;
                            v3_2 = v0_4;
                        } catch (Throwable v0_3) {
                            v15 = v3_5;
                            long v3_0 = v0_3;
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v15 != 0) {
                                    if (v15.inTransaction()) {
                                        v15.endTransaction();
                                    }
                                }
                                this.t().y().a("Error reading entries from local database", v3_0);
                                this.b = 1;
                            } else {
                                if (!(v3_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v15 == 0) {
                            }
                        }
                        int v13_16 = new String[1];
                        v13_16[0] = Long.toString(v10_1);
                        if (v3_5.delete("messages", "rowid <= ?", v13_16) < v2_6.size()) {
                            this.t().y().a("Fewer entries removed from local database than expected");
                        }
                        v3_5.setTransactionSuccessful();
                        v3_5.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v3_5 != 0) {
                            v3_5.close();
                        }
                        return v2_6;
                    } catch (Throwable v0_8) {
                        v3_0 = v0_8;
                        v9_0 = 0;
                        v15 = 0;
                    } catch (Throwable v0_6) {
                        v2_1 = v0_6;
                        v3_5 = v15;
                    }
                    if (v15 != 0) {
                        try {
                            v15.beginTransaction();
                            String[] v11 = new String[3];
                            v11[0] = "rowid";
                            v11[1] = "type";
                            v11[2] = "entry";
                            int v9_6 = v15;
                            v3_5 = v15;
                            v15 = 0;
                            try {
                                v9_0 = v9_6.query("messages", v11, 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_1 = -1;
                            } catch (Throwable v0_11) {
                                v2_1 = v0_11;
                            } catch (Throwable v0_4) {
                                v15 = v3_5;
                                v9_0 = 0;
                            } catch (Throwable v0_3) {
                                v15 = v3_5;
                                v9_0 = 0;
                            }
                        } catch (Throwable v0_11) {
                            v3_5 = 0;
                        } catch (Throwable v0_4) {
                        } catch (Throwable v0_3) {
                        }
                    } else {
                        try {
                            this.b = 1;
                        } catch (Throwable v0_7) {
                            v2_1 = v0_7;
                            v9_0 = v3_4;
                        } catch (Throwable v0_4) {
                            v9_0 = v3_4;
                        } catch (Throwable v0_3) {
                            v9_0 = v3_4;
                        }
                        if (v15 != 0) {
                            v15.close();
                        }
                        return v3_4;
                    }
                }
                this.t().A().a("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v2_6;
            }
        } else {
            return 0;
        }
    }

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


    private final boolean a(int p20, byte[] p21)
    {
        this.c();
        Long v3_6 = 0;
        if (!this.b) {
            int v2_0 = new android.content.ContentValues();
            v2_0.put("type", Integer.valueOf(p20));
            v2_0.put("entry", p21);
            com.google.android.gms.internal.zzcho v4_5 = 5;
            int v5_1 = 0;
            int v6 = 5;
            while (v5_1 < v4_5) {
                Long v7_2 = 0;
                try {
                    int v9 = this.z();
                } catch (android.database.sqlite.SQLiteException v0_9) {
                    v2_0 = v0_9;
                    v9 = 0;
                    int v12_0 = 0;
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    throw v2_0;
                } catch (android.database.sqlite.SQLiteException v0_8) {
                    Long v3_0 = v0_8;
                    v9 = 0;
                    this.t().y().a("Error writing entry to local database", v3_0);
                    this.b = 1;
                    if (v7_2 != null) {
                        v7_2.close();
                    }
                    if (v9 == 0) {
                        v5_1++;
                        v3_6 = 0;
                        v4_5 = 5;
                    } else {
                        v9.close();
                    }
                } catch (android.database.sqlite.SQLiteException v0_7) {
                    Long v3_1 = v0_7;
                    v12_0 = 0;
                    try {
                        if (android.os.Build$VERSION.SDK_INT < 11) {
                            if (v7_2 != null) {
                                if (v7_2.inTransaction()) {
                                    v7_2.endTransaction();
                                }
                            }
                            this.t().y().a("Error writing entry to local database", v3_1);
                            this.b = 1;
                        } else {
                            if (!(v3_1 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                            } else {
                                android.os.SystemClock.sleep(((long) v6));
                                v6 += 20;
                            }
                        }
                        if (v12_0 != 0) {
                            v12_0.close();
                        }
                        if (v7_2 == null) {
                        } else {
                            v7_2.close();
                        }
                        v3_0 = android.database.sqlite.SQLiteException v0_5;
                    } catch (android.database.sqlite.SQLiteException v0_4) {
                        v2_0 = v0_4;
                        v9 = v7_2;
                    }
                } catch (android.database.sqlite.SQLiteException v0_6) {
                    v2_0 = v0_6;
                    v12_0 = v7_2;
                }
                if (v9 != 0) {
                    try {
                        v9.beginTransaction();
                        long v10_0 = 0;
                        v12_0 = v9.rawQuery("select count(1) from messages", 0);
                    } catch (android.database.sqlite.SQLiteException v0_11) {
                        v2_0 = v0_11;
                        v12_0 = 0;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_10) {
                        v3_1 = v0_10;
                        v12_0 = 0;
                        v7_2 = v9;
                    }
                    if ((v12_0 != 0) && (v12_0.moveToFirst())) {
                        v10_0 = v12_0.getLong(v3_6);
                    }
                    if (v10_0 >= 100000) {
                        this.t().y().a("Data loss, local db full");
                        long v13_2 = ((100000 - v10_0) + 1);
                        String[] v11 = new String[1];
                        v11[v3_6] = Long.toString(v13_2);
                        long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                        if (v10_3 != v13_2) {
                            this.t().y().a("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                        }
                    }
                    v9.insertOrThrow("messages", 0, v2_0);
                    v9.setTransactionSuccessful();
                    v9.endTransaction();
                    if (v12_0 != 0) {
                        v12_0.close();
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return 1;
                } else {
                    try {
                        this.b = 1;
                    } catch (android.database.sqlite.SQLiteException v0_5) {
                    } catch (android.database.sqlite.SQLiteException v0_3) {
                        v3_1 = v0_3;
                        v12_0 = 0;
                    }
                    if (v9 != 0) {
                        v9.close();
                    }
                    return v3_6;
                }
            }
            this.t().A().a("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    public final int e(String p7, String p8)
    {
        com.google.android.gms.common.internal.zzbq.a(p7);
        com.google.android.gms.common.internal.zzbq.a(p8);
        this.c();
        this.Q();
        try {
            android.database.sqlite.SQLiteException v1_2 = this.A();
            com.google.android.gms.internal.zzchk 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.t().y().a("Error deleting conditional property", com.google.android.gms.internal.zzchm.a(p7), this.o().c(p8), v1_1);
            return 0;
        }
    }

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


    public final long c(String p7)
    {
        com.google.android.gms.common.internal.zzbq.a(p7);
        this.c();
        this.Q();
        try {
            long v0_4 = this.A();
            com.google.android.gms.internal.zzcho v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.v().b(p7, com.google.android.gms.internal.zzchc.r))));
            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.t().y().a("Error deleting over the limit events. appId", com.google.android.gms.internal.zzchm.a(p7), v0_2);
            return 0;
        }
    }

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


    public final void b(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzbq.a(p6);
        com.google.android.gms.common.internal.zzbq.a(p7);
        this.c();
        this.Q();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.A();
            com.google.android.gms.internal.zzchk v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.t().E().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.t().y().a("Error deleting user attribute. appId", com.google.android.gms.internal.zzchm.a(p6), this.o().c(p7), v0_2);
            return;
        }
    }

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


    public final void a(java.util.List p5)
    {
        com.google.android.gms.common.internal.zzbq.a(p5);
        this.c();
        this.Q();
        Integer v0_4 = new StringBuilder("rowid in (");
        com.google.android.gms.internal.zzcho v1_6 = 0;
        while (v1_6 < p5.size()) {
            if (v1_6 != null) {
                v0_4.append(",");
            }
            v0_4.append(((Long) p5.get(v1_6)).longValue());
            v1_6++;
        }
        v0_4.append(")");
        Integer v0_1 = this.A().delete("raw_events", v0_4.toString(), 0);
        if (v0_1 != p5.size()) {
            this.t().y().a("Deleted fewer rows from raw events table than expected", Integer.valueOf(v0_1), Integer.valueOf(p5.size()));
        }
        return;
    }

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


    final void a(String p13, com.google.android.gms.internal.zzclr[] p14)
    {
        this.Q();
        this.c();
        com.google.android.gms.common.internal.zzbq.a(p13);
        com.google.android.gms.common.internal.zzbq.a(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.A();
        v0.beginTransaction();
        try {
            this.Q();
            this.c();
            com.google.android.gms.common.internal.zzbq.a(p13);
            java.util.ArrayList v1_0 = this.A();
            String v5_5 = new String[1];
            int v6 = 0;
            v5_5[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_5);
            String v5_6 = new String[1];
            v5_6[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_6);
            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_7 = p14[v2_1];
            this.Q();
            this.c();
            com.google.android.gms.common.internal.zzbq.a(p13);
            com.google.android.gms.common.internal.zzbq.a(v3_7);
            com.google.android.gms.common.internal.zzbq.a(v3_7.c);
            com.google.android.gms.common.internal.zzbq.a(v3_7.b);
            if (v3_7.a != null) {
                String v5_11 = v3_7.a.intValue();
                int v7_2 = v3_7.c;
                int v9_2 = 0;
                while (v9_2 < v7_2.length) {
                    if (v7_2[v9_2].a != null) {
                        v9_2++;
                    } else {
                        String v5_2 = this.t().A();
                        int v7_0 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        String v8_0 = com.google.android.gms.internal.zzchm.a(p13);
                        android.database.sqlite.SQLiteDatabase v3_0 = v3_7.a;
                    }
                    v5_2.a(v7_0, v8_0, v3_0);
                }
                int v7_3 = v3_7.b;
                int v9_1 = 0;
                while (v9_1 < v7_3.length) {
                    if (v7_3[v9_1].a != null) {
                        v9_1++;
                    } else {
                        v5_2 = this.t().A();
                        v7_0 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v8_0 = com.google.android.gms.internal.zzchm.a(p13);
                        v3_0 = v3_7.a;
                    }
                }
                int v7_4 = v3_7.c;
                int v9_3 = 0;
                while (v9_3 < v7_4.length) {
                    if (this.a(p13, v5_11, v7_4[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_5 = 0;
                    }
                    if (v7_5 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_8 = v3_7.b;
                        int v9_4 = 0;
                        while (v9_4 < v3_8.length) {
                            if (this.a(p13, v5_11, v3_8[v9_4])) {
                                v9_4++;
                            } else {
                                v7_5 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_5 != 0) {
                        v2_1++;
                    } else {
                        this.Q();
                        this.c();
                        com.google.android.gms.common.internal.zzbq.a(p13);
                        android.database.sqlite.SQLiteDatabase v3_9 = this.A();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_11);
                        v3_9.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_11);
                        v3_9.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_5 = 1;
            } else {
                this.t().A().a("Audience with no ID. appId", com.google.android.gms.internal.zzchm.a(p13));
            }
        }
        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.internal.zzcgo.D() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void D()
    {
        this.c();
        this.Q();
        if (this.T()) {
            Integer v0_10 = this.u().f.a();
            String v2_1 = this.k().b();
            if (Math.abs((v2_1 - v0_10)) > ((Long) com.google.android.gms.internal.zzchc.A.b()).longValue()) {
                this.u().f.a(v2_1);
                this.c();
                this.Q();
                if (this.T()) {
                    Integer v0_5 = this.A();
                    com.google.android.gms.internal.zzcho v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.k().a());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.zzcgn.y());
                    Integer v0_6 = v0_5.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_6 > null) {
                        this.t().E().a("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_6));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    private final boolean a(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.zzbq.a(p10);
        this.Q();
        this.c();
        com.google.android.gms.internal.zzcho v0_2 = this.A();
        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.v().b(p10, com.google.android.gms.internal.zzchc.H)));
        } catch (String v11_1) {
            this.t().y().a("Database error querying filters. appId", com.google.android.gms.internal.zzchm.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) {
                    return 0;
                } else {
                    if ((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.internal.zzaqo.f() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void f()
    {
        com.google.android.gms.analytics.zzj.d();
        this.y();
        this.b("Delete all hits from local store");
        try {
            String v0_7 = this.b;
            com.google.android.gms.analytics.zzj.d();
            v0_7.y();
            v0_7.A().delete("hits2", 0, 0);
            String v0_0 = this.b;
            com.google.android.gms.analytics.zzj.d();
            v0_0.y();
            v0_0.A().delete("properties", 0, 0);
            this.A();
        } catch (String v0_3) {
            this.d("Failed to delete hits from store", v0_3);
        }
        this.D();
        if (this.e.c()) {
            this.b("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long a(com.google.android.gms.internal.zzaqf p11, boolean p12)
    {
        com.google.android.gms.common.internal.zzbq.a(p11);
        this.y();
        com.google.android.gms.analytics.zzj.d();
        try {
            this.b.b();
            String v12_8 = this.b;
            long v2_6 = p11.a();
            String v4_0 = p11.b();
            com.google.android.gms.common.internal.zzbq.a(v4_0);
            v12_8.y();
            com.google.android.gms.analytics.zzj.d();
            int v5_1 = v12_8.A();
            long v8_3 = new String[2];
            v8_3[0] = String.valueOf(v2_6);
            v8_3[1] = v4_0;
            long v2_2 = v5_1.delete("properties", "app_uid=? AND cid<>?", v8_3);
        } catch (android.database.sqlite.SQLiteException v11_10) {
            try {
                this.b.d();
            } catch (String v12_4) {
                this.e("Failed to end transaction", v12_4);
            }
            throw v11_10;
        } catch (android.database.sqlite.SQLiteException v11_7) {
            this.e("Failed to update Analytics property", v11_7);
            try {
                this.b.d();
                return -1;
            } catch (android.database.sqlite.SQLiteException v11_9) {
                this.e("Failed to end transaction", v11_9);
                return -1;
            }
        }
        if (v2_2 > 0) {
            v12_8.a("Deleted property records", Integer.valueOf(v2_2));
        }
        long v2_5 = this.b.a(p11.a(), p11.b(), p11.c());
        p11.a((v2_5 + 1));
        String v12_7 = this.b;
        com.google.android.gms.common.internal.zzbq.a(p11);
        v12_7.y();
        com.google.android.gms.analytics.zzj.d();
        String v4_5 = v12_7.A();
        int v5_3 = p11.f();
        com.google.android.gms.common.internal.zzbq.a(v5_3);
        android.content.ContentValues v6_3 = new android.net.Uri$Builder();
        int v5_5 = v5_3.entrySet().iterator();
        while (v5_5.hasNext()) {
            int v7_2 = ((java.util.Map$Entry) v5_5.next());
            v6_3.appendQueryParameter(((String) v7_2.getKey()), ((String) v7_2.getValue()));
        }
        int v5_7 = v6_3.build().getEncodedQuery();
        if (v5_7 == 0) {
            v5_7 = "";
        }
        android.content.ContentValues v6_5 = new android.content.ContentValues();
        v6_5.put("app_uid", Long.valueOf(p11.a()));
        v6_5.put("cid", p11.b());
        v6_5.put("tid", p11.c());
        v6_5.put("adid", Integer.valueOf(p11.d()));
        v6_5.put("hits_count", Long.valueOf(p11.e()));
        v6_5.put("params", v5_7);
        try {
            if (v4_5.insertWithOnConflict("properties", 0, v6_5, 5) == -1) {
                v12_7.f("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v11_2) {
            v12_7.e("Error storing a property", v11_2);
        }
        this.b.c();
        try {
            this.b.d();
            return v2_5;
        } catch (android.database.sqlite.SQLiteException v11_6) {
            this.e("Failed to end transaction", v11_6);
            return v2_5;
        }
    }

Method com.google.android.gms.internal.zzaql.f() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int f()
    {
        com.google.android.gms.analytics.zzj.d();
        this.y();
        if (this.d.a(86400000)) {
            this.d.a();
            this.b("Deleting stale hits (if any)");
            int v0_1 = this.A();
            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.internal.zzaql.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void a(java.util.List p9)
    {
        com.google.android.gms.common.internal.zzbq.a(p9);
        com.google.android.gms.analytics.zzj.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.A();
                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.tagmanager.zzec.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void a(long p10, String p12)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.h.a();
        if (v0_3 > (this.g + 86400000)) {
            this.g = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.a("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_4;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.h.a() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v5_1);
                if (this.c() != 0) {
                    v1_4 = 0;
                } else {
                    v1_4 = 1;
                }
                this.d.a(v1_4);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.c() - this.i) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.a(v0_7);
            android.content.ContentValues v1_6 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_6);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.e(v3_1.toString());
            android.content.ContentValues v1_9 = new String[0];
            this.a(((String[]) v0_8.toArray(v1_9)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.a("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_11 = new android.content.ContentValues();
            v1_11.put("hit_time", Long.valueOf(p10));
            v1_11.put("hit_url", p12);
            v1_11.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_11);
                this.d.a(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.b("Error storing hit");
            }
        }
        return;
    }

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


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

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


    private final declared_synchronized void b(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.e.a();
            this.a(v0_1);
            String v3_0 = ((this.d() - this.f) + p11.size());
        } catch (Throwable v11_1) {
            this.e();
            throw v11_1;
        } catch (Throwable v11_2) {
            throw v11_2;
        }
        if (v3_0 > null) {
            String v2_0 = this.a(v3_0);
            String v3_1 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_1);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdj.c(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.c("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        this.c(p11, (v0_1 + p12));
        this.e();
        return;
    }

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


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

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


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

Method com.facebook.react.modules.storage.AsyncStorageModule$3.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected varargs void a(Void[] p9)
    {
        com.facebook.react.bridge.WritableMap v2_1 = 0;
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.c)) {
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().beginTransaction();
                com.facebook.react.bridge.Callback v9_3 = 0;
            } catch (com.facebook.react.bridge.Callback v9_21) {
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                } catch (Object[] v0_0) {
                    com.facebook.common.logging.FLog.b("ReactNative", v0_0.getMessage(), v0_0);
                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v0_0.getMessage());
                }
                throw v9_21;
            } catch (com.facebook.react.bridge.Callback v9_13) {
                com.facebook.common.logging.FLog.b("ReactNative", v9_13.getMessage(), v9_13);
                com.facebook.react.bridge.Callback v9_15 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v9_13.getMessage());
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                } catch (String v3_13) {
                    com.facebook.common.logging.FLog.b("ReactNative", v3_13.getMessage(), v3_13);
                    if (v9_15 != null) {
                    } else {
                        v9_15 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v3_13.getMessage());
                    }
                }
                v2_1 = v9_15;
                if (v2_1 == null) {
                    Object[] v0_4 = new Object[0];
                    this.a.a(v0_4);
                } else {
                    com.facebook.react.bridge.Callback v9_19 = this.a;
                    Object[] v0_5 = new Object[1];
                    v0_5[0] = v2_1;
                    v9_19.a(v0_5);
                }
                return;
            }
            while (v9_3 < this.b.a()) {
                String v3_7 = Math.min((this.b.a() - v9_3), 999);
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().delete("catalystLocalStorage", com.facebook.react.modules.storage.AsyncLocalStorageUtil.a(v3_7), com.facebook.react.modules.storage.AsyncLocalStorageUtil.a(this.b, v9_3, v3_7));
                v9_3 += 999;
            }
            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().setTransactionSuccessful();
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
            } catch (com.facebook.react.bridge.Callback v9_11) {
                com.facebook.common.logging.FLog.b("ReactNative", v9_11.getMessage(), v9_11);
                v2_1 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v9_11.getMessage());
            }
        } else {
            com.facebook.react.bridge.Callback v9_2 = this.a;
            Object[] v0_2 = new Object[1];
            v0_2[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.c(0);
            v9_2.a(v0_2);
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                com.google.android.gms.internal.zzcln v8_5;
                com.google.android.gms.internal.zzcln v8_4;
                long v10_8;
                String v9_8;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                com.google.android.gms.internal.zzcln v8_4;
                com.google.android.gms.internal.zzcln v8_5;
                long v10_8;
                String v9_8;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                long v10_8;
                String v9_8;
                com.google.android.gms.internal.zzcln v8_5;
                com.google.android.gms.internal.zzcln v8_4;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                com.google.android.gms.internal.zzcln v8_4;
                long v10_8;
                com.google.android.gms.internal.zzcln v8_5;
                String v9_8;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                com.google.android.gms.internal.zzcln v8_5;
                String v9_8;
                com.google.android.gms.internal.zzcln v8_4;
                long v10_8;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                long v10_8;
                com.google.android.gms.internal.zzcln v8_5;
                com.google.android.gms.internal.zzcln v8_4;
                String v9_8;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    public final void c(com.google.android.gms.internal.zzcgi p21)
    {
        this.h().c();
        this.a();
        com.google.android.gms.common.internal.zzbq.a(p21);
        com.google.android.gms.common.internal.zzbq.a(p21.a);
        if (!android.text.TextUtils.isEmpty(p21.b)) {
            android.os.Bundle v3_2 = this.q().b(p21.a);
            if ((v3_2 != null) && ((android.text.TextUtils.isEmpty(v3_2.d())) && (!android.text.TextUtils.isEmpty(p21.b)))) {
                v3_2.g(0);
                this.q().a(v3_2);
                this.j().d(p21.a);
            }
            if (p21.h) {
                long v6_6 = p21.m;
                if (v6_6 == 0) {
                    v6_6 = this.p.a();
                }
                android.os.Bundle v3_22 = p21.n;
                if ((v3_22 != null) && (v3_22 != 1)) {
                    this.f().A().a("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.a(p21.a), Integer.valueOf(v3_22));
                    v3_22 = 0;
                }
                this.q().x();
                try {
                    com.google.android.gms.internal.zzcln v8_1 = this.q().b(p21.a);
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_3) {
                    com.google.android.gms.internal.zzcgo v2_1 = v0_3;
                    this.q().z();
                    throw v2_1;
                }
                if ((v8_1 != null) && ((v8_1.d() != null) && (!v8_1.d().equals(p21.b)))) {
                    this.f().A().a("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.a(v8_1.b()));
                    String v9_37 = this.q();
                    com.google.android.gms.internal.zzcln v8_48 = v8_1.b();
                    v9_37.Q();
                    v9_37.c();
                    com.google.android.gms.common.internal.zzbq.a(v8_48);
                    try {
                        long v10_37 = v9_37.A();
                        Object v11_0 = new String[1];
                        v11_0[0] = v8_48;
                        Long v12_10 = (((((((((v10_37.delete("events", "app_id=?", v11_0) + 0) + v10_37.delete("user_attributes", "app_id=?", v11_0)) + v10_37.delete("conditional_properties", "app_id=?", v11_0)) + v10_37.delete("apps", "app_id=?", v11_0)) + v10_37.delete("raw_events", "app_id=?", v11_0)) + v10_37.delete("raw_events_metadata", "app_id=?", v11_0)) + v10_37.delete("event_filters", "app_id=?", v11_0)) + v10_37.delete("property_filters", "app_id=?", v11_0)) + v10_37.delete("audience_filter_values", "app_id=?", v11_0));
                    } catch (android.content.pm.PackageManager$NameNotFoundException v0_0) {
                        v9_37.t().y().a("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.a(v8_48), v0_0);
                        v8_1 = 0;
                    }
                    if (v12_10 <= null) {
                    } else {
                        v9_37.t().E().a("Deleted application data. app, records", v8_48, Integer.valueOf(v12_10));
                    }
                }
                if ((v8_1 != null) && ((v8_1.i() != null) && (!v8_1.i().equals(p21.c)))) {
                    String v9_6 = new android.os.Bundle();
                    v9_6.putString("_pv", v8_1.i());
                    com.google.android.gms.internal.zzcln v14_8 = new com.google.android.gms.internal.zzcha;
                    v14_8("_au", new com.google.android.gms.internal.zzcgx(v9_6), "auto", v6_6);
                    this.a(v14_8, p21);
                }
                com.google.android.gms.internal.zzcln v8_4;
                String v9_8;
                long v10_8;
                com.google.android.gms.internal.zzcln v8_5;
                this = this.d(p21);
                if (v3_22 != null) {
                    if (v3_22 != 1) {
                        v8_4 = 0;
                    } else {
                        v8_5 = this.q();
                        v9_8 = p21.a;
                        v10_8 = "_v";
                        v8_4 = v8_5.a(v9_8, v10_8);
                    }
                } else {
                    v8_5 = this.q();
                    v9_8 = p21.a;
                    v10_8 = "_f";
                }
                com.google.android.gms.internal.zzcha v4_2;
                if (v8_4 != null) {
                    if (p21.i) {
                        v4_2 = new com.google.android.gms.internal.zzcha;
                        v4_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v6_6);
                        this.a(v4_2, p21);
                    }
                } else {
                    com.google.android.gms.internal.zzcha v4_3;
                    com.google.android.gms.internal.zzcln v14_9;
                    com.google.android.gms.internal.zzcln v8_8 = (3600000 * ((v6_6 / 3600000) + 1));
                    if (v3_22 != null) {
                        v4_3 = 1;
                        if (v3_22 == 1) {
                            android.os.Bundle v3_6 = new com.google.android.gms.internal.zzcln;
                            v3_6("_fvt", v6_6, Long.valueOf(v8_8), "auto");
                            this.a(v3_6, p21);
                            this.h().c();
                            this.a();
                            android.os.Bundle v3_9 = new android.os.Bundle();
                            v3_9.putLong("_c", 1);
                            v3_9.putLong("_r", 1);
                            v14_9 = new com.google.android.gms.internal.zzcha;
                            v14_9("_v", new com.google.android.gms.internal.zzcgx(v3_9), "auto", v6_6);
                            this.a(v14_9, p21);
                        }
                    } else {
                        android.os.Bundle v3_10 = new com.google.android.gms.internal.zzcln;
                        v4_3 = 1;
                        v3_10("_fot", v6_6, Long.valueOf(v8_8), "auto");
                        this.a(v3_10, p21);
                        this.h().c();
                        this.a();
                        android.os.Bundle v3_13 = new android.os.Bundle();
                        v3_13.putLong("_c", 1);
                        v3_13.putLong("_r", 1);
                        v3_13.putLong("_uwa", 0);
                        v3_13.putLong("_pfo", 0);
                        v3_13.putLong("_sys", 0);
                        v3_13.putLong("_sysu", 0);
                        if (this.b.getPackageManager() != null) {
                            try {
                                com.google.android.gms.internal.zzcln v8_24 = com.google.android.gms.internal.zzbhf.a(this.b).b(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_1) {
                                this.f().y().a("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_1);
                                v8_24 = 0;
                            }
                            if ((v8_24 != null) && (v8_24.firstInstallTime != 0)) {
                                com.google.android.gms.internal.zzcln v8_27;
                                if (v8_24.firstInstallTime == v8_24.lastUpdateTime) {
                                    v8_27 = 1;
                                } else {
                                    v3_13.putLong("_uwa", 1);
                                    v8_27 = 0;
                                }
                                long v10_20;
                                com.google.android.gms.internal.zzcln v14_10 = new com.google.android.gms.internal.zzcln;
                                if (v8_27 == null) {
                                    v10_20 = 0;
                                } else {
                                    v10_20 = 1;
                                }
                                v14_10("_fi", v6_6, Long.valueOf(v10_20), "auto");
                                this.a(v14_10, p21);
                            }
                            try {
                                com.google.android.gms.internal.zzcln v8_32 = com.google.android.gms.internal.zzbhf.a(this.b).a(p21.a, 0);
                            } catch (android.content.pm.PackageManager$NameNotFoundException v0_2) {
                                this.f().y().a("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a), v0_2);
                                v8_32 = 0;
                            }
                            if (v8_32 != null) {
                                if ((v8_32.flags & 1) != 0) {
                                    v3_13.putLong("_sys", 1);
                                }
                                if ((v8_32.flags & 128) != 0) {
                                    v3_13.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.f().y().a("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.a(p21.a));
                        }
                        com.google.android.gms.internal.zzcln v8_39 = this.q();
                        String v9_27 = p21.a;
                        com.google.android.gms.common.internal.zzbq.a(v9_27);
                        v8_39.c();
                        v8_39.Q();
                        com.google.android.gms.internal.zzcln v8_40 = v8_39.h(v9_27, "first_open_count");
                        if (v8_40 >= 0) {
                            v3_13.putLong("_pfo", v8_40);
                        }
                        v14_9 = new com.google.android.gms.internal.zzcha;
                        v14_9("_f", new com.google.android.gms.internal.zzcgx(v3_13), "auto", v6_6);
                    }
                    android.os.Bundle v3_19 = new android.os.Bundle();
                    v3_19.putLong("_et", v4_3);
                    v4_2 = new com.google.android.gms.internal.zzcha;
                    v4_2("_e", new com.google.android.gms.internal.zzcgx(v3_19), "auto", v6_6);
                }
                this.q().y();
                this.q().z();
                return;
            } else {
                this.d(p21);
                return;
            }
        } else {
            return;
        }
    }

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


    final void a(com.google.android.gms.internal.zzcgi p11)
    {
        this.q().b(p11.a);
        com.google.android.gms.internal.zzcho v0_1 = this.q();
        Object v1_1 = p11.a;
        com.google.android.gms.common.internal.zzbq.a(v1_1);
        v0_1.c();
        v0_1.Q();
        try {
            com.google.android.gms.internal.zzcho v2_0 = v0_1.A();
            String v3_1 = new String[1];
            v3_1[0] = v1_1;
            android.content.Context v5_9 = ((((((((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));
        } catch (com.google.android.gms.internal.zzcho v2_2) {
            v0_1.t().y().a("Error resetting analytics data. appId, error", com.google.android.gms.internal.zzchm.a(v1_1), v2_2);
            this.c(this.a(this.b, p11.a, p11.b, p11.h, p11.o));
            return;
        }
        if (v5_9 <= null) {
            this.c(this.a(this.b, p11.a, p11.b, p11.h, p11.o));
            return;
        } else {
            v0_1.t().E().a("Reset analytics data. app, records", v1_1, Integer.valueOf(v5_9));
            this.c(this.a(this.b, p11.a, p11.b, p11.h, p11.o));
            return;
        }
    }

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


    protected final void a(int p8, Throwable p9, byte[] p10)
    {
        this.h().c();
        this.a();
        if (p10 == null) {
            p10 = new byte[0];
        }
        String v1_6 = this.F;
        this.F = 0;
        int v3 = 1;
        if (((p8 != 200) && (p8 != 204)) || (p9 != null)) {
            this.f().E().a("Network upload failed. Will retry later. code, error", Integer.valueOf(p8), p9);
            this.e().d.a(this.p.a());
            if (p8 != 503) {
                if (p8 != 429) {
                    v3 = 0;
                } else {
                }
            }
            if (v3 != 0) {
                this.e().e.a(this.p.a());
            }
            this.N();
        } else {
            try {
                this.e().c.a(this.p.a());
                this.e().d.a(0);
                this.N();
                this.f().E().a("Successful upload. Got network response. code, size", Integer.valueOf(p8), Integer.valueOf(p10.length));
                this.q().x();
            } catch (long v8_5) {
                this.f().y().a("Database error while trying to delete uploaded bundles", v8_5);
                this.K = this.p.b();
                this.f().E().a("Disable upload, time", Long.valueOf(this.K));
            }
            long v8_15 = v1_6.iterator();
            while (v8_15.hasNext()) {
                com.google.android.gms.internal.zzcho v9_24 = ((Long) v8_15.next());
                String v10_1 = this.q();
                String v1_0 = v9_24.longValue();
                v10_1.c();
                v10_1.Q();
                com.google.android.gms.internal.zzcho v9_1 = v10_1.A();
                String[] v6 = new String[1];
                v6[0] = String.valueOf(v1_0);
                try {
                    if (v9_1.delete("queue", "rowid=?", v6) != 1) {
                        throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                    }
                } catch (long v8_3) {
                    v10_1.t().y().a("Failed to delete a bundle in a queue table", v8_3);
                    throw v8_3;
                }
            }
            this.q().y();
            this.q().z();
            if ((!this.s().y()) || (!this.M())) {
                this.J = -1;
                this.N();
            } else {
                this.E();
            }
            this.K = 0;
        }
        this.M = 0;
        this.P();
        return;
    }

Method com.facebook.react.modules.storage.ReactDatabaseSupplier.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    declared_synchronized void d()
    {
        try {
            this.b().delete("catalystLocalStorage", 0, 0);
            return;
        } catch (Throwable v0_1) {
            throw v0_1;
        }
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.queryForLong() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public long queryForLong(String p8)
    {
        try {
            int v1_1 = this.db.compileStatement(p8);
            try {
                StringBuilder v2_0 = v1_1.simpleQueryForLong();
                com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: query for long simple query returned {}: {}", this, Long.valueOf(v2_0), p8);
                this.closeQuietly(v1_1);
                return v2_0;
            } catch (android.database.SQLException v0_2) {
                StringBuilder v2_2 = new StringBuilder();
                v2_2.append("queryForLong from database failed: ");
                v2_2.append(p8);
                throw com.j256.ormlite.misc.SqlExceptionUtil.create(v2_2.toString(), v0_2);
            }
        } catch (Throwable v8_3) {
            v1_1 = 0;
            this.closeQuietly(v1_1);
            throw v8_3;
        } catch (int v1_2) {
            v1_1 = 0;
            v0_2 = v1_2;
        } catch (Throwable v8_3) {
        }
        v2_0 = v1_1.simpleQueryForLong();
        com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: query for long simple query returned {}: {}", this, Long.valueOf(v2_0), p8);
        this.closeQuietly(v1_1);
        return v2_0;
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.insert() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int insert(String p3, Object[] p4, com.j256.ormlite.field.FieldType[] p5, com.j256.ormlite.support.GeneratedKeyHolder p6)
    {
        Integer v0_0 = 0;
        try {
            android.database.sqlite.SQLiteStatement v1_1 = this.db.compileStatement(p3);
            try {
                this.bindArgs(v1_1, p4, p5);
                int v4_4 = v1_1.executeInsert();
            } catch (Throwable v3_3) {
                v0_0 = v1_1;
                this.closeQuietly(v0_0);
                throw v3_3;
            } catch (int v4_2) {
                v0_0 = v1_1;
                com.j256.ormlite.logger.Logger v5_2 = new StringBuilder();
                v5_2.append("inserting to database failed: ");
                v5_2.append(p3);
                throw com.j256.ormlite.misc.SqlExceptionUtil.create(v5_2.toString(), v4_2);
            }
            if (p6 != null) {
                p6.addKey(Long.valueOf(v4_4));
            }
            com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{}: insert statement is compiled and executed, changed {}: {}", this, Integer.valueOf(1), p3);
            this.closeQuietly(v1_1);
            return 1;
        } catch (Throwable v3_3) {
        } catch (int v4_2) {
        }
    }

Method com.j256.ormlite.android.AndroidDatabaseConnection.update() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private int update(String p3, Object[] p4, com.j256.ormlite.field.FieldType[] p5, String p6)
    {
        com.j256.ormlite.logger.Logger v0_0 = 0;
        try {
            Integer v1_1 = this.db.compileStatement(p3);
            try {
                this.bindArgs(v1_1, p4, p5);
                v1_1.execute();
                this.closeQuietly(v1_1);
                try {
                    com.j256.ormlite.logger.Logger v4_2 = this.db.compileStatement("SELECT CHANGES()");
                    try {
                        int v5_4 = ((int) v4_2.simpleQueryForLong());
                        this.closeQuietly(v4_2);
                    } catch (Throwable v3_4) {
                        v0_0 = v4_2;
                        this.closeQuietly(v0_0);
                        throw v3_4;
                    } catch (android.database.SQLException) {
                        v0_0 = v4_2;
                        v5_4 = 1;
                        this.closeQuietly(v0_0);
                    }
                    com.j256.ormlite.android.AndroidDatabaseConnection.logger.trace("{} statement is compiled and executed, changed {}: {}", p6, Integer.valueOf(v5_4), p3);
                    return v5_4;
                } catch (Throwable v3_4) {
                } catch (android.database.SQLException) {
                }
            } catch (Throwable v3_3) {
                v0_0 = v1_1;
                this.closeQuietly(v0_0);
                throw v3_3;
            } catch (com.j256.ormlite.logger.Logger v4_3) {
                v0_0 = v1_1;
                int v5_2 = new StringBuilder();
                v5_2.append("updating database failed: ");
                v5_2.append(p3);
                throw com.j256.ormlite.misc.SqlExceptionUtil.create(v5_2.toString(), v4_3);
            }
        } catch (Throwable v3_3) {
        } catch (com.j256.ormlite.logger.Logger v4_3) {
        }
    }

Method com.j256.ormlite.android.AndroidCompiledStatement.execSql() calling method android.database.sqlite.SQLiteDatabase.compileStatement()

Couldn't retrieve source code

Method com.facebook.react.modules.storage.AsyncStorageModule$2.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    protected varargs void a(Void[] p7)
    {
        com.facebook.react.bridge.WritableMap v2_0 = 0;
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.c)) {
            String v7_7 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().compileStatement("INSERT OR REPLACE INTO catalystLocalStorage VALUES (?, ?);");
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().beginTransaction();
                String v3_13 = 0;
            } catch (String v7_11) {
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                } catch (Exception v0_8) {
                    com.facebook.common.logging.FLog.b("ReactNative", v0_8.getMessage(), v0_8);
                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v0_8.getMessage());
                }
                throw v7_11;
            } catch (String v7_4) {
                com.facebook.common.logging.FLog.b("ReactNative", v7_4.getMessage(), v7_4);
                String v7_6 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v7_4.getMessage());
                try {
                    com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                } catch (String v3_7) {
                    com.facebook.common.logging.FLog.b("ReactNative", v3_7.getMessage(), v3_7);
                    if (v7_6 != null) {
                    } else {
                        v7_6 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v3_7.getMessage());
                    }
                }
                v2_0 = v7_6;
                if (v2_0 == null) {
                    Exception v0_4 = new Object[0];
                    this.a.a(v0_4);
                } else {
                    String v7_10 = this.a;
                    String v1_1 = new Object[1];
                    v1_1[0] = v2_0;
                    v7_10.a(v1_1);
                }
                return;
            }
            while (v3_13 < this.b.a()) {
                if (this.b.j(v3_13).a() == 2) {
                    if (this.b.j(v3_13).d(0) != null) {
                        if (this.b.j(v3_13).d(1) != null) {
                            v7_7.clearBindings();
                            v7_7.bindString(1, this.b.j(v3_13).d(0));
                            v7_7.bindString(2, this.b.j(v3_13).d(1));
                            v7_7.execute();
                            v3_13++;
                        } else {
                            String v7_24 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.b(0);
                            try {
                                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                            } catch (Exception v0_18) {
                                com.facebook.common.logging.FLog.b("ReactNative", v0_18.getMessage(), v0_18);
                                if (v7_24 != null) {
                                } else {
                                    com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v0_18.getMessage());
                                }
                            }
                            return;
                        }
                    } else {
                        String v7_1 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0);
                        try {
                            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                        } catch (Exception v0_3) {
                            com.facebook.common.logging.FLog.b("ReactNative", v0_3.getMessage(), v0_3);
                            if (v7_1 != null) {
                            } else {
                                com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v0_3.getMessage());
                            }
                        }
                        return;
                    }
                } else {
                    String v7_3 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.b(0);
                    try {
                        com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
                    } catch (Exception v0_13) {
                        com.facebook.common.logging.FLog.b("ReactNative", v0_13.getMessage(), v0_13);
                        if (v7_3 != null) {
                        } else {
                            com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v0_13.getMessage());
                        }
                    }
                    return;
                }
            }
            com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().setTransactionSuccessful();
            try {
                com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().endTransaction();
            } catch (String v7_21) {
                com.facebook.common.logging.FLog.b("ReactNative", v7_21.getMessage(), v7_21);
                v2_0 = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v7_21.getMessage());
            }
        } else {
            String v7_13 = this.a;
            String v1_4 = new Object[1];
            v1_4[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.c(0);
            v7_13.a(v1_4);
            return;
        }
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.query() calling method android.database.sqlite.SQLiteDatabase.query()


    public static android.database.Cursor query(android.database.sqlite.SQLiteDatabase p2, boolean p3, String p4, String[] p5, String p6, String[] p7, String p8, String p9, String p10, String p11, android.os.CancellationSignal p12)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#query", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.query(p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.query() calling method android.database.sqlite.SQLiteDatabase.query()


    public static android.database.Cursor query(android.database.sqlite.SQLiteDatabase p2, boolean p3, String p4, String[] p5, String p6, String[] p7, String p8, String p9, String p10, String p11)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#query", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.query(p3, p4, p5, p6, p7, p8, p9, p10, p11);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.query() calling method android.database.sqlite.SQLiteDatabase.query()


    public static android.database.Cursor query(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4, String p5, String[] p6, String p7, String p8, String p9, String p10)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#query", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.query(p3, p4, p5, p6, p7, p8, p9, p10);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

Method com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.query() calling method android.database.sqlite.SQLiteDatabase.query()


    public static android.database.Cursor query(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4, String p5, String[] p6, String p7, String p8, String p9)
    {
        com.newrelic.agent.android.tracing.TraceMachine.enterMethod("SQLiteDatabase#query", com.newrelic.agent.android.instrumentation.SQLiteInstrumentation.categoryParams);
        android.database.Cursor v2_1 = p2.query(p3, p4, p5, p6, p7, p8, p9);
        com.newrelic.agent.android.tracing.TraceMachine.exitMethod();
        return v2_1;
    }

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


    public final java.util.List a(int p22)
    {
        this.c();
        long v3_4 = 0;
        if (!this.b) {
            Throwable v2_6 = new java.util.ArrayList();
            if (this.l().getDatabasePath("google_app_measurement_local.db").exists()) {
                Throwable v4_5 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_5) {
                    try {
                        long v15 = this.z();
                    } catch (Throwable v0_10) {
                        Throwable v2_1 = v0_10;
                        long v3_5 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v3_5 != 0) {
                            v3_5.close();
                        }
                        throw v2_1;
                    } catch (Throwable v0_9) {
                        long v3_2 = v0_9;
                        v9_0 = 0;
                        v15 = 0;
                        this.t().y().a("Error reading entries from local database", v3_2);
                        this.b = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v15 == 0) {
                            v6++;
                            v3_4 = 0;
                            v4_5 = 5;
                        } else {
                            v15.close();
                        }
                        v2_6.add(int v13_4);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_1 = v9_0.getLong(0);
                                com.google.android.gms.internal.zzcho v12_0 = v9_0.getInt(1);
                                int v13_0 = v9_0.getBlob(2);
                                if (v12_0 != null) {
                                    if (v12_0 != 1) {
                                        if (v12_0 != 2) {
                                            this.t().y().a("Unknown record type in local database");
                                        } else {
                                            com.google.android.gms.internal.zzcho v12_3 = android.os.Parcel.obtain();
                                            try {
                                                v12_3.unmarshall(v13_0, 0, v13_0.length);
                                                v12_3.setDataPosition(0);
                                                v13_4 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_3));
                                            } catch (Throwable v0_0) {
                                                Throwable v4_4 = v0_0;
                                                v12_3.recycle();
                                                throw v4_4;
                                            }
                                            v12_3.recycle();
                                            if (v13_4 != 0) {
                                            }
                                        }
                                    } else {
                                        com.google.android.gms.internal.zzcho v12_4 = android.os.Parcel.obtain();
                                        try {
                                            v12_4.unmarshall(v13_0, 0, v13_0.length);
                                            v12_4.setDataPosition(0);
                                            v13_4 = ((com.google.android.gms.internal.zzcln) com.google.android.gms.internal.zzcln.CREATOR.createFromParcel(v12_4));
                                        } catch (Throwable v0_1) {
                                            Throwable v4_6 = v0_1;
                                            v12_4.recycle();
                                            throw v4_6;
                                        }
                                        v12_4.recycle();
                                        if (v13_4 != 0) {
                                        }
                                    }
                                } else {
                                    com.google.android.gms.internal.zzcho v12_5 = android.os.Parcel.obtain();
                                    try {
                                        v12_5.unmarshall(v13_0, 0, v13_0.length);
                                        v12_5.setDataPosition(0);
                                        v13_4 = ((com.google.android.gms.internal.zzcha) com.google.android.gms.internal.zzcha.CREATOR.createFromParcel(v12_5));
                                    } catch (Throwable v0_2) {
                                        Throwable v4_7 = v0_2;
                                        v12_5.recycle();
                                        throw v4_7;
                                    }
                                    v12_5.recycle();
                                    if (v13_4 != 0) {
                                    }
                                }
                            }
                        } catch (Throwable v0_5) {
                            v2_1 = v0_5;
                        } catch (Throwable v0_4) {
                            v15 = v3_5;
                            v3_2 = v0_4;
                        } catch (Throwable v0_3) {
                            v15 = v3_5;
                            long v3_0 = v0_3;
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v15 != 0) {
                                    if (v15.inTransaction()) {
                                        v15.endTransaction();
                                    }
                                }
                                this.t().y().a("Error reading entries from local database", v3_0);
                                this.b = 1;
                            } else {
                                if (!(v3_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v15 == 0) {
                            }
                        }
                        int v13_16 = new String[1];
                        v13_16[0] = Long.toString(v10_1);
                        if (v3_5.delete("messages", "rowid <= ?", v13_16) < v2_6.size()) {
                            this.t().y().a("Fewer entries removed from local database than expected");
                        }
                        v3_5.setTransactionSuccessful();
                        v3_5.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v3_5 != 0) {
                            v3_5.close();
                        }
                        return v2_6;
                    } catch (Throwable v0_8) {
                        v3_0 = v0_8;
                        v9_0 = 0;
                        v15 = 0;
                    } catch (Throwable v0_6) {
                        v2_1 = v0_6;
                        v3_5 = v15;
                    }
                    if (v15 != 0) {
                        try {
                            v15.beginTransaction();
                            String[] v11 = new String[3];
                            v11[0] = "rowid";
                            v11[1] = "type";
                            v11[2] = "entry";
                            int v9_6 = v15;
                            v3_5 = v15;
                            v15 = 0;
                            try {
                                v9_0 = v9_6.query("messages", v11, 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_1 = -1;
                            } catch (Throwable v0_11) {
                                v2_1 = v0_11;
                            } catch (Throwable v0_4) {
                                v15 = v3_5;
                                v9_0 = 0;
                            } catch (Throwable v0_3) {
                                v15 = v3_5;
                                v9_0 = 0;
                            }
                        } catch (Throwable v0_11) {
                            v3_5 = 0;
                        } catch (Throwable v0_4) {
                        } catch (Throwable v0_3) {
                        }
                    } else {
                        try {
                            this.b = 1;
                        } catch (Throwable v0_7) {
                            v2_1 = v0_7;
                            v9_0 = v3_4;
                        } catch (Throwable v0_4) {
                            v9_0 = v3_4;
                        } catch (Throwable v0_3) {
                            v9_0 = v3_4;
                        }
                        if (v15 != 0) {
                            v15.close();
                        }
                        return v3_4;
                    }
                }
                this.t().A().a("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v2_6;
            }
        } else {
            return 0;
        }
    }

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


    final java.util.Map g(String p13, String p14)
    {
        this.Q();
        this.c();
        com.google.android.gms.common.internal.zzbq.a(p13);
        com.google.android.gms.common.internal.zzbq.a(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_6 = this.A();
        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.t().y().a("Database error querying filters. appId", com.google.android.gms.internal.zzchm.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.internal.zzfjj.a(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcho v2_2 = new com.google.android.gms.internal.zzclv();
                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.internal.zzcgo.f() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map f(String p13, String p14)
    {
        this.Q();
        this.c();
        com.google.android.gms.common.internal.zzbq.a(p13);
        com.google.android.gms.common.internal.zzbq.a(p14);
        java.util.Map v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_6 = this.A();
        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.t().y().a("Database error querying filters. appId", com.google.android.gms.internal.zzchm.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.internal.zzfjj.a(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcho v2_2 = new com.google.android.gms.internal.zzcls();
                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.internal.zzcgo.e() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map e(String p12)
    {
        this.Q();
        this.c();
        com.google.android.gms.common.internal.zzbq.a(p12);
        int v0_1 = this.A();
        try {
            boolean v2_7 = new String[2];
            v2_7[0] = "audience_id";
            v2_7[1] = "current_results";
            com.google.android.gms.internal.zzcho 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.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    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.internal.zzfjj.a(v3_2, 0, v3_2.length);
                        com.google.android.gms.internal.zzcho v4_3 = new com.google.android.gms.internal.zzcmf();
                        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.util.ArrayMap v1_0) {
                this.t().y().a("Database error querying filter results. appId", com.google.android.gms.internal.zzchm.a(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

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


    public final byte[] d(String p12)
    {
        com.google.android.gms.common.internal.zzbq.a(p12);
        this.c();
        this.Q();
        try {
            int v1_1 = this.A();
            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.t().y().a("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.zzchm.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.t().y().a("Error querying remote config. appId", com.google.android.gms.internal.zzchm.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.internal.zzcgo.d() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgl d(String p34, String p35)
    {
        com.google.android.gms.common.internal.zzbq.a(p34);
        com.google.android.gms.common.internal.zzbq.a(p35);
        this.c();
        this.Q();
        try {
            int v9_1 = this.A();
            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.internal.zzcha v25_1 = ((com.google.android.gms.internal.zzcha) this.p().a(v9_0.getBlob(5), com.google.android.gms.internal.zzcha.CREATOR));
                    long v21 = v9_0.getLong(6);
                    com.google.android.gms.internal.zzcha v28_1 = ((com.google.android.gms.internal.zzcha) this.p().a(v9_0.getBlob(7), com.google.android.gms.internal.zzcha.CREATOR));
                    String v3_1 = v9_0.getLong(8);
                    long v29 = v9_0.getLong(9);
                    com.google.android.gms.internal.zzcha v31_1 = ((com.google.android.gms.internal.zzcha) this.p().a(v9_0.getBlob(10), com.google.android.gms.internal.zzcha.CREATOR));
                    com.google.android.gms.internal.zzcln v20 = new com.google.android.gms.internal.zzcln;
                    v20(p35, v3_1, v11_1, v19);
                    com.google.android.gms.internal.zzcgl v1_8 = new com.google.android.gms.internal.zzcgl;
                    v1_8(p34, v19, v20, v21, v23, v24, v25_1, v26, v28_1, v29, v31_1);
                    if (v9_0.moveToNext()) {
                        this.t().y().a("Got multiple records for conditional property, expected one", com.google.android.gms.internal.zzchm.a(p34), this.o().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.internal.zzcgl 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.internal.zzcgl v1_10 = v0_0;
            this.t().y().a("Error querying conditional property", com.google.android.gms.internal.zzchm.a(p34), this.o().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.internal.zzcgo.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzclp c(String p20, String p21)
    {
        com.google.android.gms.common.internal.zzbq.a(p20);
        com.google.android.gms.common.internal.zzbq.a(p21);
        this.c();
        this.Q();
        try {
            int v10_1 = this.A();
            com.google.android.gms.internal.zzclp 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.internal.zzclp v12_1 = new com.google.android.gms.internal.zzclp;
                        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.t().y().a("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.zzchm.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.internal.zzcho 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.internal.zzcho v1_3 = v0_2;
            this.t().y().a("Error querying user property. appId", com.google.android.gms.internal.zzchm.a(p20), this.o().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.internal.zzcgo.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgh b(String p21)
    {
        com.google.android.gms.common.internal.zzbq.a(p21);
        this.c();
        this.Q();
        try {
            Throwable v3_2 = this.A();
            com.google.android.gms.internal.zzcgo v5_2 = new String[24];
            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";
            String v7_7 = new String[1];
            v7_7[0] = p21;
            int v15 = 7;
            Throwable v3_0 = v3_2.query("apps", v5_2, "app_id=?", v7_7, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        com.google.android.gms.internal.zzcho v6_20;
                        com.google.android.gms.internal.zzcgh v4_3 = new com.google.android.gms.internal.zzcgh(this.p, p21);
                        v4_3.a(v3_0.getString(0));
                        v4_3.b(v3_0.getString(1));
                        v4_3.c(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.e(v3_0.getString(6));
                        v4_3.f(v3_0.getString(7));
                        v4_3.d(v3_0.getLong(8));
                        v4_3.e(v3_0.getLong(9));
                    } catch (android.database.sqlite.SQLiteException v0_2) {
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        com.google.android.gms.internal.zzcgh v4_0 = v3_0;
                        Throwable v3_1 = v0_1;
                        try {
                            this.t().y().a("Error querying app. appId", com.google.android.gms.internal.zzchm.a(p21), v3_1);
                        } catch (android.database.sqlite.SQLiteException v0_3) {
                            Throwable v1_1 = v0_3;
                            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_20 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_20 = 0;
                        } else {
                        }
                    }
                    com.google.android.gms.internal.zzcho v6_37;
                    v4_3.a(v6_20);
                    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_37 = ((long) v3_0.getInt(17));
                    } else {
                        v6_37 = -2147483648;
                    }
                    com.google.android.gms.internal.zzcho v6_47;
                    v4_3.c(v6_37);
                    v4_3.d(v3_0.getString(18));
                    v4_3.n(v3_0.getLong(19));
                    v4_3.m(v3_0.getLong(20));
                    v4_3.g(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_47 = v3_0.getLong(22);
                    } else {
                        v6_47 = 0;
                    }
                    v4_3.o(v6_47);
                    if (!v3_0.isNull(23)) {
                        if (v3_0.getInt(23) == 0) {
                            v12 = 0;
                        } else {
                        }
                    }
                    v4_3.b(v12);
                    v4_3.a();
                    if (v3_0.moveToNext()) {
                        this.t().y().a("Got multiple records for app, expected one. appId", com.google.android.gms.internal.zzchm.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_2) {
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
            v1_1 = v0_2;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v1_1 = v0_0;
            v3_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_4) {
            v3_1 = v0_4;
            v4_0 = 0;
        }
    }

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


    public final java.util.List a(String p39, String[] p40)
    {
        this.c();
        this.Q();
        Throwable v1_4 = new java.util.ArrayList();
        try {
            com.google.android.gms.internal.zzcho v3_3 = this.A();
            com.google.android.gms.internal.zzcgl 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.internal.zzcho 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.t().y().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.internal.zzcha v27_1 = v3_2.getLong(6);
                int v2_3 = ((com.google.android.gms.internal.zzcha) this.p().a(v3_2.getBlob(7), com.google.android.gms.internal.zzcha.CREATOR));
                long v20_0 = v3_2.getLong(8);
                com.google.android.gms.internal.zzcha v29_1 = ((com.google.android.gms.internal.zzcha) this.p().a(v3_2.getBlob(9), com.google.android.gms.internal.zzcha.CREATOR));
                com.google.android.gms.internal.zzcgl v16_0 = v3_2.getLong(10);
                long v34 = v3_2.getLong(11);
                com.google.android.gms.internal.zzcha v30_1 = ((com.google.android.gms.internal.zzcha) this.p().a(v3_2.getBlob(12), com.google.android.gms.internal.zzcha.CREATOR));
                com.google.android.gms.internal.zzcln v19 = new com.google.android.gms.internal.zzcln;
                int v32 = 6;
                int v36 = 10;
                v19(v6_13, v16_0, v9_2, v11_2);
                com.google.android.gms.internal.zzcgl v5_6 = new com.google.android.gms.internal.zzcgl;
                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.t().y().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.internal.zzcgo.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.zzbq.a(p24);
        this.c();
        this.Q();
        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.internal.zzclp 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.t().y().a("(2)Error querying user properties", com.google.android.gms.internal.zzchm.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.A();
            ark>com.google.android.gms.internal.zzcgoark> 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.internal.zzclp;
                                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.t().y().a("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.zzchm.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.t().y().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.internal.zzcgo.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List a(String p13, int p14, int p15)
    {
        java.util.ArrayList v2_5;
        this.c();
        this.Q();
        if (p14 <= null) {
            v2_5 = 0;
        } else {
            v2_5 = 1;
        }
        java.util.ArrayList v2_0;
        com.google.android.gms.common.internal.zzbq.b(v2_5);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.zzbq.b(v2_0);
        com.google.android.gms.common.internal.zzbq.a(p13);
        java.util.ArrayList v2_1 = 0;
        try {
            int v3_0 = this.A();
            com.google.android.gms.internal.zzcho v5_1 = new String[2];
            v5_1[0] = "rowid";
            v5_1[1] = "data";
            Object v7_0 = new String[1];
            v7_0[0] = p13;
            com.google.android.gms.internal.zzcho v14_1 = v3_0.query("queue", v5_1, "app_id=?", v7_0, 0, 0, "rowid", String.valueOf(p14));
            try {
                if (v14_1.moveToFirst()) {
                    java.util.ArrayList v2_4 = new java.util.ArrayList();
                    int v3_1 = 0;
                    do {
                        android.util.Pair v4_2 = v14_1.getLong(0);
                        int v6_4 = this.p().b(v14_1.getBlob(1));
                        if ((!v2_4.isEmpty()) && ((v6_4.length + v3_1) > p15)) {
                            break;
                        }
                        Object v7_7 = com.google.android.gms.internal.zzfjj.a(v6_4, 0, v6_4.length);
                        com.google.android.gms.internal.zzcme v8_2 = new com.google.android.gms.internal.zzcme();
                        v8_2.a(v7_7);
                        v3_1 += v6_4.length;
                        v2_4.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
                    } while((v14_1.moveToNext()) && (v3_1 <= p15));
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v2_4;
                } else {
                    java.util.List v15_1 = java.util.Collections.emptyList();
                    if (v14_1 != null) {
                        v14_1.close();
                    }
                    return v15_1;
                }
            } catch (Throwable v13_1) {
                if (v14_1 != null) {
                    v14_1.close();
                }
                throw v13_1;
            } catch (java.util.List v15_2) {
                v2_1 = v14_1;
                this.t().y().a("Error querying bundles. appId", com.google.android.gms.internal.zzchm.a(p13), v15_2);
                Throwable v13_3 = java.util.Collections.emptyList();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v13_3;
            }
        } catch (Throwable v13_1) {
            v14_1 = v2_1;
        } catch (java.util.List v15_2) {
        }
    }

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


    public final java.util.List a(String p25)
    {
        com.google.android.gms.common.internal.zzbq.a(p25);
        this.c();
        this.Q();
        Throwable v1_3 = new java.util.ArrayList();
        try {
            int v3_1 = this.A();
            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.internal.zzcgoark> 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.internal.zzclp;
                            v5_1(p25, v18, v19, v20, v22);
                            v1_3.add(v5_1);
                        } else {
                            this.t().y().a("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.zzchm.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.t().y().a("Error querying user properties. appId", com.google.android.gms.internal.zzchm.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.internal.zzcgo.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgw a(String p23, String p24)
    {
        com.google.android.gms.common.internal.zzbq.a(p23);
        com.google.android.gms.common.internal.zzbq.a(p24);
        this.c();
        this.Q();
        try {
            com.google.android.gms.internal.zzcho v1_12 = this.A();
            Object v3_0 = new String[7];
            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_sampled_complex_event_id";
            v3_0[5] = "last_sampling_rate";
            v3_0[6] = "last_exempt_from_sampling";
            String v5_2 = new String[2];
            v5_2[0] = p23;
            v5_2[1] = p24;
            long v8_0 = v1_12.query("events", v3_0, "app_id=? and name=?", v5_2, 0, 0, 0);
            try {
                if (v8_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcho v1_9;
                    long v4_9 = v8_0.getLong(0);
                    long v6_2 = v8_0.getLong(1);
                    long v19 = v8_0.getLong(2);
                    if (!v8_0.isNull(3)) {
                        v1_9 = v8_0.getLong(3);
                    } else {
                        v1_9 = 0;
                    }
                    Long v13_2;
                    if (!v8_0.isNull(4)) {
                        v13_2 = Long.valueOf(v8_0.getLong(4));
                    } else {
                        v13_2 = 0;
                    }
                    Boolean v14_2;
                    if (!v8_0.isNull(5)) {
                        v14_2 = Long.valueOf(v8_0.getLong(5));
                    } else {
                        v14_2 = 0;
                    }
                    Boolean v17_0;
                    if (v8_0.isNull(6)) {
                        v17_0 = 0;
                    } else {
                        try {
                            if (v8_0.getLong(6) == 1) {
                                v9 = 1;
                            }
                        } catch (android.database.sqlite.SQLiteException v0_5) {
                            com.google.android.gms.internal.zzcho v1_6 = v0_5;
                            android.database.Cursor v15_1 = v8_0;
                            if (v15_1 != null) {
                                v15_1.close();
                            }
                            throw v1_6;
                        } catch (android.database.sqlite.SQLiteException v0_4) {
                            com.google.android.gms.internal.zzcho v1_5 = v0_4;
                            v15_1 = v8_0;
                            this.t().y().a("Error querying events. appId", com.google.android.gms.internal.zzchm.a(p23), this.o().a(p24), v1_5);
                            if (v15_1 != null) {
                                v15_1.close();
                            }
                            return 0;
                        }
                        v17_0 = Boolean.valueOf(v9);
                    }
                    com.google.android.gms.internal.zzcgw v18 = new com.google.android.gms.internal.zzcgw;
                    long v10_0 = v8_0;
                    v8_0 = v19;
                    v15_1 = v10_0;
                    try {
                        v18(p23, p24, v4_9, v6_2, v8_0, v1_9, v13_2, v14_2, v17_0);
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                    }
                    if (v15_1.moveToNext()) {
                        this.t().y().a("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.zzchm.a(p23));
                    }
                    if (v15_1 != null) {
                        v15_1.close();
                    }
                    return v18;
                } else {
                    if (v8_0 != 0) {
                        v8_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v15_1 = v8_0;
                v1_6 = v0_1;
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v15_1 = v8_0;
            }
            v1_5 = v0_0;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            v1_6 = v0_3;
            v15_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v1_5 = v0_2;
            v15_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

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


    public final com.google.android.gms.internal.zzcgp a(long p22, String p24, boolean p25, boolean p26, boolean p27, boolean p28, boolean p29)
    {
        com.google.android.gms.common.internal.zzbq.a(p24);
        this.c();
        this.Q();
        String v3_2 = new String[1];
        v3_2[0] = p24;
        com.google.android.gms.internal.zzcgp v5_1 = new com.google.android.gms.internal.zzcgp();
        try {
            android.database.sqlite.SQLiteDatabase v15 = this.A();
            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.t().A().a("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzchm.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.t().y().a("Error updating daily counts. appId", com.google.android.gms.internal.zzchm.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.internal.zzcgo.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean a(com.google.android.gms.internal.zzchm 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.A().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.internal.zzaql.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List c(long p28)
    {
        this.y();
        com.google.android.gms.analytics.zzj.d();
        Throwable v2_1 = this.A();
        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.internal.zzaqf v9_0 = ((Integer) com.google.android.gms.internal.zzarl.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 v23;
                    boolean v4_1 = v2_2.getString(0);
                    String v5_1 = v2_2.getString(1);
                    if (v2_2.getInt(2) == 0) {
                        v23 = 0;
                    } else {
                        v23 = 1;
                    }
                    String v6_3 = ((long) v2_2.getInt(3));
                    java.util.Map vtmp13 = this.g(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.internal.zzaqf v9_5 = new com.google.android.gms.internal.zzaqf;
                            v9_5(0, v4_1, v5_1, v23, 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.internal.zzaql.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.zzbq.b(v1_5);
        com.google.android.gms.analytics.zzj.d();
        this.y();
        int v13_0 = this.A();
        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.internal.zzarq;
                    int v11_1 = v2_9;
                    int v19 = 4;
                    v2_9(this, this.a(v13_1.getString(v9_0)), v13_1.getLong(1), com.google.android.gms.internal.zzasl.c(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.internal.zzaql.d() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List d(long p14)
    {
        com.google.android.gms.analytics.zzj.d();
        this.y();
        if (p14 > 0) {
            long v0_2 = this.A();
            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.tagmanager.zzec.d() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int d()
    {
        String v1_0 = this.a("Error opening database for getNumStoredHits.");
        if (v1_0 != null) {
            String v9 = 0;
            try {
                String[] v3_1 = new String[2];
                v3_1[0] = "hit_id";
                v3_1[1] = "hit_first_send_time";
                String v1_1 = v1_0.query("gtm_hits", v3_1, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    int v2_0 = v1_1.getCount();
                } catch (int v0_1) {
                    v9 = v1_1;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (android.database.sqlite.SQLiteException) {
                    v9 = v1_1;
                    com.google.android.gms.tagmanager.zzdj.b("Error getting num untried hits");
                    if (v9 != null) {
                        v9.close();
                    }
                    return 0;
                }
                if (v1_1 != null) {
                    v1_1.close();
                }
                return v2_0;
            } catch (int v0_1) {
            }
        } else {
            return 0;
        }
    }

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


    private final java.util.List b(int p19)
    {
        int v1_1 = new java.util.ArrayList();
        int v2_3 = this.a("Error opening database for peekHits");
        if (v2_3 != 0) {
            try {
                boolean v6_7 = new String[3];
                int v14 = 0;
                v6_7[0] = "hit_id";
                v6_7[1] = "hit_time";
                v6_7[2] = "hit_first_send_time";
                java.util.ArrayList v11_3 = new Object[1];
                v11_3[0] = "hit_id";
                String v12_3 = v2_3.query("gtm_hits", v6_7, 0, 0, 0, 0, String.format("%s ASC", v11_3), Integer.toString(40));
                try {
                    java.util.ArrayList v11_5 = new java.util.ArrayList();
                    try {
                        if (v12_3.moveToFirst()) {
                            try {
                                do {
                                    int v1_19 = new com.google.android.gms.tagmanager.zzbx;
                                    v1_19(v12_3.getLong(0), v12_3.getLong(1), v12_3.getLong(2));
                                    v11_5.add(v1_19);
                                } while(v12_3.moveToNext());
                            } catch (android.database.sqlite.SQLiteException v0_10) {
                                int v1_16 = v0_10;
                                String v13_3 = v12_3;
                                if (v13_3 != null) {
                                    v13_3.close();
                                }
                                throw v1_16;
                            } catch (android.database.sqlite.SQLiteException v0_8) {
                                int v1_17 = v0_8;
                                v13_3 = v12_3;
                                try {
                                    int v1_22 = String.valueOf(v1_17.getMessage());
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v1_16 = v0_9;
                                }
                                if (v1_22.length() == 0) {
                                    int v1_24 = new String("Error in peekHits fetching hitIds: ");
                                } else {
                                    v1_24 = "Error in peekHits fetching hitIds: ".concat(v1_22);
                                }
                                com.google.android.gms.tagmanager.zzdj.b(v1_24);
                                if (v13_3 != null) {
                                    v13_3.close();
                                }
                                return v11_5;
                            }
                            if (!v12_3.moveToNext()) {
                            }
                        }
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v1_17 = v0_6;
                        v13_3 = v12_3;
                    }
                    if (v12_3 != null) {
                        v12_3.close();
                    }
                    try {
                        boolean v6_0 = new String[2];
                        v6_0[0] = "hit_id";
                        v6_0[1] = "hit_url";
                        int v4_1 = new Object[1];
                        v4_1[0] = "hit_id";
                        int v2_0 = v11_5;
                        java.util.ArrayList v11_0 = String.format("%s ASC", v4_1);
                        String v16_0 = v12_3;
                        String v12_0 = Integer.toString(40);
                        try {
                            v12_0 = v2_3.query("gtm_hits", v6_0, 0, 0, 0, 0, v11_0, v12_0);
                            try {
                                if (v12_0.moveToFirst()) {
                                    int v1_9 = 0;
                                    do {
                                        if (((android.database.sqlite.SQLiteCursor) v12_0).getWindow().getNumRows() <= 0) {
                                            com.google.android.gms.tagmanager.zzbx v5_1 = new Object[1];
                                            v5_1[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbx) v2_0.get(v1_9)).a());
                                            com.google.android.gms.tagmanager.zzdj.b(String.format("HitString for hitId %d too large.  Hit will be deleted.", v5_1));
                                        } else {
                                            ((com.google.android.gms.tagmanager.zzbx) v2_0.get(v1_9)).a(v12_0.getString(1));
                                        }
                                        v1_9++;
                                    } while(v12_0.moveToNext());
                                }
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                int v1_6 = v0_0;
                                int v1_11 = String.valueOf(v1_6.getMessage());
                                if (v1_11.length() == 0) {
                                    int v1_13 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v1_13 = "Error in peekHits fetching hit url: ".concat(v1_11);
                                }
                                com.google.android.gms.tagmanager.zzdj.b(v1_13);
                                int v1_15 = new java.util.ArrayList();
                                java.util.ArrayList v11_2 = ((java.util.ArrayList) v2_0);
                                int v2_1 = v11_2.size();
                                int v4_15 = 0;
                            }
                            if (v12_0 != null) {
                                v12_0.close();
                            }
                            return v2_0;
                        } catch (android.database.sqlite.SQLiteException v0_3) {
                            int v1_7 = v0_3;
                            v12_0 = v16_0;
                            if (v12_0 != null) {
                                v12_0.close();
                            }
                            throw v1_7;
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v1_6 = v0_2;
                            v12_0 = v16_0;
                        }
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        v1_7 = v0_1;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v2_0 = v11_0;
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                    }
                } catch (android.database.sqlite.SQLiteException v0_7) {
                    v1_16 = v0_7;
                    v13_3 = v12_3;
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v11_5 = v1_1;
                    v13_3 = v12_3;
                    v1_17 = v0_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v1_16 = v0_5;
                v13_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
                v11_5 = v1_1;
                v13_3 = 0;
            }
        } else {
            return v1_1;
        }
    }

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


    private final java.util.List a(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.a("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    int v5_0 = new String[1];
                    v5_0[0] = "hit_id";
                    String[] v4_0 = new Object[1];
                    v4_0[0] = "hit_id";
                    String v15_2 = v2_1.query("gtm_hits", v5_0, 0, 0, 0, 0, String.format("%s ASC", v4_0), Integer.toString(p15));
                    try {
                        if (v15_2.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_2.getLong(0)));
                            } while(v15_2.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_2;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_2;
                        String v15_3 = v1_2;
                        String v15_5 = String.valueOf(v15_3.getMessage());
                        if (v15_5.length() == 0) {
                            String v15_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v15_7 = "Error in peekHits fetching hitIds: ".concat(v15_5);
                        }
                        com.google.android.gms.tagmanager.zzdj.b(v15_7);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_2 == null) {
                        return v0_1;
                    } else {
                        v15_2.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_3) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.b("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

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


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

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


    private final java.util.List a(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.c("Error opening database for peekEntryIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    int v5_0 = new String[1];
                    v5_0[0] = "ID";
                    String[] v4_0 = new Object[1];
                    v4_0[0] = "ID";
                    String v15_2 = v2_1.query("datalayer", v5_0, 0, 0, 0, 0, String.format("%s ASC", v4_0), Integer.toString(p15));
                    try {
                        if (v15_2.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_2.getLong(0)));
                            } while(v15_2.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_2;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_2;
                        String v15_3 = v1_2;
                        String v15_5 = String.valueOf(v15_3.getMessage());
                        if (v15_5.length() == 0) {
                            String v15_7 = new String("Error in peekEntries fetching entryIds: ");
                        } else {
                            v15_7 = "Error in peekEntries fetching entryIds: ".concat(v15_5);
                        }
                        com.google.android.gms.tagmanager.zzdj.b(v15_7);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_2 == null) {
                        return v0_1;
                    } else {
                        v15_2.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_3) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.b("Invalid maxEntries specified. Skipping.");
            return v0_1;
        }
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$6.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected varargs void a(Void[] p13)
    {
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.b)) {
            com.facebook.react.bridge.WritableMap v13_7 = com.facebook.react.bridge.Arguments.a();
            String v6_0 = new String[1];
            v6_0[0] = "key";
            com.facebook.react.bridge.Callback v4_4 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.b).b().query("catalystLocalStorage", v6_0, 0, 0, 0, 0, 0);
            try {
                if (v4_4.moveToFirst()) {
                    do {
                        v13_7.pushString(v4_4.getString(0));
                    } while(v4_4.moveToNext());
                }
            } catch (com.facebook.react.bridge.WritableMap v13_5) {
                v4_4.close();
                throw v13_5;
            } catch (com.facebook.react.bridge.WritableMap v13_2) {
                com.facebook.common.logging.FLog.b("ReactNative", v13_2.getMessage(), v13_2);
                com.facebook.react.bridge.Callback v5_3 = this.a;
                Object[] v0_1 = new Object[2];
                v0_1[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v13_2.getMessage());
                v0_1[1] = 0;
                v5_3.a(v0_1);
                v4_4.close();
                return;
            }
            v4_4.close();
            com.facebook.react.bridge.Callback v4_5 = this.a;
            Object[] v0_2 = new Object[2];
            v0_2[0] = 0;
            v0_2[1] = v13_7;
            v4_5.a(v0_2);
            return;
        } else {
            com.facebook.react.bridge.WritableMap v13_6 = this.a;
            Object[] v0_3 = new Object[2];
            v0_3[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.c(0);
            v0_3[1] = 0;
            v13_6.a(v0_3);
            return;
        }
    }

Method com.facebook.react.modules.storage.AsyncStorageModule$1.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected varargs void a(Void[] p22)
    {
        if (com.facebook.react.modules.storage.AsyncStorageModule.access$000(this.c)) {
            com.facebook.react.bridge.WritableMap v2_8 = new String[2];
            v2_8[0] = "key";
            v2_8[1] = "value";
            int v7_5 = new java.util.HashSet();
            com.facebook.react.bridge.Callback v15_0 = com.facebook.react.bridge.Arguments.a();
            int v14_0 = 0;
            while (v14_0 < this.b.a()) {
                int v13_0 = Math.min((this.b.a() - v14_0), 999);
                int v19 = v13_0;
                int v4_6 = v14_0;
                int v3_5 = v15_0;
                java.util.Iterator v8_8 = com.facebook.react.modules.storage.AsyncStorageModule.access$100(this.c).b().query("catalystLocalStorage", v2_8, com.facebook.react.modules.storage.AsyncLocalStorageUtil.a(v13_0), com.facebook.react.modules.storage.AsyncLocalStorageUtil.a(this.b, v14_0, v13_0), 0, 0, 0);
                v7_5.clear();
                try {
                    if (v8_8.getCount() != this.b.a()) {
                        String v9_2 = v4_6;
                        while (v9_2 < (v4_6 + v19)) {
                            v7_5.add(this.b.d(v9_2));
                            v9_2++;
                        }
                    }
                    if (v8_8.moveToFirst()) {
                        do {
                            String v9_7 = com.facebook.react.bridge.Arguments.a();
                            v9_7.pushString(v8_8.getString(0));
                            v9_7.pushString(v8_8.getString(1));
                            v3_5.a(v9_7);
                            v7_5.remove(v8_8.getString(0));
                        } while(v8_8.moveToNext());
                    }
                    v8_8.close();
                    java.util.Iterator v8_9 = v7_5.iterator();
                    while (v8_9.hasNext()) {
                        String v9_1 = ((String) v8_9.next());
                        com.facebook.react.bridge.WritableArray v10_0 = com.facebook.react.bridge.Arguments.a();
                        v10_0.pushString(v9_1);
                        v10_0.pushNull();
                        v3_5.a(v10_0);
                    }
                    v7_5.clear();
                    v14_0 = (v4_6 + 999);
                    v15_0 = v3_5;
                    int v4 = 0;
                } catch (Exception v0_1) {
                    com.facebook.react.bridge.WritableMap v2_4 = v0_1;
                    v8_8.close();
                    throw v2_4;
                } catch (Exception v0_0) {
                    com.facebook.react.bridge.WritableMap v2_1 = v0_0;
                    com.facebook.common.logging.FLog.b("ReactNative", v2_1.getMessage(), v2_1);
                    int v3_1 = this.a;
                    int v4_2 = new Object[2];
                    v4_2[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.a(0, v2_1.getMessage());
                    v4_2[1] = 0;
                    v3_1.a(v4_2);
                    v8_8.close();
                    return;
                }
            }
            int v3_3 = v15_0;
            com.facebook.react.bridge.WritableMap v2_6 = this.a;
            int v4_4 = new Object[2];
            v4_4[0] = 0;
            v4_4[1] = v3_3;
            v2_6.a(v4_4);
            return;
        } else {
            com.facebook.react.bridge.WritableMap v2_5 = this.a;
            int v3_2 = new Object[2];
            v3_2[0] = com.facebook.react.modules.storage.AsyncStorageErrorUtil.c(0);
            v3_2[1] = 0;
            v2_5.a(v3_2);
            return;
        }
    }

Method com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase.b() calling method android.database.sqlite.SQLiteDatabase.query()


    protected com.facebook.imagepipeline.request.MediaVariations b(String p19, com.facebook.imagepipeline.request.MediaVariations$Builder p20)
    {
        try {
            android.database.SQLException v5_2 = this.c.a();
            try {
                int v9_2 = new String[1];
                v9_2[0] = p19;
                android.database.SQLException v5_0 = v5_2.query("media_variations_index", com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase.b, "media_id = ?", v9_2, 0, 0, 0);
                try {
                    if (v5_0.getCount() != 0) {
                        com.facebook.imagepipeline.request.MediaVariations v6_3 = v5_0.getColumnIndexOrThrow("cache_key");
                        int v7_2 = v5_0.getColumnIndexOrThrow("width");
                        int v8_1 = v5_0.getColumnIndexOrThrow("height");
                        int v9_1 = v5_0.getColumnIndexOrThrow("cache_choice");
                        while (v5_0.moveToNext()) {
                            com.facebook.imagepipeline.request.MediaVariations$Builder v10_4;
                            com.facebook.imagepipeline.request.ImageRequest$CacheChoice v14_1;
                            com.facebook.imagepipeline.request.MediaVariations$Builder v10_2 = v5_0.getString(v9_1);
                            android.net.Uri v11_2 = android.net.Uri.parse(v5_0.getString(v6_3));
                            int v12_1 = v5_0.getInt(v7_2);
                            int v15 = v5_0.getInt(v8_1);
                            if (!android.text.TextUtils.isEmpty(v10_2)) {
                                v14_1 = com.facebook.imagepipeline.request.ImageRequest$CacheChoice.valueOf(v10_2);
                                v10_4 = p20;
                            } else {
                                v10_4 = p20;
                                v14_1 = 0;
                            }
                            v10_4.a(v11_2, v12_1, v15, v14_1);
                        }
                        com.facebook.imagepipeline.request.MediaVariations v6_4 = p20.a();
                        if (v5_0 != null) {
                            v5_0.close();
                        }
                        return v6_4;
                    } else {
                        com.facebook.imagepipeline.request.MediaVariations v6_6 = p20.a();
                        if (v5_0 != null) {
                            v5_0.close();
                        }
                        return v6_6;
                    }
                } catch (Throwable v0_4) {
                    Throwable v1_0 = v0_4;
                    if (v5_0 != null) {
                        v5_0.close();
                    }
                    throw v1_0;
                } catch (Throwable v0_2) {
                    com.facebook.imagepipeline.request.ImageRequest$CacheChoice v14_0 = v5_0;
                    android.database.SQLException v5_1 = v0_2;
                    try {
                        int v8_3 = new Object[1];
                        v8_3[0] = p19;
                        com.facebook.common.logging.FLog.b(com.facebook.imagepipeline.cache.MediaVariationsIndexDatabase.a, v5_1, "Error reading for %s", v8_3);
                        throw v5_1;
                    } catch (Throwable v0_3) {
                        v1_0 = v0_3;
                        v5_0 = v14_0;
                    }
                }
            } catch (Throwable v0_1) {
                v1_0 = v0_1;
                v5_0 = 0;
            } catch (Throwable v0_0) {
                v5_1 = v0_0;
                v14_0 = 0;
            }
        } catch (Throwable v0_5) {
            throw v0_5;
        }
    }

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


    private static boolean a(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdj.b(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

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


    private static boolean a(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdj.b(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

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


    private final boolean a(String p47, long p48)
    {
        this.q().x();
        try {
            com.google.android.gms.internal.zzcgw v3_1 = 0;
            String v2_15 = new ark>com.google.android.gms.internal.zzcimark>$zza(this, 0);
            long v4_40 = this.q();
            int v5_37 = this.J;
            com.google.android.gms.common.internal.zzbq.a(v2_15);
            v4_40.c();
            v4_40.Q();
            com.google.android.gms.internal.zzcmc[] v10_25 = 0;
            try {
                String v21;
                int v22;
                long v15_7 = v4_40.A();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.internal.zzcgw v3_4;
                        if (v5_37 == -1) {
                            v3_4 = new String[1];
                            v3_4[0] = 0;
                        } else {
                            v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_37);
                        }
                        int v12_30;
                        if (v5_37 == -1) {
                            v12_30 = "";
                        } else {
                            v12_30 = " and rowid <= ?";
                        }
                        String v14_15 = new StringBuilder((String.valueOf(v12_30).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v12_30);
                        v14_15.append(" order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v14_15.toString(), v3_4);
                        if (v3_1.moveToFirst()) {
                            Long v13_23 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21 = v13_23;
                            v3_1 = 0;
                            try {
                                String v14_6 = new String[1];
                                v14_6[0] = "metadata";
                                int v12_11 = new String[2];
                                v12_11[0] = v3_1;
                                v12_11[1] = v21;
                                android.database.sqlite.SQLiteDatabase v24 = v15_7;
                                long v15_6 = v15_7.query("raw_events_metadata", v14_6, "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_6.moveToFirst()) {
                                        int v12_14 = v15_6.getBlob(0);
                                        int v12_15 = com.google.android.gms.internal.zzfjj.a(v12_14, 0, v12_14.length);
                                        Long v13_16 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_16.a(v12_15);
                                        } catch (java.io.IOException v0_5) {
                                            boolean v6_0 = v15_6;
                                            v4_40.t().y().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.a(v3_1), v0_5);
                                            if (!v6_0) {
                                                com.google.android.gms.internal.zzcgw v3_8;
                                                if (v2_15.c == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_15.c.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.q().y();
                                                    this.q().z();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.internal.zzcgw v3_9 = v2_15.a;
                                                    long v4_5 = new com.google.android.gms.internal.zzcmb[v2_15.c.size()];
                                                    v3_9.b = v4_5;
                                                    long v4_0 = 0;
                                                    int v5_0 = 0;
                                                    boolean v6_1 = 0;
                                                    while (v4_0 < v2_15.c.size()) {
                                                        if (!this.j().b(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                            com.google.android.gms.internal.zzcgw v7_65 = this.j().c(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b);
                                                            if (v7_65 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_25];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v13_60;
                                                                }
                                                                int v12_58 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a;
                                                                Long v13_62 = v12_58.length;
                                                                String v14_5 = 0;
                                                                long v15_3 = 0;
                                                                int v16_2 = 0;
                                                                while (v14_5 < v13_62) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_24 = v12_58[v14_5];
                                                                    if (!"_c".equals(v10_24.a)) {
                                                                        if ("_r".equals(v10_24.a)) {
                                                                            v10_24.c = Long.valueOf(1);
                                                                            v16_2 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_24.c = Long.valueOf(1);
                                                                        v15_3 = 1;
                                                                    }
                                                                    v14_5++;
                                                                    boolean v11 = 1;
                                                                }
                                                                if ((v15_3 == 0) && (v7_65 != null)) {
                                                                    this.f().E().a("Marking event as conversion", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_70 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_67 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_67.a = "_c";
                                                                    v9_67.c = Long.valueOf(1);
                                                                    v8_70[(v8_70.length - 1)] = v9_67;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_70;
                                                                }
                                                                if (v16_2 == 0) {
                                                                    this.f().E().a("Marking event as real-time", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_5 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_7 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_7.a = "_r";
                                                                    v9_7.c = Long.valueOf(1);
                                                                    v8_5[(v8_5.length - 1)] = v9_7;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_5;
                                                                }
                                                                if (this.q().a(this.L(), v2_15.a.o, 0, 0, 0, 0, 1).e <= ((long) this.c.a(v2_15.a.o))) {
                                                                    v5_0 = 1;
                                                                } else {
                                                                    Object v8_11 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v9_11 = 0;
                                                                    while (v9_11 < v8_11.a.length) {
                                                                        if (!"_r".equals(v8_11.a[v9_11].a)) {
                                                                            v9_11++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_18 = new com.google.android.gms.internal.zzcmc[(v8_11.a.length - 1)];
                                                                            if (v9_11 > null) {
                                                                                System.arraycopy(v8_11.a, 0, v10_18, 0, v9_11);
                                                                            }
                                                                            if (v9_11 < v10_18.length) {
                                                                                System.arraycopy(v8_11.a, (v9_11 + 1), v10_18, v9_11, (v10_18.length - v9_11));
                                                                            }
                                                                            v8_11.a = v10_18;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) && ((v7_65 != null) && (this.q().a(this.L(), v2_15.a.o, 0, 0, 1, 0, 0).c > ((long) this.c.b(v2_15.a.o, com.google.android.gms.internal.zzchc.p))))) {
                                                                    this.f().A().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                    com.google.android.gms.internal.zzcgw v7_7 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    Object v8_18 = v7_7.a;
                                                                    com.google.android.gms.internal.zzcmc[] v10_22 = 0;
                                                                    boolean v11_13 = 0;
                                                                    int v12_6 = 0;
                                                                    while (v10_22 < v8_18.length) {
                                                                        Long v13_5 = v8_18[v10_22];
                                                                        if (!"_c".equals(v13_5.a)) {
                                                                            if ("_err".equals(v13_5.a)) {
                                                                                v11_13 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_6 = v13_5;
                                                                        }
                                                                        v10_22++;
                                                                    }
                                                                    if ((!v11_13) || (v12_6 == 0)) {
                                                                        if (v12_6 == 0) {
                                                                            this.f().y().a("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                        } else {
                                                                            v12_6.a = "_err";
                                                                            v12_6.c = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Object v8_20 = v7_7.a;
                                                                        com.google.android.gms.internal.zzcmc[] v10_23 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_23[0] = v12_6;
                                                                        v7_7.a = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.a(v8_20, v10_23));
                                                                    }
                                                                }
                                                            } else {
                                                                this.o();
                                                                if (com.google.android.gms.internal.zzclq.n(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                                }
                                                            }
                                                            Object v8_23 = (v6_1 + 1);
                                                            v3_9.b[v6_1] = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                            v6_1 = v8_23;
                                                        } else {
                                                            com.google.android.gms.internal.zzcgw v7_20;
                                                            this.f().A().a("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o), this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                            if (this.o().l(v2_15.a.o)) {
                                                                v7_20 = 1;
                                                            } else {
                                                                if (!this.o().m(v2_15.a.o)) {
                                                                    v7_20 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_20 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b))) {
                                                                this.o().a(v2_15.a.o, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_25 = 0;
                                                    }
                                                    if (v6_1 < v2_15.c.size()) {
                                                        v3_9.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.b, v6_1));
                                                    }
                                                    int v12_31;
                                                    String v2_6;
                                                    int v42_0;
                                                    long v43_0;
                                                    v3_9.A = this.a(v2_15.a.o, v2_15.a.c, v3_9.b);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.b.b()).booleanValue()) || (!"1".equals(this.c.q().a(v2_15.a.o, "measurement.event_sampling_enabled")))) {
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                    } else {
                                                        long v4_23 = new java.util.HashMap();
                                                        boolean v6_25 = new com.google.android.gms.internal.zzcmb[v3_9.b.length];
                                                        com.google.android.gms.internal.zzcgw v7_38 = this.o().z();
                                                        Object v8_42 = v3_9.b;
                                                        com.google.android.gms.internal.zzcgw v9_43 = v8_42.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_26 = 0;
                                                        boolean v11_18 = 0;
                                                        while (v10_26 < v9_43) {
                                                            Object v8_49;
                                                            int v42_1;
                                                            Object v8_54;
                                                            long v41;
                                                            long v43_1;
                                                            com.google.android.gms.internal.zzcmc[] v25;
                                                            int v26;
                                                            android.database.sqlite.SQLiteDatabase v44;
                                                            int v12_35 = v8_42[v10_26];
                                                            if (!v12_35.b.equals("_ep")) {
                                                                Object v8_47;
                                                                v25 = v8_42;
                                                                v26 = v9_43;
                                                                if (ark>com.google.android.gms.internal.zzcimark>.a(v12_35, "_dbg", Long.valueOf(1))) {
                                                                    v8_47 = 1;
                                                                } else {
                                                                    v8_47 = this.j().d(v2_15.a.o, v12_35.b);
                                                                }
                                                                if (v8_47 > null) {
                                                                    com.google.android.gms.internal.zzcgw v9_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_35.b));
                                                                    if (v9_51 == null) {
                                                                        v9_51 = this.q().a(v2_15.a.o, v12_35.b);
                                                                        if (v9_51 == null) {
                                                                            this.f().A().a("Event being bundled has no eventAggregate. appId, eventName", v2_15.a.o, v12_35.b);
                                                                            v9_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v9_51(v2_15.a.o, v12_35.b, 1, 1, v12_35.c.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_21;
                                                                    this.o();
                                                                    Long v13_35 = ((Long) com.google.android.gms.internal.zzclq.a(v12_35, "_eid"));
                                                                    if (v13_35 == null) {
                                                                        v14_21 = 0;
                                                                    } else {
                                                                        v14_21 = 1;
                                                                    }
                                                                    String v14_22 = Boolean.valueOf(v14_21);
                                                                    if (v8_47 != 1) {
                                                                        if (v7_38.nextInt(v8_47) != 0) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            Object v45 = v4_23;
                                                                            if (Math.abs((v12_35.c.longValue() - v9_51.f)) < 86400000) {
                                                                                v8_49 = v45;
                                                                                if (!v14_22.booleanValue()) {
                                                                                } else {
                                                                                    v8_49.put(v12_35.b, v9_51.a(v13_35, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.o();
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                                this.o();
                                                                                com.google.android.gms.internal.zzcgw v7_53 = ((long) v8_47);
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_53));
                                                                                String v2_24 = (v11_18 + 1);
                                                                                v6_25[v11_18] = v12_35;
                                                                                if (v14_22.booleanValue()) {
                                                                                    v9_51 = v9_51.a(0, Long.valueOf(v7_53), Boolean.valueOf(1));
                                                                                }
                                                                                v8_49 = v45;
                                                                                v8_49.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                                v11_18 = v2_24;
                                                                            }
                                                                        } else {
                                                                            this.o();
                                                                            v41 = v7_38;
                                                                            com.google.android.gms.internal.zzcgw v7_59 = ((long) v8_47);
                                                                            v42_1 = v5_0;
                                                                            v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_59));
                                                                            int v5_36 = (v11_18 + 1);
                                                                            v6_25[v11_18] = v12_35;
                                                                            if (v14_22.booleanValue()) {
                                                                                v9_51 = v9_51.a(0, Long.valueOf(v7_59), 0);
                                                                            }
                                                                            v4_23.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v8_49 = v4_23;
                                                                            v11_18 = v5_36;
                                                                        }
                                                                    } else {
                                                                        v8_54 = (v11_18 + 1);
                                                                        v6_25[v11_18] = v12_35;
                                                                        if ((!v14_22.booleanValue()) || ((v9_51.g == null) && ((v9_51.h == null) && (v9_51.i == null)))) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            v11_18 = v8_54;
                                                                            v8_49 = v4_23;
                                                                        } else {
                                                                            v4_23.put(v12_35.b, v9_51.a(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.f().A().a("Sample rate must be positive. event, rate", v12_35.b, Integer.valueOf(v8_47));
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            } else {
                                                                this.o();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.a(v12_35, "_en"));
                                                                String v14_25 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_25 == null) {
                                                                    v14_25 = this.q().a(v2_15.a.o, v13_46);
                                                                    v4_23.put(v13_46, v14_25);
                                                                }
                                                                if (v14_25.g != null) {
                                                                    v25 = v8_42;
                                                                    v26 = v9_43;
                                                                    v43_1 = v2_15;
                                                                    v44 = v3_9;
                                                                    v8_49 = v4_23;
                                                                    v42_1 = v5_0;
                                                                    v41 = v7_38;
                                                                } else {
                                                                    if (v14_25.h.longValue() <= 1) {
                                                                        v25 = v8_42;
                                                                    } else {
                                                                        this.o();
                                                                        v25 = v8_42;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", v14_25.h);
                                                                    }
                                                                    if ((v14_25.i == null) || (!v14_25.i.booleanValue())) {
                                                                        v26 = v9_43;
                                                                    } else {
                                                                        this.o();
                                                                        v26 = v9_43;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            }
                                                            v10_26++;
                                                            v4_23 = v8_49;
                                                            v8_42 = v25;
                                                            v9_43 = v26;
                                                            v7_38 = v41;
                                                            v5_0 = v42_1;
                                                            v2_15 = v43_1;
                                                            v3_9 = v44;
                                                        }
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        Object v8_43 = v4_23;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                        if (v11_18 < v2_6.b.length) {
                                                            v2_6.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v6_25, v11_18));
                                                        }
                                                        com.google.android.gms.internal.zzcgw v3_15 = v8_43.entrySet().iterator();
                                                        while (v3_15.hasNext()) {
                                                            this.q().a(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v3_15.next()).getValue()));
                                                        }
                                                    }
                                                    v2_6.e = Long.valueOf(nan);
                                                    v2_6.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcgw v3_20 = 0;
                                                    while (v3_20 < v2_6.b.length) {
                                                        long v4_31 = v2_6.b[v3_20];
                                                        if (v4_31.c.longValue() < v2_6.e.longValue()) {
                                                            v2_6.e = v4_31.c;
                                                        }
                                                        if (v4_31.c.longValue() > v2_6.f.longValue()) {
                                                            v2_6.f = v4_31.c;
                                                        }
                                                        v3_20++;
                                                    }
                                                    com.google.android.gms.internal.zzcgw v3_21 = v43_0;
                                                    long v4_28 = v3_21.a.o;
                                                    int v5_10 = this.q().b(v4_28);
                                                    if (v5_10 != 0) {
                                                        if (v2_6.b.length > 0) {
                                                            com.google.android.gms.internal.zzcmc[] v10_28;
                                                            boolean v6_28 = v5_10.h();
                                                            if (v6_28 == 0) {
                                                                v10_28 = v12_31;
                                                            } else {
                                                                v10_28 = Long.valueOf(v6_28);
                                                            }
                                                            v2_6.h = v10_28;
                                                            com.google.android.gms.internal.zzcmc[] v10_29 = v5_10.g();
                                                            if (v10_29 == 0) {
                                                                v10_29 = v6_28;
                                                            }
                                                            if (v10_29 != 0) {
                                                                v12_31 = Long.valueOf(v10_29);
                                                            }
                                                            v2_6.g = v12_31;
                                                            v5_10.r();
                                                            v2_6.w = Integer.valueOf(((int) v5_10.o()));
                                                            v5_10.a(v2_6.e.longValue());
                                                            v5_10.b(v2_6.f.longValue());
                                                            v2_6.x = v5_10.z();
                                                            this.q().a(v5_10);
                                                        }
                                                    } else {
                                                        this.f().y().a("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                    }
                                                    if (v2_6.b.length > 0) {
                                                        int v5_17;
                                                        int v5_16 = this.j().a(v3_21.a.o);
                                                        if (v5_16 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_21.a.y)) {
                                                                this.f().A().a("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                            } else {
                                                                v5_17 = Long.valueOf(-1);
                                                                v2_6.E = v5_17;
                                                            }
                                                        } else {
                                                            if (v5_16.a != null) {
                                                                v5_17 = v5_16.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.q().a(v2_6, v42_0);
                                                    }
                                                    this.q().a(v3_21.b);
                                                    String v2_9 = this.q();
                                                    com.google.android.gms.internal.zzcgw v3_23 = v2_9.A();
                                                    try {
                                                        boolean v6_46 = new String[2];
                                                        v6_46[0] = v4_28;
                                                        v6_46[1] = v4_28;
                                                        v3_23.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_46);
                                                    } catch (java.io.IOException v0_10) {
                                                        v2_9.t().y().a("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.a(v4_28), v0_10);
                                                    }
                                                    this.q().y();
                                                    this.q().z();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_1) {
                                        }
                                        if (v15_6.moveToNext()) {
                                            v4_40.t().A().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        }
                                        int v5_3;
                                        int v16_6;
                                        v15_6.close();
                                        v2_15.a(v13_16);
                                        if (v5_37 == -1) {
                                            v5_3 = "app_id = ? and metadata_fingerprint = ?";
                                            com.google.android.gms.internal.zzcgw v9_35 = new String[2];
                                            v9_35[0] = v3_1;
                                            v9_35[1] = v21;
                                            v16_6 = v9_35;
                                        } else {
                                            int v12_19 = new String[3];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21;
                                            v12_19[2] = String.valueOf(v5_37);
                                            v5_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v12_19;
                                        }
                                        boolean v6_5 = new String[4];
                                        v6_5[0] = "rowid";
                                        v6_5[1] = "name";
                                        v6_5[2] = "timestamp";
                                        v6_5[3] = "data";
                                        v6_0 = v15_6;
                                        int v5_5 = v24.query("raw_events", v6_5, v5_3, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_5.moveToFirst()) {
                                                do {
                                                    int v12_23 = v5_5.getLong(0);
                                                    boolean v6_7 = v5_5.getBlob(3);
                                                    boolean v6_8 = com.google.android.gms.internal.zzfjj.a(v6_7, 0, v6_7.length);
                                                    String v14_13 = new com.google.android.gms.internal.zzcmb();
                                                    v14_13.a(v6_8);
                                                    v14_13.b = v5_5.getString(1);
                                                    v14_13.c = Long.valueOf(v5_5.getLong(2));
                                                    if (v2_15.a(v12_23, v14_13)) {
                                                    } else {
                                                        if (v5_5 == 0) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_5.moveToNext());
                                                if (v5_5 == 0) {
                                                }
                                            } else {
                                                v4_40.t().A().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                                if (v5_5 == 0) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            String v2_0 = v0_8;
                                            v6_0 = v5_5;
                                            if (v6_0) {
                                                v6_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_1) {
                                            int v12_0 = v3_1;
                                            v6_0 = v5_5;
                                            com.google.android.gms.internal.zzcgw v3_0 = v0_1;
                                            v4_40.t().y().a("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.a(v12_0), v3_0);
                                            if (!v6_0) {
                                            }
                                        }
                                        v5_5.close();
                                    } else {
                                        v4_40.t().y().a("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        if (v15_6 == 0) {
                                        } else {
                                            v15_6.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v6_0 = v15_6;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_1) {
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_1) {
                                    v12_0 = v3_1;
                                    v6_0 = v15_6;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_1) {
                                v12_0 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_37;
                            if (v5_37 == -1) {
                                v12_37 = new String[1];
                                v12_37[0] = String.valueOf(p48);
                            } else {
                                v12_37 = new String[2];
                                v12_37[0] = String.valueOf(v5_37);
                                v12_37[1] = String.valueOf(p48);
                            }
                        } catch (java.io.IOException v0_1) {
                            v6_0 = 0;
                            v12_0 = 0;
                        }
                        Long v13_42;
                        if (v5_37 == -1) {
                            v13_42 = "";
                        } else {
                            v13_42 = "rowid <= ? and ";
                        }
                        com.google.android.gms.internal.zzcgw v3_32 = new StringBuilder((String.valueOf(v13_42).length() + 148));
                        v3_32.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_32.append(v13_42);
                        v3_32.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v3_32.toString(), v12_37);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                Long v13_4 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_0;
                                v21 = v13_4;
                            } catch (java.io.IOException v0_1) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_2) {
                    v2_0 = v0_2;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_1) {
                    v6_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_0) {
                v2_0 = v0_0;
                v6_0 = 0;
            } catch (java.io.IOException v0_11) {
                v3_0 = v0_11;
                v6_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_3) {
            String v2_1 = v0_3;
            this.q().z();
            throw v2_1;
        }
    }

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


    private final boolean a(String p47, long p48)
    {
        this.q().x();
        try {
            com.google.android.gms.internal.zzcgw v3_1 = 0;
            String v2_15 = new ark>com.google.android.gms.internal.zzcimark>$zza(this, 0);
            long v4_40 = this.q();
            int v5_37 = this.J;
            com.google.android.gms.common.internal.zzbq.a(v2_15);
            v4_40.c();
            v4_40.Q();
            com.google.android.gms.internal.zzcmc[] v10_25 = 0;
            try {
                String v21;
                int v22;
                long v15_7 = v4_40.A();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        com.google.android.gms.internal.zzcgw v3_4;
                        if (v5_37 == -1) {
                            v3_4 = new String[1];
                            v3_4[0] = 0;
                        } else {
                            v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_37);
                        }
                        int v12_30;
                        if (v5_37 == -1) {
                            v12_30 = "";
                        } else {
                            v12_30 = " and rowid <= ?";
                        }
                        String v14_15 = new StringBuilder((String.valueOf(v12_30).length() + 84));
                        v14_15.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_15.append(v12_30);
                        v14_15.append(" order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v14_15.toString(), v3_4);
                        if (v3_1.moveToFirst()) {
                            Long v13_23 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21 = v13_23;
                            v3_1 = 0;
                            try {
                                String v14_6 = new String[1];
                                v14_6[0] = "metadata";
                                int v12_11 = new String[2];
                                v12_11[0] = v3_1;
                                v12_11[1] = v21;
                                android.database.sqlite.SQLiteDatabase v24 = v15_7;
                                long v15_6 = v15_7.query("raw_events_metadata", v14_6, "app_id = ? and metadata_fingerprint = ?", v12_11, 0, 0, "rowid", "2");
                                try {
                                    if (v15_6.moveToFirst()) {
                                        int v12_14 = v15_6.getBlob(0);
                                        int v12_15 = com.google.android.gms.internal.zzfjj.a(v12_14, 0, v12_14.length);
                                        Long v13_16 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_16.a(v12_15);
                                        } catch (java.io.IOException v0_5) {
                                            boolean v6_0 = v15_6;
                                            v4_40.t().y().a("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.a(v3_1), v0_5);
                                            if (!v6_0) {
                                                com.google.android.gms.internal.zzcgw v3_8;
                                                if (v2_15.c == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_15.c.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.q().y();
                                                    this.q().z();
                                                    return 0;
                                                } else {
                                                    com.google.android.gms.internal.zzcgw v3_9 = v2_15.a;
                                                    long v4_5 = new com.google.android.gms.internal.zzcmb[v2_15.c.size()];
                                                    v3_9.b = v4_5;
                                                    long v4_0 = 0;
                                                    int v5_0 = 0;
                                                    boolean v6_1 = 0;
                                                    while (v4_0 < v2_15.c.size()) {
                                                        if (!this.j().b(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                            com.google.android.gms.internal.zzcgw v7_65 = this.j().c(v2_15.a.o, ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b);
                                                            if (v7_65 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_25];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v13_60;
                                                                }
                                                                int v12_58 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a;
                                                                Long v13_62 = v12_58.length;
                                                                String v14_5 = 0;
                                                                long v15_3 = 0;
                                                                int v16_2 = 0;
                                                                while (v14_5 < v13_62) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_24 = v12_58[v14_5];
                                                                    if (!"_c".equals(v10_24.a)) {
                                                                        if ("_r".equals(v10_24.a)) {
                                                                            v10_24.c = Long.valueOf(1);
                                                                            v16_2 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_24.c = Long.valueOf(1);
                                                                        v15_3 = 1;
                                                                    }
                                                                    v14_5++;
                                                                    boolean v11 = 1;
                                                                }
                                                                if ((v15_3 == 0) && (v7_65 != null)) {
                                                                    this.f().E().a("Marking event as conversion", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_70 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_67 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_67.a = "_c";
                                                                    v9_67.c = Long.valueOf(1);
                                                                    v8_70[(v8_70.length - 1)] = v9_67;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_70;
                                                                }
                                                                if (v16_2 == 0) {
                                                                    this.f().E().a("Marking event as real-time", this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                                    Object v8_5 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a, (((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a.length + 1)));
                                                                    com.google.android.gms.internal.zzcgw v9_7 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_7.a = "_r";
                                                                    v9_7.c = Long.valueOf(1);
                                                                    v8_5[(v8_5.length - 1)] = v9_7;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).a = v8_5;
                                                                }
                                                                if (this.q().a(this.L(), v2_15.a.o, 0, 0, 0, 0, 1).e <= ((long) this.c.a(v2_15.a.o))) {
                                                                    v5_0 = 1;
                                                                } else {
                                                                    Object v8_11 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v9_11 = 0;
                                                                    while (v9_11 < v8_11.a.length) {
                                                                        if (!"_r".equals(v8_11.a[v9_11].a)) {
                                                                            v9_11++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_18 = new com.google.android.gms.internal.zzcmc[(v8_11.a.length - 1)];
                                                                            if (v9_11 > null) {
                                                                                System.arraycopy(v8_11.a, 0, v10_18, 0, v9_11);
                                                                            }
                                                                            if (v9_11 < v10_18.length) {
                                                                                System.arraycopy(v8_11.a, (v9_11 + 1), v10_18, v9_11, (v10_18.length - v9_11));
                                                                            }
                                                                            v8_11.a = v10_18;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) && ((v7_65 != null) && (this.q().a(this.L(), v2_15.a.o, 0, 0, 1, 0, 0).c > ((long) this.c.b(v2_15.a.o, com.google.android.gms.internal.zzchc.p))))) {
                                                                    this.f().A().a("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                    com.google.android.gms.internal.zzcgw v7_7 = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                                    Object v8_18 = v7_7.a;
                                                                    com.google.android.gms.internal.zzcmc[] v10_22 = 0;
                                                                    boolean v11_13 = 0;
                                                                    int v12_6 = 0;
                                                                    while (v10_22 < v8_18.length) {
                                                                        Long v13_5 = v8_18[v10_22];
                                                                        if (!"_c".equals(v13_5.a)) {
                                                                            if ("_err".equals(v13_5.a)) {
                                                                                v11_13 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_6 = v13_5;
                                                                        }
                                                                        v10_22++;
                                                                    }
                                                                    if ((!v11_13) || (v12_6 == 0)) {
                                                                        if (v12_6 == 0) {
                                                                            this.f().y().a("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o));
                                                                        } else {
                                                                            v12_6.a = "_err";
                                                                            v12_6.c = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        Object v8_20 = v7_7.a;
                                                                        com.google.android.gms.internal.zzcmc[] v10_23 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_23[0] = v12_6;
                                                                        v7_7.a = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.a(v8_20, v10_23));
                                                                    }
                                                                }
                                                            } else {
                                                                this.o();
                                                                if (com.google.android.gms.internal.zzclq.n(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b)) {
                                                                }
                                                            }
                                                            Object v8_23 = (v6_1 + 1);
                                                            v3_9.b[v6_1] = ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0));
                                                            v6_1 = v8_23;
                                                        } else {
                                                            com.google.android.gms.internal.zzcgw v7_20;
                                                            this.f().A().a("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.a(v2_15.a.o), this.p().a(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b));
                                                            if (this.o().l(v2_15.a.o)) {
                                                                v7_20 = 1;
                                                            } else {
                                                                if (!this.o().m(v2_15.a.o)) {
                                                                    v7_20 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_20 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b))) {
                                                                this.o().a(v2_15.a.o, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_15.c.get(v4_0)).b, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_25 = 0;
                                                    }
                                                    if (v6_1 < v2_15.c.size()) {
                                                        v3_9.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.b, v6_1));
                                                    }
                                                    int v42_0;
                                                    long v43_0;
                                                    String v2_6;
                                                    int v12_31;
                                                    v3_9.A = this.a(v2_15.a.o, v2_15.a.c, v3_9.b);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.b.b()).booleanValue()) || (!"1".equals(this.c.q().a(v2_15.a.o, "measurement.event_sampling_enabled")))) {
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                    } else {
                                                        long v4_23 = new java.util.HashMap();
                                                        boolean v6_25 = new com.google.android.gms.internal.zzcmb[v3_9.b.length];
                                                        com.google.android.gms.internal.zzcgw v7_38 = this.o().z();
                                                        Object v8_42 = v3_9.b;
                                                        com.google.android.gms.internal.zzcgw v9_43 = v8_42.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_26 = 0;
                                                        boolean v11_18 = 0;
                                                        while (v10_26 < v9_43) {
                                                            Object v8_49;
                                                            Object v8_54;
                                                            int v42_1;
                                                            int v26;
                                                            long v41;
                                                            long v43_1;
                                                            com.google.android.gms.internal.zzcmc[] v25;
                                                            android.database.sqlite.SQLiteDatabase v44;
                                                            int v12_35 = v8_42[v10_26];
                                                            if (!v12_35.b.equals("_ep")) {
                                                                Object v8_47;
                                                                v25 = v8_42;
                                                                v26 = v9_43;
                                                                if (ark>com.google.android.gms.internal.zzcimark>.a(v12_35, "_dbg", Long.valueOf(1))) {
                                                                    v8_47 = 1;
                                                                } else {
                                                                    v8_47 = this.j().d(v2_15.a.o, v12_35.b);
                                                                }
                                                                if (v8_47 > null) {
                                                                    com.google.android.gms.internal.zzcgw v9_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_35.b));
                                                                    if (v9_51 == null) {
                                                                        v9_51 = this.q().a(v2_15.a.o, v12_35.b);
                                                                        if (v9_51 == null) {
                                                                            this.f().A().a("Event being bundled has no eventAggregate. appId, eventName", v2_15.a.o, v12_35.b);
                                                                            v9_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v9_51(v2_15.a.o, v12_35.b, 1, 1, v12_35.c.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_21;
                                                                    this.o();
                                                                    Long v13_35 = ((Long) com.google.android.gms.internal.zzclq.a(v12_35, "_eid"));
                                                                    if (v13_35 == null) {
                                                                        v14_21 = 0;
                                                                    } else {
                                                                        v14_21 = 1;
                                                                    }
                                                                    String v14_22 = Boolean.valueOf(v14_21);
                                                                    if (v8_47 != 1) {
                                                                        if (v7_38.nextInt(v8_47) != 0) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            Object v45 = v4_23;
                                                                            if (Math.abs((v12_35.c.longValue() - v9_51.f)) < 86400000) {
                                                                                v8_49 = v45;
                                                                                if (!v14_22.booleanValue()) {
                                                                                } else {
                                                                                    v8_49.put(v12_35.b, v9_51.a(v13_35, 0, 0));
                                                                                }
                                                                            } else {
                                                                                this.o();
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                                this.o();
                                                                                com.google.android.gms.internal.zzcgw v7_53 = ((long) v8_47);
                                                                                v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_53));
                                                                                String v2_24 = (v11_18 + 1);
                                                                                v6_25[v11_18] = v12_35;
                                                                                if (v14_22.booleanValue()) {
                                                                                    v9_51 = v9_51.a(0, Long.valueOf(v7_53), Boolean.valueOf(1));
                                                                                }
                                                                                v8_49 = v45;
                                                                                v8_49.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                                v11_18 = v2_24;
                                                                            }
                                                                        } else {
                                                                            this.o();
                                                                            v41 = v7_38;
                                                                            com.google.android.gms.internal.zzcgw v7_59 = ((long) v8_47);
                                                                            v42_1 = v5_0;
                                                                            v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", Long.valueOf(v7_59));
                                                                            int v5_36 = (v11_18 + 1);
                                                                            v6_25[v11_18] = v12_35;
                                                                            if (v14_22.booleanValue()) {
                                                                                v9_51 = v9_51.a(0, Long.valueOf(v7_59), 0);
                                                                            }
                                                                            v4_23.put(v12_35.b, v9_51.b(v12_35.c.longValue()));
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v8_49 = v4_23;
                                                                            v11_18 = v5_36;
                                                                        }
                                                                    } else {
                                                                        v8_54 = (v11_18 + 1);
                                                                        v6_25[v11_18] = v12_35;
                                                                        if ((!v14_22.booleanValue()) || ((v9_51.g == null) && ((v9_51.h == null) && (v9_51.i == null)))) {
                                                                            v43_1 = v2_15;
                                                                            v44 = v3_9;
                                                                            v42_1 = v5_0;
                                                                            v41 = v7_38;
                                                                            v11_18 = v8_54;
                                                                            v8_49 = v4_23;
                                                                        } else {
                                                                            v4_23.put(v12_35.b, v9_51.a(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.f().A().a("Sample rate must be positive. event, rate", v12_35.b, Integer.valueOf(v8_47));
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            } else {
                                                                this.o();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.a(v12_35, "_en"));
                                                                String v14_25 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_25 == null) {
                                                                    v14_25 = this.q().a(v2_15.a.o, v13_46);
                                                                    v4_23.put(v13_46, v14_25);
                                                                }
                                                                if (v14_25.g != null) {
                                                                    v25 = v8_42;
                                                                    v26 = v9_43;
                                                                    v43_1 = v2_15;
                                                                    v44 = v3_9;
                                                                    v8_49 = v4_23;
                                                                    v42_1 = v5_0;
                                                                    v41 = v7_38;
                                                                } else {
                                                                    if (v14_25.h.longValue() <= 1) {
                                                                        v25 = v8_42;
                                                                    } else {
                                                                        this.o();
                                                                        v25 = v8_42;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_sr", v14_25.h);
                                                                    }
                                                                    if ((v14_25.i == null) || (!v14_25.i.booleanValue())) {
                                                                        v26 = v9_43;
                                                                    } else {
                                                                        this.o();
                                                                        v26 = v9_43;
                                                                        v12_35.a = com.google.android.gms.internal.zzclq.a(v12_35.a, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v8_54 = (v11_18 + 1);
                                                                    v6_25[v11_18] = v12_35;
                                                                }
                                                            }
                                                            v10_26++;
                                                            v4_23 = v8_49;
                                                            v8_42 = v25;
                                                            v9_43 = v26;
                                                            v7_38 = v41;
                                                            v5_0 = v42_1;
                                                            v2_15 = v43_1;
                                                            v3_9 = v44;
                                                        }
                                                        v43_0 = v2_15;
                                                        v2_6 = v3_9;
                                                        Object v8_43 = v4_23;
                                                        v42_0 = v5_0;
                                                        v12_31 = 0;
                                                        if (v11_18 < v2_6.b.length) {
                                                            v2_6.b = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v6_25, v11_18));
                                                        }
                                                        com.google.android.gms.internal.zzcgw v3_15 = v8_43.entrySet().iterator();
                                                        while (v3_15.hasNext()) {
                                                            this.q().a(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v3_15.next()).getValue()));
                                                        }
                                                    }
                                                    v2_6.e = Long.valueOf(nan);
                                                    v2_6.f = Long.valueOf(-0.0);
                                                    com.google.android.gms.internal.zzcgw v3_20 = 0;
                                                    while (v3_20 < v2_6.b.length) {
                                                        long v4_31 = v2_6.b[v3_20];
                                                        if (v4_31.c.longValue() < v2_6.e.longValue()) {
                                                            v2_6.e = v4_31.c;
                                                        }
                                                        if (v4_31.c.longValue() > v2_6.f.longValue()) {
                                                            v2_6.f = v4_31.c;
                                                        }
                                                        v3_20++;
                                                    }
                                                    com.google.android.gms.internal.zzcgw v3_21 = v43_0;
                                                    long v4_28 = v3_21.a.o;
                                                    int v5_10 = this.q().b(v4_28);
                                                    if (v5_10 != 0) {
                                                        if (v2_6.b.length > 0) {
                                                            com.google.android.gms.internal.zzcmc[] v10_28;
                                                            boolean v6_28 = v5_10.h();
                                                            if (v6_28 == 0) {
                                                                v10_28 = v12_31;
                                                            } else {
                                                                v10_28 = Long.valueOf(v6_28);
                                                            }
                                                            v2_6.h = v10_28;
                                                            com.google.android.gms.internal.zzcmc[] v10_29 = v5_10.g();
                                                            if (v10_29 == 0) {
                                                                v10_29 = v6_28;
                                                            }
                                                            if (v10_29 != 0) {
                                                                v12_31 = Long.valueOf(v10_29);
                                                            }
                                                            v2_6.g = v12_31;
                                                            v5_10.r();
                                                            v2_6.w = Integer.valueOf(((int) v5_10.o()));
                                                            v5_10.a(v2_6.e.longValue());
                                                            v5_10.b(v2_6.f.longValue());
                                                            v2_6.x = v5_10.z();
                                                            this.q().a(v5_10);
                                                        }
                                                    } else {
                                                        this.f().y().a("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                    }
                                                    if (v2_6.b.length > 0) {
                                                        int v5_17;
                                                        int v5_16 = this.j().a(v3_21.a.o);
                                                        if (v5_16 == 0) {
                                                            if (!android.text.TextUtils.isEmpty(v3_21.a.y)) {
                                                                this.f().A().a("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.a(v3_21.a.o));
                                                            } else {
                                                                v5_17 = Long.valueOf(-1);
                                                                v2_6.E = v5_17;
                                                            }
                                                        } else {
                                                            if (v5_16.a != null) {
                                                                v5_17 = v5_16.a;
                                                            } else {
                                                            }
                                                        }
                                                        this.q().a(v2_6, v42_0);
                                                    }
                                                    this.q().a(v3_21.b);
                                                    String v2_9 = this.q();
                                                    com.google.android.gms.internal.zzcgw v3_23 = v2_9.A();
                                                    try {
                                                        boolean v6_46 = new String[2];
                                                        v6_46[0] = v4_28;
                                                        v6_46[1] = v4_28;
                                                        v3_23.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_46);
                                                    } catch (java.io.IOException v0_10) {
                                                        v2_9.t().y().a("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.a(v4_28), v0_10);
                                                    }
                                                    this.q().y();
                                                    this.q().z();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_1) {
                                        }
                                        if (v15_6.moveToNext()) {
                                            v4_40.t().A().a("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        }
                                        int v16_6;
                                        int v5_3;
                                        v15_6.close();
                                        v2_15.a(v13_16);
                                        if (v5_37 == -1) {
                                            v5_3 = "app_id = ? and metadata_fingerprint = ?";
                                            com.google.android.gms.internal.zzcgw v9_35 = new String[2];
                                            v9_35[0] = v3_1;
                                            v9_35[1] = v21;
                                            v16_6 = v9_35;
                                        } else {
                                            int v12_19 = new String[3];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21;
                                            v12_19[2] = String.valueOf(v5_37);
                                            v5_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_6 = v12_19;
                                        }
                                        boolean v6_5 = new String[4];
                                        v6_5[0] = "rowid";
                                        v6_5[1] = "name";
                                        v6_5[2] = "timestamp";
                                        v6_5[3] = "data";
                                        v6_0 = v15_6;
                                        int v5_5 = v24.query("raw_events", v6_5, v5_3, v16_6, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_5.moveToFirst()) {
                                                do {
                                                    int v12_23 = v5_5.getLong(0);
                                                    boolean v6_7 = v5_5.getBlob(3);
                                                    boolean v6_8 = com.google.android.gms.internal.zzfjj.a(v6_7, 0, v6_7.length);
                                                    String v14_13 = new com.google.android.gms.internal.zzcmb();
                                                    v14_13.a(v6_8);
                                                    v14_13.b = v5_5.getString(1);
                                                    v14_13.c = Long.valueOf(v5_5.getLong(2));
                                                    if (v2_15.a(v12_23, v14_13)) {
                                                    } else {
                                                        if (v5_5 == 0) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_5.moveToNext());
                                                if (v5_5 == 0) {
                                                }
                                            } else {
                                                v4_40.t().A().a("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                                if (v5_5 == 0) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_8) {
                                            String v2_0 = v0_8;
                                            v6_0 = v5_5;
                                            if (v6_0) {
                                                v6_0.close();
                                            }
                                            throw v2_0;
                                        } catch (java.io.IOException v0_1) {
                                            int v12_0 = v3_1;
                                            v6_0 = v5_5;
                                            com.google.android.gms.internal.zzcgw v3_0 = v0_1;
                                            v4_40.t().y().a("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.a(v12_0), v3_0);
                                            if (!v6_0) {
                                            }
                                        }
                                        v5_5.close();
                                    } else {
                                        v4_40.t().y().a("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.a(v3_1));
                                        if (v15_6 == 0) {
                                        } else {
                                            v15_6.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_6) {
                                    v6_0 = v15_6;
                                    v2_0 = v0_6;
                                } catch (java.io.IOException v0_1) {
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_9) {
                                    v2_0 = v0_9;
                                    v6_0 = v15_6;
                                } catch (java.io.IOException v0_1) {
                                    v12_0 = v3_1;
                                    v6_0 = v15_6;
                                }
                                v12_0 = v3_1;
                            } catch (java.io.IOException v0_4) {
                                v2_0 = v0_4;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_1) {
                                v12_0 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_37;
                            if (v5_37 == -1) {
                                v12_37 = new String[1];
                                v12_37[0] = String.valueOf(p48);
                            } else {
                                v12_37 = new String[2];
                                v12_37[0] = String.valueOf(v5_37);
                                v12_37[1] = String.valueOf(p48);
                            }
                        } catch (java.io.IOException v0_1) {
                            v6_0 = 0;
                            v12_0 = 0;
                        }
                        Long v13_42;
                        if (v5_37 == -1) {
                            v13_42 = "";
                        } else {
                            v13_42 = "rowid <= ? and ";
                        }
                        com.google.android.gms.internal.zzcgw v3_32 = new StringBuilder((String.valueOf(v13_42).length() + 148));
                        v3_32.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_32.append(v13_42);
                        v3_32.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_7.rawQuery(v3_32.toString(), v12_37);
                        if (v3_1.moveToFirst()) {
                            v12_0 = v3_1.getString(0);
                            try {
                                Long v13_4 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_0;
                                v21 = v13_4;
                            } catch (java.io.IOException v0_1) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_2) {
                    v2_0 = v0_2;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_1) {
                    v6_0 = v3_1;
                    v12_0 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_0) {
                v2_0 = v0_0;
                v6_0 = 0;
            } catch (java.io.IOException v0_11) {
                v3_0 = v0_11;
                v6_0 = 0;
                v12_0 = 0;
            } catch (java.io.IOException v0_6) {
            }
        } catch (java.io.IOException v0_3) {
            String v2_1 = v0_3;
            this.q().z();
            throw v2_1;
        }
    }

Method com.google.android.gms.internal.zzaqm.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.facebook.react.modules.storage.AsyncLocalStorageUtil.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public static String a(android.database.sqlite.SQLiteDatabase p10, String p11)
    {
        String[] v3 = new String[1];
        v3[0] = "value";
        String[] v5 = new String[1];
        v5[0] = p11;
        android.database.Cursor v10_1 = p10.query("catalystLocalStorage", v3, "key=?", v5, 0, 0, 0);
        try {
            if (v10_1.moveToFirst()) {
                String v11_2 = v10_1.getString(0);
                v10_1.close();
                return v11_2;
            } else {
                v10_1.close();
                return 0;
            }
        } catch (String v11_3) {
            v10_1.close();
            throw v11_3;
        }
    }