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.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void b(android.database.sqlite.SQLiteDatabase p4, com.layer.transport.lsdkc.h p5, boolean p6)
    {
        String[] v6_2;
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        if (p6 == null) {
            v6_2 = Integer.valueOf(0);
        } else {
            v6_2 = Integer.valueOf(1);
        }
        v0_1.put("is_distinct", v6_2);
        String[] v6_1 = new String[1];
        v6_1[0] = p5.a().toString();
        if (p4.update("streams", v0_1, "database_identifier=?", v6_1) != 1) {
            throw new IllegalArgumentException("Could not update stream is_distinct!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void b(android.database.sqlite.SQLiteDatabase p4, com.layer.transport.lsdkc.h p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("marked_to_delete", Integer.valueOf(1));
        String[] v2_1 = new String[1];
        v2_1[0] = p5.a().toString();
        if (p4.update("streams", v0_1, "database_identifier=?", v2_1) != 1) {
            throw new IllegalArgumentException("Could not mark stream for deletion!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void b(android.database.sqlite.SQLiteDatabase p4, com.layer.transport.lsdkc.c p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("type", Integer.valueOf(com.layer.transport.thrift.sync.EventType.TOMBSTONE.getValue()));
        v0_1.putNull("subtype");
        v0_1.putNull("member_id");
        v0_1.putNull("target_seq");
        String[] v2_0 = new String[1];
        v2_0[0] = p5.a().toString();
        if (p4.update("events", v0_1, "database_identifier=?", v2_0) != 1) {
            throw new IllegalArgumentException("Could not tombstone event!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p2, java.util.UUID p3, Long p4)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("metadata_timestamp", p4);
        String v4_3 = new StringBuilder();
        v4_3.append("stream_id=");
        v4_3.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p3));
        if (p2.update("streams", v0_1, v4_3.toString(), 0) != 1) {
            throw new IllegalArgumentException("Could not set metadata timestamp!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p6, String p7, Boolean p8)
    {
        if (!p8.booleanValue()) {
            String[] v8_8 = new String[1];
            v8_8[0] = p7;
            if (p6.delete("block_list", "user_id=? AND synced_at IS NULL", v8_8) == 0) {
                String[] v8_5 = Long.valueOf(new java.util.Date().getTime());
                android.content.ContentValues v4_2 = new android.content.ContentValues();
                v4_2.put("user_id", p7);
                v4_2.put("unblocked_at", v8_5);
                String[] v8_6 = new String[1];
                v8_6[0] = p7;
                p6.update("block_list", v4_2, "user_id=?", v8_6);
            }
            return;
        } else {
            String[] v8_7 = new String[1];
            v8_7[0] = p7;
            p6.delete("block_list", "user_id=?", v8_7);
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p3, Long p4, Long p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("event_database_identifier", p5);
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        if (p3.update("conversation_participants", v0_1, "database_identifier=?", v1_1) != 1) {
            throw new IllegalArgumentException("Could not set Conversation Participant\'s event reference!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p3, Long p4, Integer p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("client_seq", p5);
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        if (p3.update("streams", v0_1, "database_identifier=?", v1_1) != 1) {
            throw new IllegalArgumentException("Could not increment client sequence!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p8, Iterable p9)
    {
        String v9_1 = p9.iterator();
        while (v9_1.hasNext()) {
            String v0_6 = ((com.layer.sdk.internal.lsdke.lsdka.a) v9_1.next());
            String v1_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.aark>$1.a[v0_6.a.ordinal()];
            if (v1_0 == 1) {
                String v1_2 = new android.content.ContentValues();
                if (v0_6.e != null) {
                    v1_2.put("min_synced_seq", v0_6.e);
                } else {
                    v1_2.putNull("min_synced_seq");
                }
                if (v0_6.f != null) {
                    v1_2.put("max_synced_seq", v0_6.f);
                } else {
                    v1_2.putNull("max_synced_seq");
                }
                if (v0_6.g != null) {
                    v1_2.put("base_sync_seq", v0_6.g);
                } else {
                    v1_2.putNull("base_sync_seq");
                }
                String[] v5_1 = new String[1];
                v5_1[0] = v0_6.c.toString();
                p8.update("streams", v1_2, "database_identifier=?", v5_1);
            } else {
                if (v1_0 != 2) {
                    String v9_3 = new StringBuilder();
                    v9_3.append("Unknown MinMaxSeq type: ");
                    v9_3.append(v0_6.a);
                    throw new IllegalArgumentException(v9_3.toString());
                } else {
                    String v1_5 = new android.content.ContentValues();
                    if (v0_6.e != null) {
                        v1_5.put("min_synced_mutation_seq", v0_6.e);
                    } else {
                        v1_5.putNull("min_synced_mutation_seq");
                    }
                    if (v0_6.f != null) {
                        v1_5.put("max_synced_mutation_seq", v0_6.f);
                    } else {
                        v1_5.putNull("max_synced_mutation_seq");
                    }
                    if (v0_6.g != null) {
                        v1_5.put("base_sync_mutation_seq", v0_6.g);
                    } else {
                        v1_5.putNull("base_sync_mutation_seq");
                    }
                    String[] v5_2 = new String[1];
                    v5_2[0] = v0_6.c.toString();
                    p8.update("streams", v1_5, "database_identifier=?", v5_2);
                }
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.transport.lsdkc.h p4, boolean p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted", Integer.valueOf(p5));
        String[] v1_1 = new String[1];
        v1_1[0] = p4.a().toString();
        if (p3.update("streams", v0_1, "database_identifier=?", v1_1) != 1) {
            throw new IllegalArgumentException("Could not update stream deleted!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p4, com.layer.sdk.messaging.Message p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted_all_participants", Integer.valueOf(((com.layer.sdk.internal.lsdkd.lsdka.i) p5).c()));
        v0_1.put("is_deleted_my_devices", Integer.valueOf(((com.layer.sdk.internal.lsdkd.lsdka.i) p5).d()));
        String[] v2_1 = new String[1];
        v2_1[0] = ((com.layer.sdk.internal.lsdkd.lsdka.i) p5).h().toString();
        if (p4.update("messages", v0_1, "database_identifier=?", v2_1) != 1) {
            throw new IllegalArgumentException("Could not mark message deleted!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.messaging.Conversation p6, boolean p7)
    {
        String[] v1_0;
        String v0_1 = new android.content.ContentValues();
        if (!((com.layer.sdk.internal.lsdkd.lsdka.c) p6).isDistinct()) {
            v1_0 = Integer.valueOf(0);
        } else {
            v1_0 = Integer.valueOf(1);
        }
        v0_1.put("is_distinct", v1_0);
        String[] v1_1 = new String[1];
        v1_1[0] = ((com.layer.sdk.internal.lsdkd.lsdka.c) p6).g().toString();
        if (p5.update("conversations", v0_1, "database_identifier=?", v1_1) != 1) {
            throw new IllegalArgumentException("Could not update conversation distinct!");
        } else {
            if (p7 != null) {
                android.content.ContentValues v7_2 = new android.content.ContentValues();
                v7_2.put("table_name", "conversations");
                v7_2.put("row_identifier", ((com.layer.sdk.internal.lsdkd.lsdka.c) p6).g());
                v7_2.put("change_type", Integer.valueOf(com.layer.sdk.internal.lsdki.c$a.b.a()));
                p5.insert("syncable_changes", 0, v7_2);
            }
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p4, com.layer.sdk.messaging.Conversation p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted_all_participants", Integer.valueOf(((com.layer.sdk.internal.lsdkd.lsdka.c) p5).c()));
        v0_1.put("is_deleted_my_devices", Integer.valueOf(((com.layer.sdk.internal.lsdkd.lsdka.c) p5).d()));
        String[] v2_1 = new String[1];
        v2_1[0] = ((com.layer.sdk.internal.lsdkd.lsdka.c) p5).g().toString();
        if (p4.update("conversations", v0_1, "database_identifier=?", v2_1) != 1) {
            throw new IllegalArgumentException("Could not mark conversation deleted!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p1, com.layer.sdk.internal.lsdkd.lsdka.o$b p2, Long p3, long p4, String p6, boolean p7)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("timestamp", Long.valueOf(p4));
        v0_1.put("is_deleted", Integer.valueOf(p7));
        String[] v4_2 = new String[3];
        v4_2[0] = p2.a();
        v4_2[1] = p3.toString();
        v4_2[2] = p6;
        p1.update("remote_keyed_values", v0_1, "object_type=? AND object_id=? AND key=?", v4_2);
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdkd.lsdka.h$b p4, Long p5, String p6, boolean p7)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted", Integer.valueOf(p7));
        if (p7 != null) {
            v0_1.putNull("timestamp");
        }
        String[] v7_1 = new String[3];
        v7_1[0] = p4.a();
        v7_1[1] = p5.toString();
        v7_1[2] = p6;
        p3.update("local_keyed_values", v0_1, "object_type=? AND object_id=? AND key=?", v7_1);
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdkd.lsdka.d p4)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted", Integer.valueOf(p4.f()));
        String[] v1_3 = new String[1];
        v1_3[0] = p4.b().toString();
        p3.update("conversation_participants", v0_1, "database_identifier=?", v1_3);
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static int a(android.database.sqlite.SQLiteDatabase p3, com.layer.transport.lsdkc.h p4, String p5, boolean p6)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("is_deleted", Integer.valueOf(p6));
        String[] v1_2 = new String[3];
        v1_2[0] = p4.a().toString();
        v1_2[1] = p5;
        v1_2[2] = Integer.toString(p6);
        return p3.update("stream_members", v0_1, "stream_database_identifier=? AND member_id=? AND is_deleted!=?", v1_2);
    }

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


    protected final long zzj(String p18, String p19)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p18);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p19);
        this.zzq();
        this.zzah();
        android.database.sqlite.SQLiteDatabase v3 = this.getWritableDatabase();
        v3.beginTransaction();
        try {
            String v6_2 = new StringBuilder((String.valueOf(p19).length() + 32));
            v6_2.append("select ");
            v6_2.append(p19);
            v6_2.append(" from app2 where app_id=?");
            com.google.android.gms.measurement.internal.zzaw v0_7 = v6_2.toString();
            Object v7_1 = new String[1];
            v7_1[0] = p18;
            try {
                com.google.android.gms.measurement.internal.zzaw v12_0 = this.zza(v0_7, v7_1, -1);
            } catch (com.google.android.gms.measurement.internal.zzaw v0_8) {
                v12_0 = 0;
                this.zzad().zzda().zza("Error inserting column. appId", com.google.android.gms.measurement.internal.zzau.zzao(p18), p19, v0_8);
                v3.endTransaction();
                return v12_0;
            }
            if (v12_0 == -1) {
                com.google.android.gms.measurement.internal.zzaw v12_2 = new android.content.ContentValues();
                v12_2.put("app_id", p18);
                v12_2.put("first_open_count", Integer.valueOf(0));
                v12_2.put("previous_install_count", Integer.valueOf(0));
                if (v3.insertWithOnConflict("app2", 0, v12_2, 5) != -1) {
                    v12_0 = 0;
                } else {
                    this.zzad().zzda().zza("Failed to insert column (got -1). appId", com.google.android.gms.measurement.internal.zzau.zzao(p18), p19);
                    v3.endTransaction();
                    return -1;
                }
            }
            try {
                android.content.ContentValues v14_6 = new android.content.ContentValues();
                v14_6.put("app_id", p18);
                v14_6.put(p19, Long.valueOf((1 + v12_0)));
                String v6_4 = new String[1];
                v6_4[0] = p18;
            } catch (com.google.android.gms.measurement.internal.zzaw v0_8) {
            }
            if (((long) v3.update("app2", v14_6, "app_id = ?", v6_4)) != 0) {
                v3.setTransactionSuccessful();
                v3.endTransaction();
                return v12_0;
            } else {
                this.zzad().zzda().zza("Failed to update column (got 0). appId", com.google.android.gms.measurement.internal.zzau.zzao(p18), p19);
                v3.endTransaction();
                return -1;
            }
        } catch (com.google.android.gms.measurement.internal.zzaw v0_9) {
            v3.endTransaction();
            throw v0_9;
        } catch (com.google.android.gms.measurement.internal.zzaw v0_8) {
        } catch (com.google.android.gms.measurement.internal.zzaw v0_9) {
        }
    }

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


    public final void zza(com.google.android.gms.measurement.internal.zzg p9)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        this.zzq();
        this.zzah();
        String v1_4 = new android.content.ContentValues();
        v1_4.put("app_id", p9.zzan());
        v1_4.put("app_instance_id", p9.getAppInstanceId());
        v1_4.put("gmp_app_id", p9.getGmpAppId());
        v1_4.put("resettable_device_id_hash", p9.zzap());
        v1_4.put("last_bundle_index", Long.valueOf(p9.zzay()));
        v1_4.put("last_bundle_start_timestamp", Long.valueOf(p9.zzaq()));
        v1_4.put("last_bundle_end_timestamp", Long.valueOf(p9.zzar()));
        v1_4.put("app_version", p9.zzas());
        v1_4.put("app_store", p9.zzau());
        v1_4.put("gmp_version", Long.valueOf(p9.zzav()));
        v1_4.put("dev_cert_hash", Long.valueOf(p9.zzaw()));
        v1_4.put("measurement_enabled", Boolean.valueOf(p9.isMeasurementEnabled()));
        v1_4.put("day", Long.valueOf(p9.zzbc()));
        v1_4.put("daily_public_events_count", Long.valueOf(p9.zzbd()));
        v1_4.put("daily_events_count", Long.valueOf(p9.zzbe()));
        v1_4.put("daily_conversions_count", Long.valueOf(p9.zzbf()));
        v1_4.put("config_fetched_time", Long.valueOf(p9.zzaz()));
        v1_4.put("failed_config_fetch_time", Long.valueOf(p9.zzba()));
        v1_4.put("app_version_int", Long.valueOf(p9.zzat()));
        v1_4.put("firebase_instance_id", p9.getFirebaseInstanceId());
        v1_4.put("daily_error_events_count", Long.valueOf(p9.zzbh()));
        v1_4.put("daily_realtime_events_count", Long.valueOf(p9.zzbg()));
        v1_4.put("health_monitor_sample", p9.zzbi());
        v1_4.put("android_id", Long.valueOf(p9.zzbk()));
        v1_4.put("adid_reporting_enabled", Boolean.valueOf(p9.zzbl()));
        v1_4.put("ssaid_reporting_enabled", Boolean.valueOf(p9.zzbm()));
        v1_4.put("admob_app_id", p9.zzao());
        v1_4.put("dynamite_version", Long.valueOf(p9.zzax()));
        try {
            Object v2_19 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p9.zzan();
        } catch (com.google.android.gms.measurement.internal.zzaw v0_4) {
            this.zzad().zzda().zza("Error storing app. appId", com.google.android.gms.measurement.internal.zzau.zzao(p9.zzan()), v0_4);
            return;
        }
        if ((((long) v2_19.update("apps", v1_4, "app_id = ?", v4_1)) == 0) && (v2_19.insertWithOnConflict("apps", 0, v1_4, 5) == -1)) {
            this.zzad().zzda().zza("Failed to insert/update app (got -1). appId", com.google.android.gms.measurement.internal.zzau.zzao(p9.zzan()));
        }
        return;
    }

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


    public final com.google.android.gms.measurement.internal.zzx zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        this.zzq();
        this.zzah();
        com.google.android.gms.measurement.internal.zzaw v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.measurement.internal.zzx v3_1 = new com.google.android.gms.measurement.internal.zzx();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzad().zzda().zza("Error updating daily counts. appId", com.google.android.gms.measurement.internal.zzau.zzao(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zzem = v4.getLong(1);
                v3_1.zzel = v4.getLong(2);
                v3_1.zzen = v4.getLong(3);
                v3_1.zzeo = v4.getLong(4);
                v3_1.zzep = v4.getLong(5);
            }
            if (p18) {
                v3_1.zzem = (v3_1.zzem + 1);
            }
            if (p19) {
                v3_1.zzel = (v3_1.zzel + 1);
            }
            if (p20) {
                v3_1.zzen = (v3_1.zzen + 1);
            }
            if (p21) {
                v3_1.zzeo = (v3_1.zzeo + 1);
            }
            if (p22) {
                v3_1.zzep = (v3_1.zzep + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zzel));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zzem));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zzen));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zzeo));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzep));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzad().zzdd().zza("Not updating daily counts, app is not known. appId", com.google.android.gms.measurement.internal.zzau.zzao(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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


    protected final boolean zza(String p17, byte[] p18, String p19)
    {
        this.zzah();
        this.zzq();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        com.google.android.gms.measurement.internal.zzaw v0_3 = this.zza(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzmu.put(p17, v0_3);
            v1_1.zzmw.put(p17, p19);
            v1_1.zzmr.put(p17, com.google.android.gms.measurement.internal.zzbs.zza(v0_3));
            com.google.android.gms.measurement.internal.zzaw v4_3 = this.zzdn();
            String v5_2 = v0_3.zzxe;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_2);
            Object v6_0 = v5_2.length;
            int v7_0 = 0;
            while (v7_0 < v6_0) {
                String[] v8_1 = v5_2[v7_0];
                int v9_2 = v8_1.zzvw;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.measurement.zzbz[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.internal.zzcx.zzbh(v12_0.zzwb);
                    if (v13_1 != 0) {
                        v12_0.zzwb = v13_1;
                    }
                    com.google.android.gms.internal.measurement.zzbz[] v12_1 = v12_0.zzwc;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.measurement.zzbz v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.internal.zzcy.zzbh(v15.zzwj);
                        if (v3_1 != 0) {
                            v15.zzwj = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzvv;
                String[] v8_2 = v3_10.length;
                int v9_0 = 0;
                while (v9_0 < v8_2) {
                    int v10_0 = v3_10[v9_0];
                    int v11_1 = com.google.android.gms.measurement.internal.zzcz.zzbh(v10_0.zzwq);
                    if (v11_1 != 0) {
                        v10_0.zzwq = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzdo().zza(p17, v5_2);
            try {
                v0_3.zzxe = 0;
                int v3_5 = new byte[v0_3.zzly()];
                v0_3.zza(com.google.android.gms.internal.measurement.zzin.zzk(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.measurement.internal.zzaw v0_0) {
                this.zzad().zzdd().zza("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.measurement.internal.zzau.zzao(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.measurement.internal.zzaw v4_7 = this.zzdo();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            v4_7.zzq();
            v4_7.zzah();
            com.google.android.gms.measurement.internal.zzaw v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v3_5);
            try {
                String v5_6 = v4_7.getWritableDatabase();
                String[] v8_0 = new String[1];
                v8_0[0] = p17;
            } catch (com.google.android.gms.measurement.internal.zzaw v0_6) {
                v4_7.zzad().zzda().zza("Error storing remote config. appId", com.google.android.gms.measurement.internal.zzau.zzao(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzad().zzda().zza("Failed to update remote config (got 0). appId", com.google.android.gms.measurement.internal.zzau.zzao(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

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


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

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


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

Method com.layer.sdk.internal.lsdke.c$1.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void a(android.database.sqlite.SQLiteDatabase p15)
    {
        if (com.layer.sdk.internal.lsdke.c.a(this.a) != null) {
            java.util.HashMap v3_3 = new java.util.HashMap();
            java.util.HashMap v4_0 = new java.util.HashMap();
            try {
                int v6_1 = p15.rawQuery("SELECT messages.database_identifier AS message_database_identifier, conversations.database_identifier AS conversation_database_identifier, streams.seq AS stream_seq, events.preceding_seq AS event_preceding_seq, events.client_seq AS event_client_seq, messages.user_id AS message_creator FROM messages LEFT OUTER JOIN conversations ON (conversations.database_identifier = messages.conversation_database_identifier) LEFT OUTER JOIN streams ON (streams.database_identifier = conversations.stream_database_identifier) LEFT OUTER JOIN events ON (events.database_identifier = messages.event_database_identifier) ORDER BY messages.database_identifier", 0);
                try {
                    while (v6_1.moveToNext()) {
                        Long v9_8;
                        Long v9_10;
                        String v7_4 = com.layer.sdk.internal.lsdke.c.a(this.a, v6_1, "conversation_database_identifier");
                        Long v8_2 = com.layer.sdk.internal.lsdke.c.a(this.a, v6_1, "message_database_identifier");
                        if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "event_preceding_seq")) {
                            if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "stream_seq")) {
                                v9_8 = -1;
                            } else {
                                v9_10 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "stream_seq");
                                v9_8 = v9_10.intValue();
                            }
                        } else {
                            v9_10 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "event_preceding_seq");
                        }
                        if (v9_8 == -1) {
                            v9_8 = 0;
                        }
                        Integer v10_3 = ((Integer) v3_3.get(v7_4));
                        if (v10_3 == null) {
                            v10_3 = Integer.valueOf(0);
                        }
                        if (v10_3.intValue() < v9_8) {
                            v4_0.remove(v7_4);
                        }
                        Integer v10_8;
                        v3_3.put(v7_4, Integer.valueOf(v9_8));
                        if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "event_client_seq")) {
                            v10_8 = 0;
                        } else {
                            v10_8 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "event_client_seq");
                        }
                        if (v10_8 == null) {
                            v10_8 = ((Integer) v4_0.get(v7_4));
                            if (v10_8 == null) {
                                v10_8 = Integer.valueOf(0);
                            }
                            v4_0.put(v7_4, Integer.valueOf((v10_8.intValue() + 1)));
                        }
                        Integer v13_1 = new Object[2];
                        v13_1[0] = Long.valueOf(com.layer.sdk.internal.lsdkd.lsdka.k.a().a(v9_8).c(v10_8.intValue()).a(com.layer.sdk.internal.lsdke.c.d(this.a, v6_1, "message_creator")).d());
                        v13_1[1] = v8_2;
                        p15.execSQL("UPDATE messages SET message_index = ? WHERE database_identifier = ?", v13_1);
                    }
                } catch (Throwable v15_1) {
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    throw v15_1;
                }
                if (v6_1 != 0) {
                    v6_1.close();
                }
                return;
            } catch (Throwable v15_1) {
                v6_1 = 0;
            }
        } else {
            return;
        }
    }

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


    public String[] generateDataString(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p13, String p14, boolean p15)
    {
        android.database.sqlite.SQLiteException v13_7 = p13.getName();
        String v4_5 = this.mDb.getReadableDatabase();
        android.database.sqlite.SQLiteException v6 = 0;
        try {
            StringBuffer v8_1 = new StringBuilder();
            v8_1.append("SELECT * FROM ");
            v8_1.append(v13_7);
            v8_1.append(" WHERE ");
            v8_1.append("token");
            v8_1.append(" = \'");
            v8_1.append(p14);
            v8_1.append("\' ");
            StringBuffer v7_1 = new StringBuffer(v8_1.toString());
            StringBuilder v9_2 = new StringBuilder();
            v9_2.append("SELECT COUNT(*) FROM ");
            v9_2.append(v13_7);
            v9_2.append(" WHERE ");
            v9_2.append("token");
            v9_2.append(" = \'");
            v9_2.append(p14);
            v9_2.append("\' ");
            StringBuffer v8_4 = new StringBuffer(v9_2.toString());
        } catch (android.database.sqlite.SQLiteException v13_4) {
            int v15_2 = 0;
            this.mDb.close();
            if (v6 != null) {
                v6.close();
            }
            if (v15_2 != 0) {
                v15_2.close();
            }
            throw v13_4;
        } catch (String[] v14_1) {
            int v15_1 = 0;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_1 = 0;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v1_2 = 0;
            try {
                org.json.JSONObject v3_3 = new StringBuilder();
                v3_3.append("Could not pull records for Mixpanel out of database ");
                v3_3.append(v13_7);
                v3_3.append(". Waiting to send.");
                com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v3_3.toString(), v14_1);
                this.mDb.close();
            } catch (android.database.sqlite.SQLiteException v13_4) {
                v6 = v15_1;
                v15_2 = v0_1;
            }
            if (v15_1 != 0) {
                v15_1.close();
            }
            if (v0_1 != null) {
                v0_1.close();
            }
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_2 = v1_2;
            android.database.sqlite.SQLiteException v13_5 = 0;
            String v2_1 = 0;
        }
        if (p15 == 0) {
            v7_1.append("AND automatic_data = 0 ");
            v8_4.append(" AND automatic_data = 0");
        }
        v7_1.append("ORDER BY created_at ASC LIMIT 50");
        String[] v14_10 = v4_5.rawQuery(v7_1.toString(), 0);
        try {
            v15_2 = v4_5.rawQuery(v8_4.toString(), 0);
            try {
                v15_2.moveToFirst();
                v0_2 = String.valueOf(v15_2.getInt(0));
                try {
                    com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v1_4 = new org.json.JSONArray();
                    v2_1 = 0;
                } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v1_1) {
                    android.database.sqlite.SQLiteException v11_0 = v15_2;
                    v15_1 = v14_10;
                    v14_1 = v1_1;
                    v1_2 = v0_2;
                    v0_1 = v11_0;
                }
                while (v14_10.moveToNext()) {
                    if (v14_10.isLast()) {
                        v2_1 = v14_10.getString(v14_10.getColumnIndex("_id"));
                    }
                    v1_4.put(new org.json.JSONObject(v14_10.getString(v14_10.getColumnIndex("data"))));
                }
                if (v1_4.length() <= 0) {
                    v13_5 = 0;
                } else {
                    v13_5 = v1_4.toString();
                }
                this.mDb.close();
                if (v14_10 != null) {
                    v14_10.close();
                }
                if (v15_2 == 0) {
                    if ((v2_1 == null) || (v13_5 == null)) {
                        return 0;
                    } else {
                        String[] v14_3 = new String[3];
                        v14_3[0] = v2_1;
                        v14_3[1] = v13_5;
                        v14_3[2] = v0_2;
                        return v14_3;
                    }
                } else {
                    v15_2.close();
                }
            } catch (android.database.sqlite.SQLiteException v13_4) {
                v6 = v14_10;
            } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v0_4) {
                v1_2 = 0;
                v11_0 = v15_2;
                v15_1 = v14_10;
                v14_1 = v0_4;
            }
        } catch (android.database.sqlite.SQLiteException v13_4) {
            v15_2 = 0;
        } catch (int v15_5) {
            v0_1 = 0;
            v1_2 = 0;
            v15_1 = v14_10;
            v14_1 = v15_5;
        }
    }

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


    public int addJSON(org.json.JSONObject p8, String p9, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p10, boolean p11)
    {
        if (this.a()) {
            String v10_1 = p10.getName();
            int v0_1 = -1;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v2 = 0;
            try {
                String v3_0 = this.mDb.getWritableDatabase();
                android.content.ContentValues v4_1 = new android.content.ContentValues();
                v4_1.put("data", p8.toString());
                v4_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v4_1.put("automatic_data", Boolean.valueOf(p11));
                v4_1.put("token", p9);
                v3_0.insert(v10_1, 0, v4_1);
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v8_6 = new StringBuilder();
                v8_6.append("SELECT COUNT(*) FROM ");
                v8_6.append(v10_1);
                v8_6.append(" WHERE token=\'");
                v8_6.append(p9);
                v8_6.append("\'");
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v8_8 = v3_0.rawQuery(v8_6.toString(), 0);
                try {
                    v8_8.moveToFirst();
                    v0_1 = v8_8.getInt(0);
                } catch (android.database.sqlite.SQLiteException v9_2) {
                    StringBuilder v11_5 = new StringBuilder();
                    v11_5.append("Could not add Mixpanel data to table ");
                    v11_5.append(v10_1);
                    v11_5.append(". Re-initializing database.");
                    com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v11_5.toString(), v9_2);
                    if (v8_8 == null) {
                        v2 = v8_8;
                    } else {
                        v8_8.close();
                    }
                    this.mDb.deleteDatabase();
                    if (v2 == null) {
                        this.mDb.close();
                        return v0_1;
                    } else {
                        v2.close();
                        this.mDb.close();
                        return v0_1;
                    }
                }
                if (v8_8 == null) {
                    this.mDb.close();
                    return v0_1;
                } else {
                    v8_8.close();
                    this.mDb.close();
                    return v0_1;
                }
            } catch (android.database.sqlite.SQLiteException v9_4) {
                if (v2 != null) {
                    v2.close();
                }
                this.mDb.close();
                throw v9_4;
            } catch (android.database.sqlite.SQLiteException v9_2) {
                v8_8 = 0;
            } catch (android.database.sqlite.SQLiteException v9_4) {
                v2 = v8_8;
            }
        } else {
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.migrateTableFrom4To5() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.r() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor r(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(rk>com.layer.sdk.internal.lsdke.lsdkc.b$brk>$a.r.u);
        v0_1.append(" FROM presence WHERE syncable_change=?");
        return p2.rawQuery(v0_1.toString(), new String[] {"1"}));
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.q() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor q(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.p.u);
        v0_1.append(" FROM identities WHERE syncable_change=?");
        return p2.rawQuery(v0_1.toString(), new String[] {"1"}));
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.p() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor p(android.database.sqlite.SQLiteDatabase p2)
    {
        return p2.rawQuery("SELECT SUM(size) FROM message_parts WHERE file_path IS NOT NULL", 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.o() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor o(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'presence\' ORDER BY change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.n() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor n(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.g.v);
        v0_1.append(" FROM message_recipient_status AS qmrs INNER JOIN (SELECT database_identifier, message_database_identifier, user_id, MAX(status) FROM message_recipient_status WHERE message_database_identifier=? GROUP BY database_identifier, message_database_identifier, user_id) AS groupedmrs ON qmrs.database_identifier=groupedmrs.database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.n() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor n(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'remote_keyed_values\' ORDER BY change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.m() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor m(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(<mark>com.layer.sdk.internal.lsdke.lsdkc.b$bmark>$a.g.u);
        v0_1.append(" FROM message_recipient_status WHERE database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.m() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor m(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(<mark>com.layer.sdk.internal.lsdke.lsdkc.b$bmark>$a.o.v);
        v0_1.append(" FROM ");
        v0_1.append(<mark>com.layer.sdk.internal.lsdke.lsdkc.b$bmark>$a.o.w);
        v0_1.append(", events AS e WHERE qsdc.table_name=\'events\' AND qsdc.row_identifier=e.database_identifier AND e.type != 4 ORDER BY e.stream_database_identifier, e.preceding_seq, e.client_seq, e.creator_id, qsdc.change_identifier LIMIT 500");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.l() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor l(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.a.u);
        v0_1.append(" FROM conversation_participants WHERE stream_member_database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.l() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor l(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.v);
        v0_1.append(" FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.w);
        v0_1.append(", events AS e WHERE qsdc.table_name=\'events\' AND qsdc.row_identifier=e.database_identifier AND e.type=4 ORDER BY e.stream_database_identifier, e.preceding_seq, e.client_seq, e.creator_id, qsdc.change_identifier LIMIT 500");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor k(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(k>com.layer.sdk.internal.lsdke.lsdkc.b$bk>$a.a.u);
        v0_1.append(" FROM conversation_participants WHERE database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor k(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(k>com.layer.sdk.internal.lsdke.lsdkc.b$bk>$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'identities\' ORDER BY change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor j(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.a.u);
        v0_1.append(" FROM conversation_participants WHERE conversation_database_identifier=? AND is_deleted=0  ORDER BY seq, database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor j(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'mutations\' ORDER BY change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.i() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor i(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.j.u);
        v0_1.append(" FROM remote_keyed_values WHERE database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.i() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor i(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.n.u);
        v0_1.append(" FROM syncable_changes ORDER BY change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.h() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor h(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.e.u);
        v0_1.append(" FROM local_keyed_values WHERE database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.h() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor h(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.j.u);
        v0_1.append(" FROM remote_keyed_values WHERE is_errored=0 AND timestamp IS NULL AND key_type=1 ORDER BY object_type, object_id, key");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.g() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor g(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.c.u);
        v0_1.append(" FROM event_content_parts WHERE event_database_identifier=? ORDER BY event_content_part_id");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.g() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor g(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.v);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.w);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qe.is_errored=0 AND qs.is_errored=0 AND qe.seq IS NULL AND qe.type != 10 ORDER BY qe.database_identifier");
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor f(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.v);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.w);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qe.database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_5 = new String[1];
        v1_5[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_5);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor f(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.i.u);
        v0_1.append(" FROM mutations WHERE is_errored=0 AND stream_id NOT NULL AND seq IS NULL AND stream_database_identifier NOT NULL");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor e(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.l.u);
        v0_1.append(" FROM stream_members WHERE _ROWID_=? AND is_deleted=0 ");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor e(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.i.u);
        v0_1.append(" FROM mutations WHERE is_errored=0 AND stream_id IS NULL AND seq IS NULL AND stream_database_identifier NOT NULL");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor d(android.database.sqlite.SQLiteDatabase p2, java.util.Set p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.r.u);
        v0_1.append(" FROM presence WHERE user_id IN (\'");
        v0_1.append(android.text.TextUtils.join("\',\'", p3));
        v0_1.append("\')");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor d(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.l.u);
        v0_1.append(" FROM stream_members WHERE stream_database_identifier=? AND is_deleted=0 ORDER BY _ROWID_");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor d(android.database.sqlite.SQLiteDatabase p3, android.net.Uri p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.p.u);
        v0_1.append(" FROM identities WHERE object_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor d(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.i.u);
        v0_1.append(" FROM mutations WHERE is_errored=0 AND stream_id IS NULL AND seq IS NULL AND stream_database_identifier IS NULL");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p2, java.util.UUID p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.b.u);
        v0_1.append(" FROM conversations WHERE stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p3));
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p2, java.util.Set p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.r.u);
        v0_1.append(" FROM presence WHERE database_identifier IN (");
        v0_1.append(android.text.TextUtils.join(",", p3));
        v0_1.append(")");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p2, Long p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.i.u);
        v0_1.append(" FROM mutations WHERE database_identifier=");
        v0_1.append(p3);
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p3, android.net.Uri p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.f.u);
        v0_1.append(" FROM message_parts WHERE object_identifier=? ORDER BY database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString().toLowerCase();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.u);
        v0_1.append(" FROM streams WHERE stream_id IS NULL AND is_errored=0 AND is_deleted=0 ORDER BY streams.database_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, java.util.UUID p4, int p5)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.v);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.w);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qs.stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
        v0_1.append(" AND qe.seq=");
        v0_1.append(p5);
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, java.util.UUID p4)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.v);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.w);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qe.client_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p2, java.util.Set p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.p.u);
        v0_1.append(" FROM identities WHERE database_identifier IN (");
        v0_1.append(android.text.TextUtils.join(",", p3));
        v0_1.append(")");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.r.u);
        v0_1.append(" FROM presence WHERE user_id=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4;
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, Long p4, int p5)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.v);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.d.w);
        v0_1.append(", ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qs.database_identifier=");
        v0_1.append(p4);
        v0_1.append(" AND qe.seq=");
        v0_1.append(p5);
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.u);
        v0_1.append(" FROM streams WHERE database_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, android.net.Uri p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.h.u);
        v0_1.append(" FROM messages WHERE object_identifier=? ORDER BY database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString().toLowerCase();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p2, int p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'streams\' OR table_name=\'stream_members\' ORDER BY table_name DESC, change_identifier LIMIT ");
        v0_1.append(p3);
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.u);
        v0_1.append(" FROM ");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.b$b$a.m.s);
        v0_1.append(" WHERE stream_id NOT NULL AND is_errored=0 AND is_deleted=0 AND marked_to_delete=1 ORDER BY database_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static varargs android.database.Cursor a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.messaging.MessagePart$TransferStatus[] p6)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.f.u);
        v0_1.append(" FROM message_parts ");
        if ((p6 != null) && (p6.length > 0)) {
            v0_1.append("WHERE ");
            v0_1.append("pruned != 1 AND ");
            v0_1.append("transfer_status IN (");
            java.util.ArrayList v1_5 = new java.util.ArrayList();
            int v2 = p6.length;
            int v3 = 0;
            while (v3 < v2) {
                v1_5.add(Integer.valueOf(p6[v3].getValue()));
                v3++;
            }
            v0_1.append(android.text.TextUtils.join(", ", v1_5));
            v0_1.append(")");
        }
        return p5.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, java.util.UUID p3, int p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.i.u);
        v0_1.append(" FROM mutations WHERE stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p3));
        v0_1.append(" AND seq=");
        v0_1.append(p4);
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, java.util.UUID p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.u);
        v0_1.append(" FROM streams WHERE stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p3));
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, java.util.Set p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.p.u);
        v0_1.append(" FROM identities WHERE user_id IN (\'");
        v0_1.append(android.text.TextUtils.join("\',\'", p3));
        v0_1.append("\')");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, java.util.List p4)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.d.v);
        v0_1.append(", ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.d.w);
        v0_1.append(", ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier AND qe.database_identifier IN (");
        v0_1.append(android.text.TextUtils.join(",", p4));
        v0_1.append(")");
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.p.u);
        v0_1.append(" FROM identities WHERE user_id=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4;
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, Long p4, String p5)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.a.u);
        v0_1.append(" FROM conversation_participants WHERE conversation_database_identifier=? AND member_id=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[2];
        v1_1[0] = p4.toString();
        v1_1[1] = p5;
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, Long p4, int p5)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.d.v);
        v0_1.append(", ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.t);
        v0_1.append(".stream_id FROM ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.d.w);
        v0_1.append(", ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.w);
        v0_1.append(" WHERE qe.stream_database_identifier=qs.database_identifier  AND qe.stream_database_identifier=");
        v0_1.append(p4);
        v0_1.append(" AND qe.target_seq=");
        v0_1.append(p5);
        v0_1.append(" ORDER BY qe.preceding_seq, qe.client_seq, qe.creator_id, qe.database_identifier");
        return p3.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.v);
        v0_1.append(" FROM ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.w);
        v0_1.append(", stream_members WHERE stream_members._ROWID_=? AND ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.t);
        v0_1.append(".database_identifier=stream_members.stream_database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_7 = new String[1];
        v1_7[0] = p4.toString();
        return p3.rawQuery(v0_2, v1_7);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, com.layer.transport.thrift.sync.MutationTarget p3, java.util.UUID p4, Integer p5)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.i.u);
        v0_1.append(" FROM mutations WHERE target=");
        v0_1.append(p3.getValue());
        v0_1.append(" AND stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
        v0_1.append(" AND target_seq=");
        v0_1.append(p5);
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, com.layer.transport.thrift.sync.MutationTarget p3, java.util.UUID p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.i.u);
        v0_1.append(" FROM mutations WHERE target=");
        v0_1.append(p3.getValue());
        v0_1.append(" AND stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, com.layer.sdk.internal.lsdki.d$a p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.o.u);
        v0_1.append(" FROM synced_changes WHERE table_name=\'streams\'  AND change_type=\'");
        v0_1.append(p3.a());
        v0_1.append("\'ORDER BY table_name DESC, change_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdke.f p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.q.u);
        v0_1.append(" FROM response_versions WHERE response_name=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.a();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdkd.lsdka.o$b p4, Long p5, com.layer.sdk.internal.lsdkd.lsdka.o$a p6)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.j.u);
        v0_1.append(" FROM remote_keyed_values WHERE object_type=? AND object_id=? AND key_type=? ORDER BY database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[3];
        v1_1[0] = p4.a();
        v1_1[1] = p5.toString();
        v1_1[2] = Integer.toString(p6.a());
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdkd.lsdka.h$b p4, Long p5, com.layer.sdk.internal.lsdkd.lsdka.h$a p6)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.e.u);
        v0_1.append(" FROM local_keyed_values WHERE is_deleted=0 AND object_type=? AND object_id=? AND key_type=? ORDER BY database_identifier");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[3];
        v1_1[0] = p4.a();
        v1_1[1] = p5.toString();
        v1_1[2] = Integer.toString(p6.a());
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3, android.net.Uri p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.b.u);
        v0_1.append(" FROM conversations WHERE conversations.object_identifier=?");
        String v0_2 = v0_1.toString();
        String[] v1_1 = new String[1];
        v1_1[0] = p4.toString().toLowerCase();
        return p3.rawQuery(v0_2, v1_1);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2, int p3)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.u);
        v0_1.append(" FROM streams WHERE stream_id IS NOT NULL AND is_errored=0 AND is_deleted=0 AND marked_to_delete=0 ORDER BY last_message_received_at DESC, database_identifier LIMIT ");
        v0_1.append(p3);
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.b$b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p2)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("SELECT ");
        v0_1.append(ark>com.layer.sdk.internal.lsdke.lsdkc.b$bark>$a.m.u);
        v0_1.append(" FROM streams WHERE stream_id IS NOT NULL AND is_errored=0 AND is_deleted=0 AND marked_to_delete=0 ORDER BY last_message_received_at DESC, database_identifier");
        return p2.rawQuery(v0_1.toString(), 0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.q() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List q(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v0 = p4.rawQuery("SELECT object_identifier FROM message_parts WHERE message_database_identifier=? ORDER BY database_identifier ASC", v2_1);
            Throwable v4_2 = new java.util.ArrayList(v0.getCount());
        } catch (Throwable v4_3) {
            if (v0 != null) {
                v0.close();
            }
            throw v4_3;
        }
        while (v0.moveToNext()) {
            v4_2.add(android.net.Uri.parse(v0.getString(0)));
        }
        if (v0 != null) {
            v0.close();
        }
        return v4_2;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.p() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long p(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        long v0_0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT database_identifier FROM messages WHERE event_database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    Long v5_3 = Long.valueOf(v4_1.getLong(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_3;
                }
            } catch (Long v5_1) {
                v0_0 = v4_1;
                if (v0_0 != 0) {
                    v0_0.close();
                }
                throw v5_1;
            }
        } catch (Long v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.o() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri o(android.database.sqlite.SQLiteDatabase p5, Long p6)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[2];
            v2_1[0] = p6.toString();
            v2_1[1] = p6.toString();
            android.database.Cursor v5_1 = p5.rawQuery("SELECT object_identifier FROM messages WHERE conversation_database_identifier=? AND is_deleted_all_participants=0 AND is_deleted_my_devices=0 AND message_index=(SELECT MAX(message_index) FROM messages WHERE conversation_database_identifier=? AND is_deleted_all_participants=0 AND is_deleted_my_devices=0) ORDER BY database_identifier DESC LIMIT 1", v2_1);
            try {
                if (!v5_1.moveToNext()) {
                    if (v5_1 != null) {
                        v5_1.close();
                    }
                    return 0;
                } else {
                    if (!v5_1.isNull(0)) {
                        android.net.Uri v6_6 = android.net.Uri.parse(v5_1.getString(0));
                        if (v5_1 != null) {
                            v5_1.close();
                        }
                        return v6_6;
                    } else {
                        if (v5_1 != null) {
                            v5_1.close();
                        }
                        return 0;
                    }
                }
            } catch (android.net.Uri v6_2) {
                v0 = v5_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v6_2;
            }
        } catch (android.net.Uri v6_2) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.n() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List n(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v0 = p4.rawQuery("SELECT object_identifier FROM messages WHERE conversation_database_identifier=? AND is_deleted_all_participants=0 AND is_deleted_my_devices=0 ORDER BY message_index IS NULL, message_index, database_identifier", v2_1);
            Throwable v4_2 = new java.util.ArrayList(v0.getCount());
        } catch (Throwable v4_3) {
            if (v0 != null) {
                v0.close();
            }
            throw v4_3;
        }
        while (v0.moveToNext()) {
            v4_2.add(android.net.Uri.parse(v0.getString(0)));
        }
        if (v0 != null) {
            v0.close();
        }
        return v4_2;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.m() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri m(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT object_identifier FROM messages WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    android.net.Uri v5_4 = android.net.Uri.parse(v4_1.getString(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (android.net.Uri v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (android.net.Uri v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.l() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri l(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT object_identifier FROM messages WHERE event_database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    android.net.Uri v5_4 = android.net.Uri.parse(v4_1.getString(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (android.net.Uri v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (android.net.Uri v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List k(android.database.sqlite.SQLiteDatabase p2)
    {
        try {
            android.database.Cursor v0_1 = p2.rawQuery("SELECT user_id FROM block_list WHERE unblocked_at IS NOT NULL", 0);
            Throwable v2_3 = new java.util.ArrayList(v0_1.getCount());
        } catch (Throwable v2_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v2_1;
        }
        while (v0_1.moveToNext()) {
            v2_3.add(v0_1.getString(0));
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v2_3;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri k(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT object_identifier FROM conversations WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    android.net.Uri v5_4 = android.net.Uri.parse(v4_1.getString(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (android.net.Uri v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (android.net.Uri v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List j(android.database.sqlite.SQLiteDatabase p2)
    {
        try {
            android.database.Cursor v0_1 = p2.rawQuery("SELECT user_id FROM block_list WHERE synced_at IS NULL AND unblocked_at IS NULL", 0);
            Throwable v2_3 = new java.util.ArrayList(v0_1.getCount());
        } catch (Throwable v2_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v2_1;
        }
        while (v0_1.moveToNext()) {
            v2_3.add(v0_1.getString(0));
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v2_3;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri j(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT object_identifier FROM conversations WHERE stream_database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    android.net.Uri v5_4 = android.net.Uri.parse(v4_1.getString(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (android.net.Uri v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (android.net.Uri v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.h() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.Map h(android.database.sqlite.SQLiteDatabase p4)
    {
        try {
            android.database.Cursor v0_1 = p4.rawQuery("SELECT c.object_identifier, cp.member_id FROM conversations AS c INNER JOIN conversation_participants AS cp ON c.database_identifier = cp.conversation_database_identifier  AND cp.is_deleted=0 WHERE c.is_deleted_all_participants=0  AND c.is_deleted_my_devices=0  AND c.is_distinct IS 1", 0);
            Throwable v4_3 = new java.util.HashMap();
        } catch (Throwable v4_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v4_1;
        }
        while (v0_1.moveToNext()) {
            android.net.Uri v1_3 = android.net.Uri.parse(v0_1.getString(0));
            String v2_1 = v0_1.getString(1);
            java.util.HashSet v3_1 = ((java.util.Set) v4_3.get(v1_3));
            if (v3_1 == null) {
                v3_1 = new java.util.HashSet();
                v4_3.put(v1_3, v3_1);
            }
            v3_1.add(v2_1);
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v4_3;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri e(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT object_identifier FROM identities WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    android.net.Uri v5_4 = android.net.Uri.parse(v4_1.getString(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (android.net.Uri v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (android.net.Uri v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List d(android.database.sqlite.SQLiteDatabase p8)
    {
        try {
            android.database.Cursor v0_1 = p8.rawQuery("SELECT m.object_identifier, p.object_identifier, p.database_identifier, p.size, p.file_path FROM messages AS m, message_parts AS p WHERE m.database_identifier=p.message_database_identifier AND p.pruned != 1 AND p.transfer_status=4 AND p.file_path IS NOT NULL ORDER BY p.access_time ASC", 0);
            Throwable v8_3 = new java.util.ArrayList(v0_1.getCount());
        } catch (Throwable v8_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v8_1;
        }
        while (v0_1.moveToNext()) {
            com.layer.sdk.internal.lsdke.lsdkc.a$a v1_1 = new com.layer.sdk.internal.lsdke.lsdkc.a$a;
            v1_1(android.net.Uri.parse(v0_1.getString(0)), android.net.Uri.parse(v0_1.getString(1)), Long.valueOf(v0_1.getLong(2)), Long.valueOf(v0_1.getLong(3)), v0_1.getString(4));
            v8_3.add(v1_1);
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v8_3;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long d(android.database.sqlite.SQLiteDatabase p8, java.util.Set p9)
    {
        try {
            StringBuilder v1_3 = new java.util.ArrayList(p9);
            java.util.Collections.sort(v1_3);
            String v2_7 = new java.util.ArrayList(v1_3.size());
            StringBuilder v1_8 = v1_3.iterator();
        } catch (android.database.Cursor v8_2) {
            Long v9_6 = v8_2;
            android.database.Cursor v8_1 = 0;
            if (v8_1 != null) {
                v8_1.close();
            }
            throw v9_6;
        }
        while (v1_8.hasNext()) {
            v2_7.add(com.layer.sdk.internal.lsdke.lsdkc.a.a(((String) v1_8.next())));
        }
        String[] v4 = new String[1];
        v4[0] = android.text.TextUtils.join(",", v2_7);
        v8_1 = p8.rawQuery("SELECT database_identifier, (    SELECT GROUP_CONCAT(HEX(member_id), \",\") FROM (SELECT member_id FROM stream_members     WHERE stream_members.is_deleted=0 AND stream_members.stream_database_identifier=streams.database_identifier     ORDER BY member_id)) AS members FROM streams WHERE members=? AND is_errored=0 AND is_deleted=0 AND marked_to_delete=0 AND is_distinct=1", v4);
        try {
            StringBuilder v1_5 = new java.util.ArrayList(v8_1.getCount());
        } catch (Long v9_6) {
        }
        while (v8_1.moveToNext()) {
            v1_5.add(Long.valueOf(v8_1.getLong(0)));
        }
        if (v1_5.size() > 1) {
            StringBuilder v1_7 = new StringBuilder();
            v1_7.append("More than one distinct conversation found for participants: ");
            v1_7.append(p9.toString());
            throw new IllegalStateException(v1_7.toString());
        } else {
            if (v1_5.size() != 1) {
                if (v8_1 != null) {
                    v8_1.close();
                }
                return 0;
            } else {
                Long v9_5 = ((Long) v1_5.get(0));
                if (v8_1 != null) {
                    v8_1.close();
                }
                return v9_5;
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long d(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        long v0_0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT metadata_timestamp FROM streams WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    if (!v4_1.isNull(0)) {
                        Long v5_4 = Long.valueOf(v4_1.getLong(0));
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                        return v5_4;
                    } else {
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                        return 0;
                    }
                }
            } catch (Long v5_1) {
                v0_0 = v4_1;
                if (v0_0 != 0) {
                    v0_0.close();
                }
                throw v5_1;
            }
        } catch (Long v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.net.Uri c(android.database.sqlite.SQLiteDatabase p6, java.util.Set p7)
    {
        try {
            StringBuilder v1_3 = new java.util.ArrayList(p7);
            java.util.Collections.sort(v1_3);
            String v2_8 = new java.util.ArrayList(v1_3.size());
            StringBuilder v1_8 = v1_3.iterator();
        } catch (android.database.Cursor v6_2) {
            android.net.Uri v7_6 = v6_2;
            android.database.Cursor v6_1 = 0;
            if (v6_1 != null) {
                v6_1.close();
            }
            throw v7_6;
        }
        while (v1_8.hasNext()) {
            v2_8.add(com.layer.sdk.internal.lsdke.lsdkc.a.a(((String) v1_8.next())));
        }
        String[] v4 = new String[1];
        v4[0] = android.text.TextUtils.join(",", v2_8);
        v6_1 = p6.rawQuery("SELECT object_identifier, (    SELECT GROUP_CONCAT(HEX(member_id), \",\") FROM (SELECT member_id FROM conversation_participants     WHERE conversation_participants.is_deleted=0 AND conversation_participants.conversation_database_identifier=conversations.database_identifier     ORDER BY member_id)) AS participants FROM conversations WHERE participants=? AND is_deleted_all_participants=0 AND is_distinct IS 1", v4);
        try {
            StringBuilder v1_5 = new java.util.ArrayList(v6_1.getCount());
        } catch (android.net.Uri v7_6) {
        }
        while (v6_1.moveToNext()) {
            v1_5.add(android.net.Uri.parse(v6_1.getString(0)));
        }
        if (v1_5.size() > 1) {
            StringBuilder v1_7 = new StringBuilder();
            v1_7.append("More than one distinct conversation found for participants: ");
            v1_7.append(p7.toString());
            throw new IllegalStateException(v1_7.toString());
        } else {
            if (v1_5.size() <= 0) {
                if (v6_1 != null) {
                    v6_1.close();
                }
                return 0;
            } else {
                android.net.Uri v7_5 = ((android.net.Uri) v1_5.get(0));
                if (v6_1 != null) {
                    v6_1.close();
                }
                return v7_5;
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List b(android.database.sqlite.SQLiteDatabase p4, java.util.Set p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String v1_3 = new java.util.ArrayList(p5);
            java.util.Collections.sort(v1_3);
            android.net.Uri v5_7 = new java.util.ArrayList(v1_3.size());
            String v1_4 = v1_3.iterator();
        } catch (java.util.ArrayList v4_3) {
            if (v0 != null) {
                v0.close();
            }
            throw v4_3;
        }
        while (v1_4.hasNext()) {
            v5_7.add(com.layer.sdk.internal.lsdke.lsdkc.a.a(((String) v1_4.next())));
        }
        String[] v2_2 = new String[1];
        v2_2[0] = android.text.TextUtils.join(",", v5_7);
        v0 = p4.rawQuery("SELECT object_identifier, (    SELECT GROUP_CONCAT(HEX(member_id), \",\") FROM (SELECT member_id FROM conversation_participants     WHERE conversation_participants.is_deleted=0 AND conversation_participants.conversation_database_identifier=conversations.database_identifier     ORDER BY member_id)) AS participants FROM conversations WHERE participants=? AND is_deleted_all_participants=0 AND is_deleted_my_devices=0", v2_2);
        java.util.ArrayList v4_2 = new java.util.ArrayList(v0.getCount());
        while (v0.moveToNext()) {
            v4_2.add(android.net.Uri.parse(v0.getString(0)));
        }
        if (v0 != null) {
            v0.close();
        }
        return v4_2;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List b(android.database.sqlite.SQLiteDatabase p0, String p1, String[] p2)
    {
        try {
            int v0_1 = p0.rawQuery(p1, p2);
            try {
                Throwable v1_3 = new java.util.ArrayList(v0_1.getCount());
            } catch (Throwable v1_1) {
                if (v0_1 != 0) {
                    v0_1.close();
                }
                throw v1_1;
            }
            while (v0_1.moveToNext()) {
                v1_3.add(android.net.Uri.parse(v0_1.getString(0)));
            }
            if (v0_1 != 0) {
                v0_1.close();
            }
            return v1_3;
        } catch (Throwable v1_1) {
            v0_1 = 0;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Integer b(android.database.sqlite.SQLiteDatabase p3, java.util.UUID p4)
    {
        android.database.Cursor v0 = 0;
        try {
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT seq FROM streams WHERE stream_id=");
            v1_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
            android.database.Cursor v3_1 = p3.rawQuery(v1_1.toString(), 0);
            try {
                if (!v3_1.moveToNext()) {
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return 0;
                } else {
                    Integer v4_5 = Integer.valueOf(v3_1.getInt(0));
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return v4_5;
                }
            } catch (Integer v4_1) {
                v0 = v3_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v4_1;
            }
        } catch (Integer v4_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Integer b(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT client_seq FROM streams WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    Integer v5_4 = Integer.valueOf(v4_1.getInt(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_4;
                }
            } catch (Integer v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (Integer v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static int b(android.database.sqlite.SQLiteDatabase p2)
    {
        try {
            android.database.Cursor v0_1 = p2.rawQuery("SELECT COUNT(*) FROM events", 0);
            int v1_1 = 0;
        } catch (boolean v2_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v2_1;
        }
        if ((v0_1.moveToNext()) && (!v0_1.isNull(0))) {
            v1_1 = v0_1.getInt(0);
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v1_1;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static boolean a(android.database.sqlite.SQLiteDatabase p4, com.layer.transport.lsdkc.c p5, int p6)
    {
        try {
            String[] v2_1 = new String[2];
            v2_1[0] = Integer.valueOf(p6).toString();
            v2_1[1] = p5.a().toString();
            android.database.Cursor v0 = p4.rawQuery("SELECT 1 FROM event_content_parts WHERE event_content_part_id=? AND event_database_identifier=?", v2_1);
        } catch (Throwable v4_2) {
            if (v0 != null) {
                v0.close();
            }
            throw v4_2;
        }
        if (!v0.moveToNext()) {
            if (v0 != null) {
                v0.close();
            }
            return 0;
        } else {
            if (v0 != null) {
                v0.close();
            }
            return 1;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static void a(android.database.sqlite.SQLiteDatabase p6)
    {
        android.database.Cursor v1 = 0;
        try {
            p6.execSQL("PRAGMA foreign_keys=OFF");
            p6.beginTransaction();
            int v3_1 = 1;
            try {
                v1 = p6.rawQuery("SELECT name FROM sqlite_master WHERE type=\'table\'", 0);
            } catch (Throwable v2_1) {
                if (v3_1 != 0) {
                    p6.endTransaction();
                }
                p6.execSQL("PRAGMA foreign_keys=ON");
                if (v1 != null) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v2_1;
            }
            while (v1.moveToNext()) {
                String v4_2 = v1.getString(0);
                if (!v4_2.startsWith("sqlite_")) {
                    if (!v4_2.equals("android_metadata")) {
                        String v4_5 = new StringBuilder();
                        v4_5.append("DROP TABLE ");
                        v4_5.append(v1.getString(0));
                        p6.execSQL(v4_5.toString());
                    } else {
                    }
                } else {
                }
            }
            v1.close();
            p6.setTransactionSuccessful();
            try {
                p6.endTransaction();
                p6.execSQL("PRAGMA foreign_keys=ON");
            } catch (boolean v6_1) {
                if (v1 != null) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v6_1;
            }
            if ((v1 != null) && (!v1.isClosed())) {
                v1.close();
            }
            return;
        } catch (int v3_2) {
            v2_1 = v3_2;
            v3_1 = 0;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.UUID a(android.database.sqlite.SQLiteDatabase p4, Long p5)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5.toString().toString();
            android.database.Cursor v4_1 = p4.rawQuery("SELECT stream_id FROM streams WHERE database_identifier=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    if (!v4_1.isNull(0)) {
                        java.util.UUID v5_5 = com.layer.transport.lsdkd.d.a(v4_1.getBlob(0));
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                        return v5_5;
                    } else {
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                        return 0;
                    }
                }
            } catch (java.util.UUID v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
        } catch (java.util.UUID v5_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.Set a(android.database.sqlite.SQLiteDatabase p6, com.layer.sdk.internal.lsdke.lsdka.a$a p7, java.util.UUID p8, Integer p9, Integer p10)
    {
        IllegalArgumentException v0 = 0;
        try {
            Integer v6_1;
            java.util.HashSet v1_1 = new java.util.HashSet();
            String v2_3 = ark>com.layer.sdk.internal.lsdke.lsdkc.aark>$1.a[p7.ordinal()];
        } catch (Integer v6_5) {
            if (v0 != null) {
                v0.close();
            }
            throw v6_5;
        }
        if (v2_3 == 1) {
            String v7_2 = new StringBuilder();
            v7_2.append("SELECT seq FROM events WHERE stream_database_identifier=(SELECT database_identifier FROM streams WHERE stream_id=");
            v7_2.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p8));
            v7_2.append(") AND seq IS NOT NULL AND (seq < ? OR seq >= ?)");
            String v7_3 = v7_2.toString();
            StringBuilder v8_3 = new String[2];
            v8_3[0] = p9.toString();
            v8_3[1] = p10.toString();
            v6_1 = p6.rawQuery(v7_3, v8_3);
        } else {
            if (v2_3 != 2) {
                StringBuilder v8_5 = new StringBuilder();
                v8_5.append("Unknown MinMaxSeq type: ");
                v8_5.append(p7);
                throw new IllegalArgumentException(v8_5.toString());
            } else {
                String v7_6 = new StringBuilder();
                v7_6.append("SELECT seq FROM mutations WHERE stream_id=");
                v7_6.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p8));
                v7_6.append(" AND seq IS NOT NULL AND (seq < ? OR seq >= ?)");
                String v7_7 = v7_6.toString();
                StringBuilder v8_8 = new String[2];
                v8_8[0] = p9.toString();
                v8_8[1] = p10.toString();
                v6_1 = p6.rawQuery(v7_7, v8_8);
            }
        }
        v0 = v6_1;
        while (v0.moveToNext()) {
            v1_1.add(Integer.valueOf(v0.getInt(0)));
        }
        if (v0 != null) {
            v0.close();
        }
        return v1_1;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static varargs java.util.List a(android.database.sqlite.SQLiteDatabase p5, com.layer.transport.thrift.sync.StreamType[] p6)
    {
        android.net.Uri v6_7;
        android.database.Cursor v1 = 0;
        if (p6 == null) {
            v6_7 = "SELECT object_identifier FROM conversations WHERE is_deleted_all_participants=0 AND is_deleted_my_devices=0 ORDER BY conversations.database_identifier";
        } else {
            if (p6.length != 0) {
                String v2_4 = new java.util.HashSet(java.util.Arrays.asList(p6));
                if ((v2_4.contains(com.layer.transport.thrift.sync.StreamType.CONVERSATION)) && (!v2_4.contains(com.layer.transport.thrift.sync.StreamType.CHANNEL))) {
                    v2_4.add(com.layer.transport.thrift.sync.StreamType.CHANNEL);
                }
                android.net.Uri v6_6 = new StringBuilder();
                v6_6.append("SELECT object_identifier FROM conversations WHERE is_deleted_all_participants=0 AND is_deleted_my_devices=0 AND type IN (");
                int v3_1 = 1;
                String v2_0 = v2_4.iterator();
                while (v2_0.hasNext()) {
                    com.layer.transport.thrift.sync.StreamType v4_2 = ((com.layer.transport.thrift.sync.StreamType) v2_0.next());
                    if (v3_1 == 0) {
                        v6_6.append(", ");
                    }
                    v6_6.append(v4_2.getValue());
                    v3_1 = 0;
                }
                v6_6.append(") ORDER BY conversations.database_identifier");
                v6_7 = v6_6.toString();
            } else {
            }
        }
        v1 = p5.rawQuery(v6_7, 0);
        java.util.ArrayList v5_3 = new java.util.ArrayList(v1.getCount());
        while (v1.moveToNext()) {
            v5_3.add(android.net.Uri.parse(v1.getString(0)));
        }
        if (v1 != null) {
            v1.close();
        }
        return v5_3;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List a(android.database.sqlite.SQLiteDatabase p13, com.layer.sdk.internal.lsdke.lsdka.a$a p14, Iterable p15)
    {
        String v0_1 = new java.util.ArrayList();
        StringBuilder v15_3 = p15.iterator();
        while (v15_3.hasNext()) {
            int v1_3;
            Long v5_1;
            java.util.UUID v4_1 = ((java.util.UUID) v15_3.next());
            int v1_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.aark>$1.a[p14.ordinal()];
            if (v1_1 == 1) {
                v1_3 = new StringBuilder();
                v5_1 = "SELECT database_identifier, seq, min_synced_seq, max_synced_seq, base_sync_seq, starting_seq FROM streams WHERE stream_id=";
            } else {
                if (v1_1 != 2) {
                    StringBuilder v15_2 = new StringBuilder();
                    v15_2.append("Unknown MinMaxSeq type: ");
                    v15_2.append(p14);
                    throw new IllegalArgumentException(v15_2.toString());
                } else {
                    v1_3 = new StringBuilder();
                    v5_1 = "SELECT database_identifier, mutation_seq, min_synced_mutation_seq, max_synced_mutation_seq, base_sync_mutation_seq, starting_seq FROM streams WHERE stream_id=";
                }
            }
            v1_3.append(v5_1);
            v1_3.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(v4_1));
            try {
                int v1_6 = p13.rawQuery(v1_3.toString(), 0);
                try {
                    if (v1_6.moveToNext()) {
                        Integer v7_2;
                        Integer v6_4 = Long.valueOf(v1_6.getLong(0));
                        if (!v1_6.isNull(1)) {
                            v7_2 = Integer.valueOf(v1_6.getInt(1));
                        } else {
                            v7_2 = 0;
                        }
                        Integer v8_1;
                        if (!v1_6.isNull(2)) {
                            v8_1 = Integer.valueOf(v1_6.getInt(2));
                        } else {
                            v8_1 = 0;
                        }
                        Integer v9_1;
                        if (!v1_6.isNull(3)) {
                            v9_1 = Integer.valueOf(v1_6.getInt(3));
                        } else {
                            v9_1 = 0;
                        }
                        Integer v10_1;
                        if (!v1_6.isNull(4)) {
                            v10_1 = Integer.valueOf(v1_6.getInt(4));
                        } else {
                            v10_1 = 0;
                        }
                        Integer v11;
                        if (!v1_6.isNull(5)) {
                            v11 = Integer.valueOf(v1_6.getInt(5));
                        } else {
                            v11 = 0;
                        }
                        com.layer.sdk.internal.lsdke.lsdka.a v12 = new com.layer.sdk.internal.lsdke.lsdka.a;
                        v12(p14, v4_1, v6_4, v7_2, v8_1, v9_1, v10_1, v11);
                        v0_1.add(v12);
                    }
                    if (v1_6 != 0) {
                        v1_6.close();
                    }
                } catch (Throwable v13_1) {
                    if (v1_6 != 0) {
                        v1_6.close();
                    }
                    throw v13_1;
                }
            } catch (Throwable v13_1) {
                v1_6 = 0;
            }
        }
        return v0_1;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.List a(android.database.sqlite.SQLiteDatabase p4, long p5, String p7, long p8)
    {
        try {
            String[] v0_1 = new String[4];
            v0_1[0] = p7;
            v0_1[1] = String.valueOf(p5);
            v0_1[2] = String.valueOf(p8);
            v0_1[3] = p7;
            android.database.Cursor v1 = p4.rawQuery("SELECT m.object_identifier FROM messages AS m LEFT OUTER JOIN message_recipient_status AS mrs ON m.database_identifier = mrs.message_database_identifier  AND mrs.user_id = ? WHERE m.conversation_database_identifier = ? AND (mrs.status != 3 OR mrs.status IS NULL) AND m.message_index <= ? AND m.user_id != ?", v0_1);
            Throwable v4_2 = new java.util.ArrayList(v1.getCount());
        } catch (Throwable v4_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v4_3;
        }
        while (v1.moveToNext()) {
            v4_2.add(android.net.Uri.parse(v1.getString(0)));
        }
        if (v1 != null) {
            v1.close();
        }
        return v4_2;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long a(android.database.sqlite.SQLiteDatabase p3, java.util.UUID p4)
    {
        long v0_0 = 0;
        try {
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT database_identifier FROM streams WHERE stream_id=");
            v1_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p4));
            android.database.Cursor v3_1 = p3.rawQuery(v1_1.toString(), 0);
            try {
                if (!v3_1.moveToNext()) {
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return 0;
                } else {
                    Long v4_4 = Long.valueOf(v3_1.getLong(0));
                    if (v3_1 != null) {
                        v3_1.close();
                    }
                    return v4_4;
                }
            } catch (Long v4_1) {
                v0_0 = v3_1;
                if (v0_0 != 0) {
                    v0_0.close();
                }
                throw v4_1;
            }
        } catch (Long v4_1) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long a(android.database.sqlite.SQLiteDatabase p1, String p2, String[] p3)
    {
        try {
            int v1_1 = p1.rawQuery(p2, p3);
            try {
                if (!v1_1.moveToNext()) {
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    return 0;
                } else {
                    Long v2_3 = Long.valueOf(v1_1.getLong(0));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    return v2_3;
                }
            } catch (Long v2_4) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v2_4;
            }
        } catch (Long v2_4) {
            v1_1 = 0;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    static Long a(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        long v0_0 = 0;
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = p5;
            android.database.Cursor v4_1 = p4.rawQuery("SELECT database_identifier FROM identities WHERE user_id=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    Long v5_3 = Long.valueOf(v4_1.getLong(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_3;
                }
            } catch (Long v5_2) {
                v0_0 = v4_1;
                if (v0_0 != 0) {
                    v0_0.close();
                }
                throw v5_2;
            }
        } catch (Long v5_2) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Long a(android.database.sqlite.SQLiteDatabase p4, com.layer.transport.lsdkc.h p5, String p6)
    {
        android.database.Cursor v0 = 0;
        try {
            String[] v2_1 = new String[2];
            v2_1[0] = p5.a().toString();
            v2_1[1] = p6;
            android.database.Cursor v4_1 = p4.rawQuery("SELECT _ROWID_ FROM stream_members WHERE stream_database_identifier=? AND member_id=?", v2_1);
            try {
                if (!v4_1.moveToNext()) {
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return 0;
                } else {
                    Long v5_5 = Long.valueOf(v4_1.getLong(0));
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    return v5_5;
                }
            } catch (Long v5_2) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_2;
            }
        } catch (Long v5_2) {
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static Integer a(android.database.sqlite.SQLiteDatabase p4, com.layer.sdk.internal.lsdke.lsdka.a p5)
    {
        Integer v0 = 0;
        try {
            String v1_2 = ark>com.layer.sdk.internal.lsdke.lsdkc.aark>$1.a[p5.a.ordinal()];
        } catch (Throwable v4_2) {
            if (v0 != null) {
                v0.close();
            }
            throw v4_2;
        }
        if (v1_2 == 1) {
            StringBuilder v2_8 = new String[1];
            v2_8[0] = p5.c.toString();
            Throwable v4_1 = p4.rawQuery("SELECT MIN(seq) AS minSeq FROM events WHERE type=4 AND seq IS NOT NULL AND stream_database_identifier=?", v2_8);
            try {
                if (v4_1.moveToNext()) {
                    if (!v4_1.isNull(0)) {
                        v0 = Integer.valueOf(v4_1.getInt(0));
                    } else {
                    }
                }
            } catch (Integer v5_7) {
                v0 = v4_1;
                v4_2 = v5_7;
            }
            if (v4_1 != null) {
                v4_1.close();
            }
            return v0;
        } else {
            if (v1_2 == 2) {
                return 0;
            } else {
                if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                    StringBuilder v2_3 = new StringBuilder();
                    v2_3.append("Unknown MinMaxSeq type: ");
                    v2_3.append(p5.a);
                    com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.aark>.a, v2_3.toString());
                }
                StringBuilder v2_6 = new StringBuilder();
                v2_6.append("Unknown MinMaxSeq type: ");
                v2_6.append(p5.a);
                throw new IllegalArgumentException(v2_6.toString());
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.g() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.LinkedHashSet g(android.database.sqlite.SQLiteDatabase p5)
    {
        try {
            java.util.LinkedHashSet v1_1 = new java.util.LinkedHashSet();
            android.database.Cursor v0_1 = p5.rawQuery("SELECT version FROM schema_migrations ORDER BY version", 0);
        } catch (Long v5_4) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v5_4;
        }
        while (v0_1.moveToNext()) {
            v1_1.add(Long.valueOf(v0_1.getLong(0)));
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v1_1;
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public long f(android.database.sqlite.SQLiteDatabase p5)
    {
        try {
            android.database.Cursor v0_1 = p5.rawQuery("SELECT MAX(version) FROM schema_migrations", 0);
            long v1_1 = -1;
        } catch (int v5_2) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v5_2;
        }
        if (!v0_1.moveToNext()) {
            if (v0_1 != null) {
                v0_1.close();
            }
            return -1;
        } else {
            if (!v0_1.isNull(0)) {
                v1_1 = v0_1.getLong(0);
            } else {
            }
            if (v0_1 != null) {
                v0_1.close();
            }
            return v1_1;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public long e(android.database.sqlite.SQLiteDatabase p5)
    {
        try {
            android.database.Cursor v0_1 = p5.rawQuery("SELECT MIN(version) FROM schema_migrations", 0);
            long v1_1 = -1;
        } catch (int v5_2) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v5_2;
        }
        if (!v0_1.moveToNext()) {
            if (v0_1 != null) {
                v0_1.close();
            }
            return -1;
        } else {
            if (!v0_1.isNull(0)) {
                v1_1 = v0_1.getLong(0);
            } else {
            }
            if (v0_1 != null) {
                v0_1.close();
            }
            return v1_1;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean a(android.database.sqlite.SQLiteDatabase p3)
    {
        try {
            int v3_1;
            android.database.Cursor v0_1 = p3.rawQuery("SELECT 1 FROM sqlite_master WHERE type=\'table\' AND name=\'schema_migrations\'", 0);
        } catch (int v3_3) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v3_3;
        }
        if (v0_1.getCount() <= 0) {
            v3_1 = 0;
        } else {
            v3_1 = 1;
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return v3_1;
    }

Method com.layer.sdk.internal.lsdke.lsdkb.a$a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static void a(android.database.sqlite.SQLiteDatabase p2, java.util.List p3)
    {
        String v3_1 = p3.iterator();
        while (v3_1.hasNext()) {
            android.database.Cursor v0_0 = ((String) v3_1.next()).trim();
            if ((!v0_0.isEmpty()) && (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a, v0_0))) {
                if (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.b, v0_0)) {
                    if (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.c, v0_0)) {
                        String v3_3 = new StringBuilder();
                        v3_3.append("Cannot parse statement: ");
                        v3_3.append(v0_0);
                        throw new IllegalArgumentException(v3_3.toString());
                    } else {
                        android.database.Cursor v0_2 = p2.rawQuery(v0_0, 0);
                        if (v0_2 != null) {
                            v0_2.close();
                        }
                    }
                } else {
                    p2.execSQL(v0_0);
                }
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.d.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean a(String p7)
    {
        try {
            android.database.sqlite.SQLiteDatabase v1 = this.f;
            String[] v4 = new String[1];
            v4[0] = p7;
            android.database.Cursor v0 = v1.rawQuery("SELECT * FROM sqlite_master WHERE type = \'table\' AND name = ?", v4);
        } catch (Throwable v7_2) {
            if (v0 != null) {
                v0.close();
            }
            throw v7_2;
        }
        if (!v0.moveToNext()) {
            if (v0 != null) {
                v0.close();
            }
            return 0;
        } else {
            if (v0 != null) {
                v0.close();
            }
            return 1;
        }
    }

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


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

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


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

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


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

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


    public final android.util.Pair zza(String p8, Long p9)
    {
        this.zzq();
        this.zzah();
        try {
            int v1_1 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzaw v3_5 = new String[2];
            v3_5[0] = p8;
            v3_5[1] = String.valueOf(p9);
            int v1_0 = v1_1.rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", v3_5);
            try {
                if (v1_0.moveToFirst()) {
                    java.io.IOException v2_1 = v1_0.getBlob(0);
                    com.google.android.gms.measurement.internal.zzaw v3_1 = Long.valueOf(v1_0.getLong(1));
                    try {
                        Object v8_3 = com.google.android.gms.internal.measurement.zzcf.zze(v2_1);
                    } catch (java.io.IOException v2_2) {
                        this.zzad().zzda().zza("Failed to merge main event. appId, eventId", com.google.android.gms.measurement.internal.zzau.zzao(v8_3), p9, v2_2);
                        if (v1_0 != 0) {
                            v1_0.close();
                        }
                        return 0;
                    }
                    Object v8_5 = android.util.Pair.create(v8_3, v3_1);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v8_5;
                } else {
                    this.zzad().zzdi().zzaq("Main event not found");
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (Object v8_1) {
                this.zzad().zzda().zza("Error selecting main event", v8_1);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Object v8_2) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v8_2;
        } catch (Object v8_1) {
            v1_0 = 0;
        } catch (Object v8_2) {
        }
    }

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


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

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


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

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


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzo();
        this.zzq();
        Long v3_9 = 0;
        if (!this.zzjk) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p18));
            v4_1.put("entry", p19);
            com.google.android.gms.measurement.internal.zzaw v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzad().zzda().zzaq("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzad().zzda().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (Throwable v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (Throwable v0_2) {
                                    v8_0 = v13;
                                    this.zzad().zzda().zza("Error writing entry to local database", v0_2);
                                    this.zzjk = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    }
                                } catch (Throwable v0_1) {
                                }
                            } catch (Throwable v0_3) {
                                v13 = 0;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjk = 1;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (Throwable v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzad().zzda().zza("Error writing entry to local database", v0_1);
                        this.zzjk = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (Throwable v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (Throwable v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (Throwable v0_1) {
                    v13 = 0;
                } catch (Throwable v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzad().zzdd().zzaq("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    private final boolean zzd(String p44, long p45)
    {
        String v1_0 = this;
        int v2_0 = "_lte";
        this.zzdo().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaw v4_0 = 0;
            android.database.sqlite.SQLiteException v3_2 = new com.google.android.gms.measurement.internal.zzft$zza(this, 0);
            com.google.android.gms.measurement.internal.zzaf v5_90 = this.zzdo();
            com.google.android.gms.measurement.internal.zzaf v6_0 = this.zzsp;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_2);
            v5_90.zzq();
            v5_90.zzah();
            try {
                boolean v11_0;
                Long v15_10 = v5_90.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        boolean v11_21;
                        com.google.android.gms.measurement.internal.zzaw v4_99 = v6_0 cmp -1;
                        if (v4_99 == null) {
                            v11_21 = new String[] {0});
                        } else {
                            v11_21 = new String[2];
                            v11_21[0] = 0;
                            v11_21[1] = String.valueOf(v6_0);
                        }
                        com.google.android.gms.measurement.internal.zzaw v4_106;
                        if (v4_99 == null) {
                            v4_106 = "";
                        } else {
                            v4_106 = " and rowid <= ?";
                        }
                        long v14_19 = new StringBuilder((v4_106.length() + 84));
                        v14_19.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_19.append(v4_106);
                        v14_19.append(" order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v14_19.toString(), v11_21);
                        if (v4_0.moveToFirst()) {
                            v11_0 = v4_0.getString(0);
                            v4_0.close();
                            v4_0 = 0;
                            try {
                                Object v9_7 = new String[2];
                                v9_7[0] = v4_0;
                                v9_7[1] = v11_0;
                                boolean v10_7 = v15_10;
                                Boolean v8_0 = v15_10.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v9_7, 0, 0, "rowid", "2");
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                String v1_15 = v0_1;
                                if (v8_0 != null) {
                                    v8_0.close();
                                }
                                throw v1_15;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                com.google.android.gms.measurement.internal.zzaf v6_1 = v8_0;
                                Boolean v8_3 = v4_0;
                                com.google.android.gms.measurement.internal.zzaw v4_100 = v0_0;
                                try {
                                    v5_90.zzad().zzda().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v8_3), v4_100);
                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                    v1_15 = v0_5;
                                    v8_0 = v6_1;
                                }
                                if (v6_1 == null) {
                                    com.google.android.gms.measurement.internal.zzaw v4_104;
                                    if (v3_2.zzsv == null) {
                                        v4_104 = 1;
                                    } else {
                                        if (!v3_2.zzsv.isEmpty()) {
                                            v4_104 = 0;
                                        } else {
                                        }
                                    }
                                    if (v4_104 != null) {
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 0;
                                    } else {
                                        com.google.android.gms.measurement.internal.zzaw v4_98 = v3_2.zzst;
                                        com.google.android.gms.measurement.internal.zzaf v5_52 = new com.google.android.gms.internal.measurement.zzcf[v3_2.zzsv.size()];
                                        v4_98.zzxo = v5_52;
                                        com.google.android.gms.measurement.internal.zzaf v5_47 = this.zzl.zzaf().zzm(v4_98.zzcf);
                                        com.google.android.gms.measurement.internal.zzaf v6_84 = this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzim);
                                        long v7_44 = 0;
                                        Object v9_36 = 0;
                                        boolean v10_33 = 0;
                                        boolean v11_11 = 0;
                                        int v13_7 = 0;
                                        long v14_14 = 0;
                                        while(true) {
                                            Boolean v12_16 = "_et";
                                            int v17_2 = v13_7;
                                            int v18_5 = v14_14;
                                            if (v9_36 >= v3_2.zzsv.size()) {
                                                break;
                                            }
                                            com.google.android.gms.measurement.internal.zzaf v6_72;
                                            long v23_2;
                                            com.google.android.gms.measurement.internal.zzaf v27_0;
                                            String v28_0;
                                            int v2_23;
                                            Boolean v8_18 = ((com.google.android.gms.internal.measurement.zzcf) v3_2.zzsv.get(v9_36));
                                            long v22_1 = v2_0;
                                            if (!this.zzdp().zzk(v3_2.zzst.zzcf, v8_18.name)) {
                                                long v25_0;
                                                long v30_0;
                                                Boolean v12_14;
                                                String v29_0;
                                                com.google.android.gms.internal.measurement.zzbt$zzd[] v26_1;
                                                v23_2 = v9_36;
                                                int v2_12 = this.zzdp().zzl(v3_2.zzst.zzcf, v8_18.name);
                                                if (v2_12 != 0) {
                                                    v26_1 = v4_98;
                                                    v25_0 = v10_33;
                                                    if (v8_18.zzxi == null) {
                                                        boolean v10_5 = new com.google.android.gms.internal.measurement.zzbt$zzd[0];
                                                        v8_18.zzxi = v10_5;
                                                    }
                                                    v27_0 = v6_84;
                                                    com.google.android.gms.measurement.internal.zzaw v4_14 = 0;
                                                    boolean v10_6 = 0;
                                                    Long v15_5 = 0;
                                                    while(true) {
                                                        v28_0 = v5_47;
                                                        if (v4_14 >= v8_18.zzxi.length) {
                                                            break;
                                                        }
                                                        long v30_1;
                                                        com.google.android.gms.measurement.internal.zzaf v6_79 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v8_18.zzxi[v4_14].zzmh()));
                                                        String v29_1 = v11_11;
                                                        if (!"_c".equals(v6_79.getName())) {
                                                            v30_1 = v12_16;
                                                            if ("_r".equals(v6_79.getName())) {
                                                                v6_79.zzaj(1);
                                                                v15_5 = 1;
                                                            }
                                                        } else {
                                                            v30_1 = v12_16;
                                                            v6_79.zzaj(1);
                                                            v10_6 = 1;
                                                        }
                                                        v8_18.zzxi[v4_14] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_79.zzmr()));
                                                        v4_14++;
                                                        v5_47 = v28_0;
                                                        v11_11 = v29_1;
                                                        v12_16 = v30_1;
                                                    }
                                                    v29_0 = v11_11;
                                                    v30_0 = v12_16;
                                                    if ((!v10_6) && (v2_12 != 0)) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as conversion", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_20 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_20[(v4_20.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_c").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_20;
                                                    }
                                                    if (v15_5 == null) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as real-time", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_26 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_26[(v4_26.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_r").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_26;
                                                    }
                                                    v12_14 = v7_44;
                                                    if (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 0, 0, 1).zzep <= ((long) this.zzl.zzaf().zzi(v3_2.zzst.zzcf))) {
                                                        v17_2 = 1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzaw v4_34 = 0;
                                                        while (v4_34 < v8_18.zzxi.length) {
                                                            if (!"_r".equals(v8_18.zzxi[v4_34].getName())) {
                                                                v4_34++;
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzaf v5_26 = new com.google.android.gms.internal.measurement.zzbt$zzd[(v8_18.zzxi.length - 1)];
                                                                if (v4_34 > null) {
                                                                    System.arraycopy(v8_18.zzxi, 0, v5_26, 0, v4_34);
                                                                }
                                                                if (v4_34 < v5_26.length) {
                                                                    System.arraycopy(v8_18.zzxi, (v4_34 + 1), v5_26, v4_34, (v5_26.length - v4_34));
                                                                }
                                                                v8_18.zzxi = v5_26;
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    if ((com.google.android.gms.measurement.internal.zzgd.zzbm(v8_18.name)) && ((v2_12 != 0) && (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 1, 0, 0).zzen > ((long) this.zzl.zzaf().zzb(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzgq))))) {
                                                        this.zzl.zzad().zzdd().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                        com.google.android.gms.measurement.internal.zzaw v4_44 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v5_28 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v6_53 = 0;
                                                        long v7_33 = -1;
                                                        while (v4_44 < v8_18.zzxi.length) {
                                                            boolean v10_39 = v8_18.zzxi[v4_44];
                                                            if (!"_c".equals(v10_39.getName())) {
                                                                if ("_err".equals(v10_39.getName())) {
                                                                    v5_28 = 1;
                                                                }
                                                            } else {
                                                                v6_53 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v10_39.zzmh()));
                                                                v7_33 = v4_44;
                                                            }
                                                            v4_44++;
                                                        }
                                                        if ((v5_28 == null) || (v6_53 == null)) {
                                                            if (v6_53 == null) {
                                                                this.zzl.zzad().zzda().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                            } else {
                                                                v8_18.zzxi[v7_33] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v6_53.clone())).zzbw("_err").zzaj(10).zzmr()));
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzaw v4_56 = v8_18.zzxi;
                                                            long v7_35 = new com.google.android.gms.internal.measurement.zzbt$zzd[1];
                                                            v7_35[0] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_53.zzmr()));
                                                            v8_18.zzxi = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v4_56, v7_35));
                                                        }
                                                    }
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaw v4_4;
                                                    this.zzdm();
                                                    Long v15_4 = v8_18.name;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_4);
                                                    v25_0 = v10_33;
                                                    boolean v10_2 = v15_4.hashCode();
                                                    v26_1 = v4_98;
                                                    if (v10_2 == 94660) {
                                                        if (!v15_4.equals("_in")) {
                                                            v4_4 = -1;
                                                        } else {
                                                            v4_4 = 0;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95025) {
                                                            if (!v15_4.equals("_ug")) {
                                                            } else {
                                                                v4_4 = 2;
                                                            }
                                                        } else {
                                                            if (v10_2 == 95027) {
                                                                if (!v15_4.equals("_ui")) {
                                                                } else {
                                                                    v4_4 = 1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                    }
                                                    if ((v4_4 == null) || ((v4_4 == 1) || (v4_4 == 2))) {
                                                        com.google.android.gms.measurement.internal.zzaw v4_11 = 1;
                                                    } else {
                                                        v4_11 = 0;
                                                    }
                                                    if (v4_11 == null) {
                                                        v28_0 = v5_47;
                                                        v27_0 = v6_84;
                                                        v29_0 = v11_11;
                                                        v30_0 = "_et";
                                                        v12_14 = v7_44;
                                                    } else {
                                                    }
                                                }
                                                if ((!this.zzl.zzaf().zzv(v3_2.zzst.zzcf)) || (v2_12 == 0)) {
                                                } else {
                                                    int v2_13 = v8_18.zzxi;
                                                    com.google.android.gms.measurement.internal.zzaw v4_62 = 0;
                                                    com.google.android.gms.measurement.internal.zzaf v5_38 = -1;
                                                    com.google.android.gms.measurement.internal.zzaf v6_58 = -1;
                                                    while (v4_62 < v2_13.length) {
                                                        if (!"value".equals(v2_13[v4_62].getName())) {
                                                            if ("currency".equals(v2_13[v4_62].getName())) {
                                                                v6_58 = v4_62;
                                                            }
                                                        } else {
                                                            v5_38 = v4_62;
                                                        }
                                                        v4_62++;
                                                    }
                                                    if (v5_38 == -1) {
                                                    } else {
                                                        if ((v2_13[v5_38].zzhn()) || (v2_13[v5_38].zzhq())) {
                                                            com.google.android.gms.measurement.internal.zzaw v4_71;
                                                            if (v6_58 != -1) {
                                                                com.google.android.gms.measurement.internal.zzaw v4_70 = v2_13[v6_58].zzhl();
                                                                if (v4_70.length() == 3) {
                                                                    com.google.android.gms.measurement.internal.zzaf v6_60 = 0;
                                                                    while (v6_60 < v4_70.length()) {
                                                                        boolean v10_31 = v4_70.codePointAt(v6_60);
                                                                        if (Character.isLetter(v10_31)) {
                                                                            v6_60 += Character.charCount(v10_31);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v4_71 = 0;
                                                                    if (v4_71 != null) {
                                                                        this.zzl.zzad().zzdf().zzaq("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 19, "currency");
                                                                    }
                                                                    v8_18.zzxi = v2_13;
                                                                    com.google.android.gms.measurement.internal.zzaw v4_84;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_44;
                                                                    if (!this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzil)) {
                                                                        v2_23 = v12_14;
                                                                        v5_44 = v29_0;
                                                                        v4_84 = v30_0;
                                                                    } else {
                                                                        if (!"_e".equals(v8_18.name)) {
                                                                            v2_23 = v12_14;
                                                                            if (!"_vs".equals(v8_18.name)) {
                                                                            } else {
                                                                                this.zzdm();
                                                                                v4_84 = v30_0;
                                                                                if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, v4_84) != null) {
                                                                                    v5_44 = v29_0;
                                                                                    if ((v28_0 == null) || ((v27_0 != null) || (!"_e".equals(v8_18.name)))) {
                                                                                        v14_14 = v18_5;
                                                                                    } else {
                                                                                        com.google.android.gms.measurement.internal.zzaw v4_94;
                                                                                        Object v9_25;
                                                                                        com.google.android.gms.measurement.internal.zzaf v6_71;
                                                                                        if (v8_18.zzxi == null) {
                                                                                            v4_94 = this.zzl.zzad().zzdd();
                                                                                            v6_71 = "Engagement event does not contain any parameters. appId";
                                                                                            v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                        } else {
                                                                                            if (v8_18.zzxi.length != 0) {
                                                                                                this.zzdm();
                                                                                                com.google.android.gms.measurement.internal.zzaw v4_91 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v8_18, v4_84));
                                                                                                if (v4_91 != null) {
                                                                                                    v14_14 = (v18_5 + v4_91.longValue());
                                                                                                    v6_72 = v26_1;
                                                                                                    v10_33 = (v25_0 + 1);
                                                                                                    v6_72.zzxo[v25_0] = v8_18;
                                                                                                    v11_11 = v5_44;
                                                                                                    v13_7 = v17_2;
                                                                                                    v9_36 = (v23_2 + 1);
                                                                                                    v7_44 = v2_23;
                                                                                                    v4_98 = v6_72;
                                                                                                    v2_0 = v22_1;
                                                                                                    v6_84 = v27_0;
                                                                                                    v5_47 = v28_0;
                                                                                                } else {
                                                                                                    v4_94 = this.zzl.zzad().zzdd();
                                                                                                    v6_71 = "Engagement event does not include duration. appId";
                                                                                                    v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        v4_94.zza(v6_71, v9_25);
                                                                                    }
                                                                                } else {
                                                                                    if (v29_0 == null) {
                                                                                        v5_44 = v29_0;
                                                                                    } else {
                                                                                        v5_44 = v29_0;
                                                                                        if ((Math.abs((v5_44.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v5_44, v8_18))) {
                                                                                            v2_23 = 0;
                                                                                            v5_44 = 0;
                                                                                        }
                                                                                    }
                                                                                    v2_23 = v8_18;
                                                                                }
                                                                            }
                                                                        } else {
                                                                            this.zzdm();
                                                                            if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, "_fr") != null) {
                                                                            } else {
                                                                                if (v12_14 == null) {
                                                                                    v2_23 = v12_14;
                                                                                } else {
                                                                                    v2_23 = v12_14;
                                                                                    if ((Math.abs((v2_23.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v8_18, v2_23))) {
                                                                                        v4_84 = v30_0;
                                                                                    }
                                                                                }
                                                                                v5_44 = v8_18;
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                                v4_71 = 1;
                                                            } else {
                                                                v4_71 = 1;
                                                            }
                                                        } else {
                                                            this.zzl.zzad().zzdf().zzaq("Value must be specified with a numeric type.");
                                                            v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 18, "value");
                                                        }
                                                    }
                                                }
                                            } else {
                                                int v2_37;
                                                v23_2 = v9_36;
                                                this.zzl.zzad().zzdd().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf), this.zzl.zzaa().zzal(v8_18.name));
                                                if (this.zzdp().zzbe(v3_2.zzst.zzcf)) {
                                                    v2_37 = 1;
                                                } else {
                                                    if (!this.zzdp().zzbf(v3_2.zzst.zzcf)) {
                                                        v2_37 = 0;
                                                    } else {
                                                    }
                                                }
                                                if ((v2_37 == 0) && (!"_err".equals(v8_18.name))) {
                                                    this.zzl.zzab().zza(v3_2.zzst.zzcf, 11, "_ev", v8_18.name, 0);
                                                }
                                                v28_0 = v5_47;
                                                v27_0 = v6_84;
                                                v2_23 = v7_44;
                                                v13_7 = v17_2;
                                                v14_14 = v18_5;
                                                v6_72 = v4_98;
                                            }
                                        }
                                        long v14_6;
                                        boolean v10_1;
                                        long v22_4 = v2_0;
                                        String v28_2 = v5_47;
                                        long v25_2 = v10_33;
                                        com.google.android.gms.measurement.internal.zzaf v6_9 = v4_98;
                                        if (v6_84 == null) {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                        } else {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                            int v2_8 = 0;
                                            while (v2_8 < v10_1) {
                                                com.google.android.gms.measurement.internal.zzaf v5_17 = v6_9.zzxo[v2_8];
                                                if (!"_e".equals(v5_17.name)) {
                                                    if (v28_2 != null) {
                                                        this.zzdm();
                                                        com.google.android.gms.measurement.internal.zzaf v5_18 = com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_et");
                                                        if (v5_18 != null) {
                                                            com.google.android.gms.measurement.internal.zzaf v5_19;
                                                            if (!v5_18.zzhn()) {
                                                                v5_19 = 0;
                                                            } else {
                                                                v5_19 = Long.valueOf(v5_18.zzho());
                                                            }
                                                            if ((v5_19 != null) && (v5_19.longValue() > 0)) {
                                                                v14_6 += v5_19.longValue();
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    this.zzdm();
                                                    if (com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_fr") == null) {
                                                    } else {
                                                        System.arraycopy(v6_9.zzxo, (v2_8 + 1), v6_9.zzxo, v2_8, ((v10_1 - v2_8) - 1));
                                                        v10_1--;
                                                        v2_8--;
                                                    }
                                                }
                                                v2_8++;
                                            }
                                        }
                                        if (v10_1 < v3_2.zzsv.size()) {
                                            v6_9.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v6_9.zzxo, v10_1));
                                        }
                                        if (v28_2 != null) {
                                            int v2_53;
                                            com.google.android.gms.measurement.internal.zzaf v5_55 = v22_4;
                                            int v2_50 = this.zzdo().zze(v6_9.zzcf, v5_55);
                                            if (v2_50 == 0) {
                                                v2_53 = new com.google.android.gms.measurement.internal.zzgc;
                                                v2_53(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf(v14_6));
                                            } else {
                                                if (v2_50.value != null) {
                                                    com.google.android.gms.measurement.internal.zzaw v4_109 = new com.google.android.gms.measurement.internal.zzgc;
                                                    v4_109(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf((((Long) v2_50.value).longValue() + v14_6)));
                                                    v2_53 = v4_109;
                                                } else {
                                                }
                                            }
                                            com.google.android.gms.measurement.internal.zzaw v4_117 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby(v5_55).zzan(this.zzl.zzz().currentTimeMillis()).zzao(((Long) v2_53.value).longValue()).zzmr()));
                                            long v7_69 = 0;
                                            while (v7_69 < v6_9.zzxp.length) {
                                                if (!v5_55.equals(v6_9.zzxp[v7_69].getName())) {
                                                    v7_69++;
                                                } else {
                                                    v6_9.zzxp[v7_69] = v4_117;
                                                    com.google.android.gms.measurement.internal.zzaf v5_56 = 1;
                                                }
                                                if (v5_56 == null) {
                                                    v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                    v6_9.zzxp[(v3_2.zzst.zzxp.length - 1)] = v4_117;
                                                }
                                                if (v14_6 > 0) {
                                                    this.zzdo().zza(v2_53);
                                                    this.zzl.zzad().zzdh().zza("Updated lifetime engagement user property with value. Value", v2_53.value);
                                                }
                                            }
                                            v5_56 = 0;
                                        }
                                        if (this.zzl.zzaf().zze(v6_9.zzcf, com.google.android.gms.measurement.internal.zzal.zzin)) {
                                            int v2_58 = this.zzdm();
                                            v2_58.zzad().zzdi().zzaq("Checking account type status for ad personalization signals");
                                            if (v2_58.zzdp().zzbc(v6_9.zzcf)) {
                                                com.google.android.gms.measurement.internal.zzaw v4_131 = v2_58.zzdo().zzae(v6_9.zzcf);
                                                if ((v4_131 != null) && ((v4_131.zzbl()) && (v2_58.zzy().zzcs()))) {
                                                    v2_58.zzad().zzdh().zzaq("Turning off ad personalization due to account type");
                                                    int v2_64 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby("_npa").zzan(v2_58.zzy().zzcq()).zzao(1).zzmr()));
                                                    com.google.android.gms.measurement.internal.zzaw v4_140 = 0;
                                                    while (v4_140 < v6_9.zzxp.length) {
                                                        if (!"_npa".equals(v6_9.zzxp[v4_140].getName())) {
                                                            v4_140++;
                                                        } else {
                                                            v6_9.zzxp[v4_140] = v2_64;
                                                            com.google.android.gms.measurement.internal.zzaw v4_141 = 1;
                                                        }
                                                        if (v4_141 == null) {
                                                            v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                            v6_9.zzxp[(v6_9.zzxp.length - 1)] = v2_64;
                                                        }
                                                    }
                                                    v4_141 = 0;
                                                }
                                            }
                                        }
                                        String v1_19;
                                        int v2_65 = v6_9.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_146 = v6_9.zzxp;
                                        com.google.android.gms.measurement.internal.zzaf v5_80 = v6_9.zzxo;
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_65);
                                        v6_9.zzyg = this.zzdn().zza(v2_65, v5_80, v4_146);
                                        try {
                                            if (!this.zzl.zzaf().zzl(v3_2.zzst.zzcf)) {
                                                v1_19 = v6_9;
                                            } else {
                                                int v2_7 = new java.util.HashMap();
                                                com.google.android.gms.measurement.internal.zzaw v4_151 = new com.google.android.gms.internal.measurement.zzcf[v6_9.zzxo.length];
                                                com.google.android.gms.measurement.internal.zzaf v5_15 = this.zzl.zzab().zzgl();
                                                long v7_18 = v6_9.zzxo;
                                                Boolean v8_14 = v7_18.length;
                                                Object v9_3 = 0;
                                                boolean v10_0 = 0;
                                                while (v9_3 < v8_14) {
                                                    Object v9_0;
                                                    int v19_0;
                                                    com.google.android.gms.internal.measurement.zzbt$zzd[] v26_0;
                                                    int v18_0;
                                                    long v22_0;
                                                    boolean v11_25 = v7_18[v9_3];
                                                    if (!v11_25.name.equals("_ep")) {
                                                        v18_0 = v7_18;
                                                        com.google.android.gms.measurement.internal.zzaf v6_131;
                                                        long v23_4;
                                                        Boolean v12_24 = this.zzdp().zzbd(v3_2.zzst.zzcf);
                                                        v1_0.zzl.zzab();
                                                        long v14_23 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxj.longValue(), v12_24);
                                                        v22_0 = v8_14;
                                                        Boolean v8_50 = Long.valueOf(1);
                                                        if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_50 != null)) {
                                                            v26_0 = v6_9;
                                                            com.google.android.gms.measurement.internal.zzaf v6_117 = v11_25.zzxi;
                                                            v19_0 = v9_3;
                                                            Object v9_47 = v6_117.length;
                                                            v23_4 = v12_24;
                                                            Boolean v12_25 = 0;
                                                            while (v12_25 < v9_47) {
                                                                int v13_17 = v6_117[v12_25];
                                                                if (!"_dbg".equals(v13_17.getName())) {
                                                                    v12_25++;
                                                                } else {
                                                                    if (((!(v8_50 instanceof Long)) || (!v8_50.equals(Long.valueOf(v13_17.zzho())))) && (((!(v8_50 instanceof String)) || (!v8_50.equals(v13_17.zzhl()))) && ((!(v8_50 instanceof Double)) || (!v8_50.equals(Double.valueOf(v13_17.zzhr())))))) {
                                                                        break;
                                                                    }
                                                                    v6_131 = 1;
                                                                }
                                                            }
                                                            v6_131 = 0;
                                                        } else {
                                                            v26_0 = v6_9;
                                                            v19_0 = v9_3;
                                                            v23_4 = v12_24;
                                                        }
                                                        int v13_18;
                                                        if (v6_131 != null) {
                                                            v13_18 = 1;
                                                        } else {
                                                            v13_18 = this.zzdp().zzm(v3_2.zzst.zzcf, v11_25.name);
                                                        }
                                                        if (v13_18 > 0) {
                                                            com.google.android.gms.measurement.internal.zzaf v6_2 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v11_25.name));
                                                            if (v6_2 == null) {
                                                                v6_2 = this.zzdo().zzc(v3_2.zzst.zzcf, v11_25.name);
                                                                if (v6_2 == null) {
                                                                    v1_0.zzl.zzad().zzdd().zza("Event being bundled has no eventAggregate. appId, eventName", v3_2.zzst.zzcf, v11_25.name);
                                                                    v6_2 = new com.google.android.gms.measurement.internal.zzaf;
                                                                    v6_2(v3_2.zzst.zzcf, v11_25.name, 1, 1, v11_25.zzxj.longValue(), 0, 0, 0, 0, 0);
                                                                }
                                                            }
                                                            Boolean v8_56;
                                                            this.zzdm();
                                                            long v7_117 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_eid"));
                                                            if (v7_117 == 0) {
                                                                v8_56 = 0;
                                                            } else {
                                                                v8_56 = 1;
                                                            }
                                                            Boolean v8_57 = Boolean.valueOf(v8_56);
                                                            if (v13_18 != 1) {
                                                                if (v5_15.nextInt(v13_18) != 0) {
                                                                    p44 = v5_15;
                                                                    Boolean v12_0;
                                                                    String v1_5;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_0;
                                                                    if (!v1_0.zzl.zzaf().zzx(v3_2.zzst.zzcf)) {
                                                                        v9_0 = v2_7;
                                                                        v5_0 = v7_117;
                                                                        v12_0 = v8_57;
                                                                        if (Math.abs((v11_25.zzxj.longValue() - v6_2.zzfh)) < 86400000) {
                                                                            v1_5 = 0;
                                                                        } else {
                                                                            v1_5 = 1;
                                                                        }
                                                                    } else {
                                                                        long v23_1;
                                                                        if (v6_2.zzfi == null) {
                                                                            v1_0.zzl.zzab();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                            v23_1 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxk.longValue(), v23_4);
                                                                        } else {
                                                                            v23_1 = v6_2.zzfi.longValue();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                        }
                                                                        if (v23_1 == v14_23) {
                                                                        }
                                                                    }
                                                                    if (v1_5 == null) {
                                                                        if (v12_0.booleanValue()) {
                                                                            v9_0.put(v11_25.name, v6_2.zza(v5_0, 0, 0));
                                                                        }
                                                                    } else {
                                                                        this.zzdm();
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                                        this.zzdm();
                                                                        long v7_6 = ((long) v13_18);
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v7_6));
                                                                        String v1_12 = (v10_0 + 1);
                                                                        v4_151[v10_0] = v11_25;
                                                                        if (v12_0.booleanValue()) {
                                                                            v6_2 = v6_2.zza(0, Long.valueOf(v7_6), Boolean.valueOf(1));
                                                                        }
                                                                        v9_0.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                        v10_0 = v1_12;
                                                                    }
                                                                } else {
                                                                    this.zzdm();
                                                                    Boolean v12_1 = ((long) v13_18);
                                                                    p44 = v5_15;
                                                                    v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v12_1));
                                                                    com.google.android.gms.measurement.internal.zzaf v5_14 = (v10_0 + 1);
                                                                    v4_151[v10_0] = v11_25;
                                                                    if (v8_57.booleanValue()) {
                                                                        v6_2 = v6_2.zza(0, Long.valueOf(v12_1), 0);
                                                                    }
                                                                    v2_7.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                    v9_0 = v2_7;
                                                                    v10_0 = v5_14;
                                                                }
                                                            } else {
                                                                long v7_13 = (v10_0 + 1);
                                                                v4_151[v10_0] = v11_25;
                                                                if ((v8_57.booleanValue()) && ((v6_2.zzfj != null) || ((v6_2.zzfk != null) || (v6_2.zzfl != null)))) {
                                                                    v2_7.put(v11_25.name, v6_2.zza(0, 0, 0));
                                                                }
                                                                v9_0 = v2_7;
                                                                p44 = v5_15;
                                                                v10_0 = v7_13;
                                                            }
                                                        } else {
                                                            v1_0.zzl.zzad().zzdd().zza("Sample rate must be positive. event, rate", v11_25.name, Integer.valueOf(v13_18));
                                                            com.google.android.gms.measurement.internal.zzaf v6_8 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            v9_0 = v2_7;
                                                            p44 = v5_15;
                                                            v10_0 = v6_8;
                                                        }
                                                    } else {
                                                        this.zzdm();
                                                        Boolean v12_4 = ((String) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_en"));
                                                        int v13_1 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v12_4));
                                                        if (v13_1 == 0) {
                                                            v13_1 = this.zzdo().zzc(v3_2.zzst.zzcf, v12_4);
                                                            v2_7.put(v12_4, v13_1);
                                                        }
                                                        if (v13_1.zzfj != null) {
                                                            v18_0 = v7_18;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                        } else {
                                                            if (v13_1.zzfk.longValue() > 1) {
                                                                this.zzdm();
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", v13_1.zzfk);
                                                            }
                                                            if ((v13_1.zzfl == null) || (!v13_1.zzfl.booleanValue())) {
                                                                v18_0 = v7_18;
                                                            } else {
                                                                this.zzdm();
                                                                v18_0 = v7_18;
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                            }
                                                            long v7_17 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                            v10_0 = v7_17;
                                                        }
                                                        v22_0 = v8_14;
                                                        v19_0 = v9_3;
                                                        v9_0 = v2_7;
                                                    }
                                                    v5_15 = p44;
                                                    v2_7 = v9_0;
                                                    v7_18 = v18_0;
                                                    v8_14 = v22_0;
                                                    v6_9 = v26_0;
                                                    v9_3 = (v19_0 + 1);
                                                    v1_0 = this;
                                                }
                                                Object v9_44 = v2_7;
                                                v1_19 = v6_9;
                                                if (v10_0 < v1_19.zzxo.length) {
                                                    v1_19.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v4_151, v10_0));
                                                }
                                                int v2_76 = v9_44.entrySet().iterator();
                                                while (v2_76.hasNext()) {
                                                    this.zzdo().zza(((com.google.android.gms.measurement.internal.zzaf) ((java.util.Map$Entry) v2_76.next()).getValue()));
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v1_14 = v0_2;
                                            this.zzdo().endTransaction();
                                            throw v1_14;
                                        }
                                        v1_19.zzxr = Long.valueOf(nan);
                                        v1_19.zzxs = Long.valueOf(-0.0);
                                        int v2_79 = 0;
                                        while (v2_79 < v1_19.zzxo.length) {
                                            com.google.android.gms.measurement.internal.zzaw v4_184 = v1_19.zzxo[v2_79];
                                            if (v4_184.zzxj.longValue() < v1_19.zzxr.longValue()) {
                                                v1_19.zzxr = v4_184.zzxj;
                                            }
                                            if (v4_184.zzxj.longValue() > v1_19.zzxs.longValue()) {
                                                v1_19.zzxs = v4_184.zzxj;
                                            }
                                            v2_79++;
                                        }
                                        com.google.android.gms.measurement.internal.zzaf v5_83;
                                        int v2_81 = v3_2.zzst.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_158 = this.zzdo().zzae(v2_81);
                                        if (v4_158 != null) {
                                            v5_83 = this;
                                            if (v1_19.zzxo.length > 0) {
                                                Boolean v8_46;
                                                com.google.android.gms.measurement.internal.zzaf v6_93 = v4_158.zzar();
                                                if (v6_93 == 0) {
                                                    v8_46 = 0;
                                                } else {
                                                    v8_46 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxu = v8_46;
                                                Boolean v8_47 = v4_158.zzaq();
                                                if (v8_47 != 0) {
                                                    v6_93 = v8_47;
                                                } else {
                                                }
                                                com.google.android.gms.measurement.internal.zzaf v6_94;
                                                if (v6_93 == 0) {
                                                    v6_94 = 0;
                                                } else {
                                                    v6_94 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxt = v6_94;
                                                v4_158.zzbb();
                                                v1_19.zzye = Integer.valueOf(((int) v4_158.zzay()));
                                                v4_158.zze(v1_19.zzxr.longValue());
                                                v4_158.zzf(v1_19.zzxs.longValue());
                                                v1_19.zzdn = v4_158.zzbj();
                                                this.zzdo().zza(v4_158);
                                            }
                                        } else {
                                            v5_83 = this;
                                            this.zzl.zzad().zzda().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                        }
                                        if (v1_19.zzxo.length > 0) {
                                            com.google.android.gms.measurement.internal.zzaw v4_167;
                                            v5_83.zzl.zzag();
                                            com.google.android.gms.measurement.internal.zzaw v4_166 = this.zzdp().zzay(v3_2.zzst.zzcf);
                                            if (v4_166 == null) {
                                                if (!android.text.TextUtils.isEmpty(v3_2.zzst.zzch)) {
                                                    v5_83.zzl.zzad().zzdd().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                } else {
                                                    v4_167 = Long.valueOf(-1);
                                                    v1_19.zzyl = v4_167;
                                                }
                                            } else {
                                                if (v4_166.zzxa != null) {
                                                    v4_167 = v4_166.zzxa;
                                                } else {
                                                }
                                            }
                                            this.zzdo().zza(v1_19, v17_2);
                                        }
                                        String v1_20 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_3 = v3_2.zzsu;
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_3);
                                        v1_20.zzq();
                                        v1_20.zzah();
                                        com.google.android.gms.measurement.internal.zzaw v4_176 = new StringBuilder("rowid in (");
                                        com.google.android.gms.measurement.internal.zzaf v6_110 = 0;
                                        while (v6_110 < v3_3.size()) {
                                            if (v6_110 != null) {
                                                v4_176.append(",");
                                            }
                                            v4_176.append(((Long) v3_3.get(v6_110)).longValue());
                                            v6_110++;
                                        }
                                        v4_176.append(")");
                                        com.google.android.gms.measurement.internal.zzaw v4_178 = v1_20.getWritableDatabase().delete("raw_events", v4_176.toString(), 0);
                                        if (v4_178 != v3_3.size()) {
                                            v1_20.zzad().zzda().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_178), Integer.valueOf(v3_3.size()));
                                        }
                                        String v1_23 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_6 = v1_23.getWritableDatabase();
                                        try {
                                            com.google.android.gms.measurement.internal.zzaf v6_116 = new String[2];
                                            v6_116[0] = v2_81;
                                            v6_116[1] = v2_81;
                                            v3_6.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_116);
                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                            v1_23.zzad().zzda().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_81), v0_6);
                                        }
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 1;
                                    }
                                } else {
                                    v6_1.close();
                                }
                            }
                            if (v8_0.moveToFirst()) {
                                try {
                                    Object v9_14 = com.google.android.gms.internal.measurement.zzch.zzf(v8_0.getBlob(0));
                                } catch (android.database.sqlite.SQLiteException v0_3) {
                                    v5_90.zzad().zzda().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0), v0_3);
                                    if (v8_0 == null) {
                                    }
                                }
                                if (v8_0.moveToNext()) {
                                    v5_90.zzad().zzdd().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                }
                                int v18_4;
                                int v17_3;
                                v8_0.close();
                                v3_2.zzb(v9_14);
                                if (v6_0 == -1) {
                                    Object v9_28 = new String[2];
                                    v9_28[0] = v4_0;
                                    v9_28[1] = v11_0;
                                    v17_3 = "app_id = ? and metadata_fingerprint = ?";
                                    v18_4 = v9_28;
                                } else {
                                    long v14_15 = new String[3];
                                    v14_15[0] = v4_0;
                                    v14_15[1] = v11_0;
                                    v14_15[2] = String.valueOf(v6_0);
                                    v17_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v18_4 = v14_15;
                                }
                                v6_1 = v10_7.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v17_3, v18_4, 0, 0, "rowid", 0);
                                try {
                                    if (!v6_1.moveToFirst()) {
                                        v5_90.zzad().zzdd().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                        if (v6_1 == null) {
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v8_0 = v6_1;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                }
                                do {
                                    long v7_48 = v6_1.getLong(0);
                                    Object v9_39 = com.google.android.gms.internal.measurement.zzcf.zze(v6_1.getBlob(3));
                                    v9_39.name = v6_1.getString(1);
                                    v9_39.zzxj = Long.valueOf(v6_1.getLong(2));
                                    if (v3_2.zza(v7_48, v9_39)) {
                                    } else {
                                        if (v6_1 == null) {
                                        } else {
                                        }
                                    }
                                } while(v6_1.moveToNext());
                                if (v6_1 == null) {
                                }
                            } else {
                                v5_90.zzad().zzda().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                if (v8_0 == null) {
                                }
                            }
                            v8_0.close();
                        } else {
                            if (v4_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v8_44;
                        long v14_20 = v6_0 cmp -1;
                        try {
                            if (v14_20 == 0) {
                                v8_44 = new String[1];
                                v8_44[0] = String.valueOf(p45);
                            } else {
                                v8_44 = new String[2];
                                v8_44[0] = String.valueOf(v6_0);
                                v8_44[1] = String.valueOf(p45);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v6_1 = 0;
                            v8_3 = 0;
                        }
                        long v14_21;
                        if (v14_20 == 0) {
                            v14_21 = "";
                        } else {
                            v14_21 = "rowid <= ? and ";
                        }
                        boolean v11_24 = new StringBuilder((v14_21.length() + 148));
                        v11_24.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_24.append(v14_21);
                        v11_24.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v11_24.toString(), v8_44);
                        if (v4_0.moveToFirst()) {
                            Boolean v8_2 = v4_0.getString(0);
                            try {
                                v11_0 = v4_0.getString(1);
                                v4_0.close();
                                v8_3 = v4_0;
                                v4_0 = v8_2;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_1 = v4_0;
                            }
                        } else {
                            if (v4_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_0 = v4_0;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_1 = v4_0;
                    v8_3 = 0;
                }
                v4_0.close();
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v4_100 = v0_7;
                v6_1 = 0;
                v8_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final boolean zzd(String p44, long p45)
    {
        String v1_0 = this;
        int v2_0 = "_lte";
        this.zzdo().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaw v4_0 = 0;
            android.database.sqlite.SQLiteException v3_2 = new com.google.android.gms.measurement.internal.zzft$zza(this, 0);
            com.google.android.gms.measurement.internal.zzaf v5_90 = this.zzdo();
            com.google.android.gms.measurement.internal.zzaf v6_0 = this.zzsp;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_2);
            v5_90.zzq();
            v5_90.zzah();
            try {
                boolean v11_0;
                Long v15_10 = v5_90.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        boolean v11_21;
                        com.google.android.gms.measurement.internal.zzaw v4_99 = v6_0 cmp -1;
                        if (v4_99 == null) {
                            v11_21 = new String[] {0});
                        } else {
                            v11_21 = new String[2];
                            v11_21[0] = 0;
                            v11_21[1] = String.valueOf(v6_0);
                        }
                        com.google.android.gms.measurement.internal.zzaw v4_106;
                        if (v4_99 == null) {
                            v4_106 = "";
                        } else {
                            v4_106 = " and rowid <= ?";
                        }
                        long v14_19 = new StringBuilder((v4_106.length() + 84));
                        v14_19.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_19.append(v4_106);
                        v14_19.append(" order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v14_19.toString(), v11_21);
                        if (v4_0.moveToFirst()) {
                            v11_0 = v4_0.getString(0);
                            v4_0.close();
                            v4_0 = 0;
                            try {
                                Object v9_7 = new String[2];
                                v9_7[0] = v4_0;
                                v9_7[1] = v11_0;
                                boolean v10_7 = v15_10;
                                Boolean v8_0 = v15_10.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v9_7, 0, 0, "rowid", "2");
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                String v1_15 = v0_1;
                                if (v8_0 != null) {
                                    v8_0.close();
                                }
                                throw v1_15;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                com.google.android.gms.measurement.internal.zzaf v6_1 = v8_0;
                                Boolean v8_3 = v4_0;
                                com.google.android.gms.measurement.internal.zzaw v4_100 = v0_0;
                                try {
                                    v5_90.zzad().zzda().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v8_3), v4_100);
                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                    v1_15 = v0_5;
                                    v8_0 = v6_1;
                                }
                                if (v6_1 == null) {
                                    com.google.android.gms.measurement.internal.zzaw v4_104;
                                    if (v3_2.zzsv == null) {
                                        v4_104 = 1;
                                    } else {
                                        if (!v3_2.zzsv.isEmpty()) {
                                            v4_104 = 0;
                                        } else {
                                        }
                                    }
                                    if (v4_104 != null) {
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 0;
                                    } else {
                                        com.google.android.gms.measurement.internal.zzaw v4_98 = v3_2.zzst;
                                        com.google.android.gms.measurement.internal.zzaf v5_52 = new com.google.android.gms.internal.measurement.zzcf[v3_2.zzsv.size()];
                                        v4_98.zzxo = v5_52;
                                        com.google.android.gms.measurement.internal.zzaf v5_47 = this.zzl.zzaf().zzm(v4_98.zzcf);
                                        com.google.android.gms.measurement.internal.zzaf v6_84 = this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzim);
                                        long v7_44 = 0;
                                        Object v9_36 = 0;
                                        boolean v10_33 = 0;
                                        boolean v11_11 = 0;
                                        int v13_7 = 0;
                                        long v14_14 = 0;
                                        while(true) {
                                            Boolean v12_16 = "_et";
                                            int v17_2 = v13_7;
                                            int v18_5 = v14_14;
                                            if (v9_36 >= v3_2.zzsv.size()) {
                                                break;
                                            }
                                            int v2_23;
                                            com.google.android.gms.measurement.internal.zzaf v6_72;
                                            com.google.android.gms.measurement.internal.zzaf v27_0;
                                            long v23_2;
                                            String v28_0;
                                            Boolean v8_18 = ((com.google.android.gms.internal.measurement.zzcf) v3_2.zzsv.get(v9_36));
                                            long v22_1 = v2_0;
                                            if (!this.zzdp().zzk(v3_2.zzst.zzcf, v8_18.name)) {
                                                com.google.android.gms.internal.measurement.zzbt$zzd[] v26_1;
                                                String v29_0;
                                                long v30_0;
                                                long v25_0;
                                                Boolean v12_14;
                                                v23_2 = v9_36;
                                                int v2_12 = this.zzdp().zzl(v3_2.zzst.zzcf, v8_18.name);
                                                if (v2_12 != 0) {
                                                    v26_1 = v4_98;
                                                    v25_0 = v10_33;
                                                    if (v8_18.zzxi == null) {
                                                        boolean v10_5 = new com.google.android.gms.internal.measurement.zzbt$zzd[0];
                                                        v8_18.zzxi = v10_5;
                                                    }
                                                    v27_0 = v6_84;
                                                    com.google.android.gms.measurement.internal.zzaw v4_14 = 0;
                                                    boolean v10_6 = 0;
                                                    Long v15_5 = 0;
                                                    while(true) {
                                                        v28_0 = v5_47;
                                                        if (v4_14 >= v8_18.zzxi.length) {
                                                            break;
                                                        }
                                                        long v30_1;
                                                        com.google.android.gms.measurement.internal.zzaf v6_79 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v8_18.zzxi[v4_14].zzmh()));
                                                        String v29_1 = v11_11;
                                                        if (!"_c".equals(v6_79.getName())) {
                                                            v30_1 = v12_16;
                                                            if ("_r".equals(v6_79.getName())) {
                                                                v6_79.zzaj(1);
                                                                v15_5 = 1;
                                                            }
                                                        } else {
                                                            v30_1 = v12_16;
                                                            v6_79.zzaj(1);
                                                            v10_6 = 1;
                                                        }
                                                        v8_18.zzxi[v4_14] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_79.zzmr()));
                                                        v4_14++;
                                                        v5_47 = v28_0;
                                                        v11_11 = v29_1;
                                                        v12_16 = v30_1;
                                                    }
                                                    v29_0 = v11_11;
                                                    v30_0 = v12_16;
                                                    if ((!v10_6) && (v2_12 != 0)) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as conversion", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_20 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_20[(v4_20.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_c").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_20;
                                                    }
                                                    if (v15_5 == null) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as real-time", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_26 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_26[(v4_26.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_r").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_26;
                                                    }
                                                    v12_14 = v7_44;
                                                    if (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 0, 0, 1).zzep <= ((long) this.zzl.zzaf().zzi(v3_2.zzst.zzcf))) {
                                                        v17_2 = 1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzaw v4_34 = 0;
                                                        while (v4_34 < v8_18.zzxi.length) {
                                                            if (!"_r".equals(v8_18.zzxi[v4_34].getName())) {
                                                                v4_34++;
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzaf v5_26 = new com.google.android.gms.internal.measurement.zzbt$zzd[(v8_18.zzxi.length - 1)];
                                                                if (v4_34 > null) {
                                                                    System.arraycopy(v8_18.zzxi, 0, v5_26, 0, v4_34);
                                                                }
                                                                if (v4_34 < v5_26.length) {
                                                                    System.arraycopy(v8_18.zzxi, (v4_34 + 1), v5_26, v4_34, (v5_26.length - v4_34));
                                                                }
                                                                v8_18.zzxi = v5_26;
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    if ((com.google.android.gms.measurement.internal.zzgd.zzbm(v8_18.name)) && ((v2_12 != 0) && (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 1, 0, 0).zzen > ((long) this.zzl.zzaf().zzb(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzgq))))) {
                                                        this.zzl.zzad().zzdd().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                        com.google.android.gms.measurement.internal.zzaw v4_44 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v5_28 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v6_53 = 0;
                                                        long v7_33 = -1;
                                                        while (v4_44 < v8_18.zzxi.length) {
                                                            boolean v10_39 = v8_18.zzxi[v4_44];
                                                            if (!"_c".equals(v10_39.getName())) {
                                                                if ("_err".equals(v10_39.getName())) {
                                                                    v5_28 = 1;
                                                                }
                                                            } else {
                                                                v6_53 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v10_39.zzmh()));
                                                                v7_33 = v4_44;
                                                            }
                                                            v4_44++;
                                                        }
                                                        if ((v5_28 == null) || (v6_53 == null)) {
                                                            if (v6_53 == null) {
                                                                this.zzl.zzad().zzda().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                            } else {
                                                                v8_18.zzxi[v7_33] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v6_53.clone())).zzbw("_err").zzaj(10).zzmr()));
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzaw v4_56 = v8_18.zzxi;
                                                            long v7_35 = new com.google.android.gms.internal.measurement.zzbt$zzd[1];
                                                            v7_35[0] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_53.zzmr()));
                                                            v8_18.zzxi = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v4_56, v7_35));
                                                        }
                                                    }
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaw v4_4;
                                                    this.zzdm();
                                                    Long v15_4 = v8_18.name;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_4);
                                                    v25_0 = v10_33;
                                                    boolean v10_2 = v15_4.hashCode();
                                                    v26_1 = v4_98;
                                                    if (v10_2 == 94660) {
                                                        if (!v15_4.equals("_in")) {
                                                            v4_4 = -1;
                                                        } else {
                                                            v4_4 = 0;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95025) {
                                                            if (!v15_4.equals("_ug")) {
                                                            } else {
                                                                v4_4 = 2;
                                                            }
                                                        } else {
                                                            if (v10_2 == 95027) {
                                                                if (!v15_4.equals("_ui")) {
                                                                } else {
                                                                    v4_4 = 1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                    }
                                                    if ((v4_4 == null) || ((v4_4 == 1) || (v4_4 == 2))) {
                                                        com.google.android.gms.measurement.internal.zzaw v4_11 = 1;
                                                    } else {
                                                        v4_11 = 0;
                                                    }
                                                    if (v4_11 == null) {
                                                        v28_0 = v5_47;
                                                        v27_0 = v6_84;
                                                        v29_0 = v11_11;
                                                        v30_0 = "_et";
                                                        v12_14 = v7_44;
                                                    } else {
                                                    }
                                                }
                                                if ((!this.zzl.zzaf().zzv(v3_2.zzst.zzcf)) || (v2_12 == 0)) {
                                                } else {
                                                    int v2_13 = v8_18.zzxi;
                                                    com.google.android.gms.measurement.internal.zzaw v4_62 = 0;
                                                    com.google.android.gms.measurement.internal.zzaf v5_38 = -1;
                                                    com.google.android.gms.measurement.internal.zzaf v6_58 = -1;
                                                    while (v4_62 < v2_13.length) {
                                                        if (!"value".equals(v2_13[v4_62].getName())) {
                                                            if ("currency".equals(v2_13[v4_62].getName())) {
                                                                v6_58 = v4_62;
                                                            }
                                                        } else {
                                                            v5_38 = v4_62;
                                                        }
                                                        v4_62++;
                                                    }
                                                    if (v5_38 == -1) {
                                                    } else {
                                                        if ((v2_13[v5_38].zzhn()) || (v2_13[v5_38].zzhq())) {
                                                            com.google.android.gms.measurement.internal.zzaw v4_71;
                                                            if (v6_58 != -1) {
                                                                com.google.android.gms.measurement.internal.zzaw v4_70 = v2_13[v6_58].zzhl();
                                                                if (v4_70.length() == 3) {
                                                                    com.google.android.gms.measurement.internal.zzaf v6_60 = 0;
                                                                    while (v6_60 < v4_70.length()) {
                                                                        boolean v10_31 = v4_70.codePointAt(v6_60);
                                                                        if (Character.isLetter(v10_31)) {
                                                                            v6_60 += Character.charCount(v10_31);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v4_71 = 0;
                                                                    if (v4_71 != null) {
                                                                        this.zzl.zzad().zzdf().zzaq("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 19, "currency");
                                                                    }
                                                                    v8_18.zzxi = v2_13;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_44;
                                                                    com.google.android.gms.measurement.internal.zzaw v4_84;
                                                                    if (!this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzil)) {
                                                                        v2_23 = v12_14;
                                                                        v5_44 = v29_0;
                                                                        v4_84 = v30_0;
                                                                    } else {
                                                                        if (!"_e".equals(v8_18.name)) {
                                                                            v2_23 = v12_14;
                                                                            if (!"_vs".equals(v8_18.name)) {
                                                                            } else {
                                                                                this.zzdm();
                                                                                v4_84 = v30_0;
                                                                                if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, v4_84) != null) {
                                                                                    v5_44 = v29_0;
                                                                                    if ((v28_0 == null) || ((v27_0 != null) || (!"_e".equals(v8_18.name)))) {
                                                                                        v14_14 = v18_5;
                                                                                    } else {
                                                                                        Object v9_25;
                                                                                        com.google.android.gms.measurement.internal.zzaf v6_71;
                                                                                        com.google.android.gms.measurement.internal.zzaw v4_94;
                                                                                        if (v8_18.zzxi == null) {
                                                                                            v4_94 = this.zzl.zzad().zzdd();
                                                                                            v6_71 = "Engagement event does not contain any parameters. appId";
                                                                                            v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                        } else {
                                                                                            if (v8_18.zzxi.length != 0) {
                                                                                                this.zzdm();
                                                                                                com.google.android.gms.measurement.internal.zzaw v4_91 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v8_18, v4_84));
                                                                                                if (v4_91 != null) {
                                                                                                    v14_14 = (v18_5 + v4_91.longValue());
                                                                                                    v6_72 = v26_1;
                                                                                                    v10_33 = (v25_0 + 1);
                                                                                                    v6_72.zzxo[v25_0] = v8_18;
                                                                                                    v11_11 = v5_44;
                                                                                                    v13_7 = v17_2;
                                                                                                    v9_36 = (v23_2 + 1);
                                                                                                    v7_44 = v2_23;
                                                                                                    v4_98 = v6_72;
                                                                                                    v2_0 = v22_1;
                                                                                                    v6_84 = v27_0;
                                                                                                    v5_47 = v28_0;
                                                                                                } else {
                                                                                                    v4_94 = this.zzl.zzad().zzdd();
                                                                                                    v6_71 = "Engagement event does not include duration. appId";
                                                                                                    v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        v4_94.zza(v6_71, v9_25);
                                                                                    }
                                                                                } else {
                                                                                    if (v29_0 == null) {
                                                                                        v5_44 = v29_0;
                                                                                    } else {
                                                                                        v5_44 = v29_0;
                                                                                        if ((Math.abs((v5_44.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v5_44, v8_18))) {
                                                                                            v2_23 = 0;
                                                                                            v5_44 = 0;
                                                                                        }
                                                                                    }
                                                                                    v2_23 = v8_18;
                                                                                }
                                                                            }
                                                                        } else {
                                                                            this.zzdm();
                                                                            if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, "_fr") != null) {
                                                                            } else {
                                                                                if (v12_14 == null) {
                                                                                    v2_23 = v12_14;
                                                                                } else {
                                                                                    v2_23 = v12_14;
                                                                                    if ((Math.abs((v2_23.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v8_18, v2_23))) {
                                                                                        v4_84 = v30_0;
                                                                                    }
                                                                                }
                                                                                v5_44 = v8_18;
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                                v4_71 = 1;
                                                            } else {
                                                                v4_71 = 1;
                                                            }
                                                        } else {
                                                            this.zzl.zzad().zzdf().zzaq("Value must be specified with a numeric type.");
                                                            v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 18, "value");
                                                        }
                                                    }
                                                }
                                            } else {
                                                int v2_37;
                                                v23_2 = v9_36;
                                                this.zzl.zzad().zzdd().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf), this.zzl.zzaa().zzal(v8_18.name));
                                                if (this.zzdp().zzbe(v3_2.zzst.zzcf)) {
                                                    v2_37 = 1;
                                                } else {
                                                    if (!this.zzdp().zzbf(v3_2.zzst.zzcf)) {
                                                        v2_37 = 0;
                                                    } else {
                                                    }
                                                }
                                                if ((v2_37 == 0) && (!"_err".equals(v8_18.name))) {
                                                    this.zzl.zzab().zza(v3_2.zzst.zzcf, 11, "_ev", v8_18.name, 0);
                                                }
                                                v28_0 = v5_47;
                                                v27_0 = v6_84;
                                                v2_23 = v7_44;
                                                v13_7 = v17_2;
                                                v14_14 = v18_5;
                                                v6_72 = v4_98;
                                            }
                                        }
                                        boolean v10_1;
                                        long v14_6;
                                        long v22_4 = v2_0;
                                        String v28_2 = v5_47;
                                        long v25_2 = v10_33;
                                        com.google.android.gms.measurement.internal.zzaf v6_9 = v4_98;
                                        if (v6_84 == null) {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                        } else {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                            int v2_8 = 0;
                                            while (v2_8 < v10_1) {
                                                com.google.android.gms.measurement.internal.zzaf v5_17 = v6_9.zzxo[v2_8];
                                                if (!"_e".equals(v5_17.name)) {
                                                    if (v28_2 != null) {
                                                        this.zzdm();
                                                        com.google.android.gms.measurement.internal.zzaf v5_18 = com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_et");
                                                        if (v5_18 != null) {
                                                            com.google.android.gms.measurement.internal.zzaf v5_19;
                                                            if (!v5_18.zzhn()) {
                                                                v5_19 = 0;
                                                            } else {
                                                                v5_19 = Long.valueOf(v5_18.zzho());
                                                            }
                                                            if ((v5_19 != null) && (v5_19.longValue() > 0)) {
                                                                v14_6 += v5_19.longValue();
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    this.zzdm();
                                                    if (com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_fr") == null) {
                                                    } else {
                                                        System.arraycopy(v6_9.zzxo, (v2_8 + 1), v6_9.zzxo, v2_8, ((v10_1 - v2_8) - 1));
                                                        v10_1--;
                                                        v2_8--;
                                                    }
                                                }
                                                v2_8++;
                                            }
                                        }
                                        if (v10_1 < v3_2.zzsv.size()) {
                                            v6_9.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v6_9.zzxo, v10_1));
                                        }
                                        if (v28_2 != null) {
                                            int v2_53;
                                            com.google.android.gms.measurement.internal.zzaf v5_55 = v22_4;
                                            int v2_50 = this.zzdo().zze(v6_9.zzcf, v5_55);
                                            if (v2_50 == 0) {
                                                v2_53 = new com.google.android.gms.measurement.internal.zzgc;
                                                v2_53(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf(v14_6));
                                            } else {
                                                if (v2_50.value != null) {
                                                    com.google.android.gms.measurement.internal.zzaw v4_109 = new com.google.android.gms.measurement.internal.zzgc;
                                                    v4_109(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf((((Long) v2_50.value).longValue() + v14_6)));
                                                    v2_53 = v4_109;
                                                } else {
                                                }
                                            }
                                            com.google.android.gms.measurement.internal.zzaw v4_117 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby(v5_55).zzan(this.zzl.zzz().currentTimeMillis()).zzao(((Long) v2_53.value).longValue()).zzmr()));
                                            long v7_69 = 0;
                                            while (v7_69 < v6_9.zzxp.length) {
                                                if (!v5_55.equals(v6_9.zzxp[v7_69].getName())) {
                                                    v7_69++;
                                                } else {
                                                    v6_9.zzxp[v7_69] = v4_117;
                                                    com.google.android.gms.measurement.internal.zzaf v5_56 = 1;
                                                }
                                                if (v5_56 == null) {
                                                    v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                    v6_9.zzxp[(v3_2.zzst.zzxp.length - 1)] = v4_117;
                                                }
                                                if (v14_6 > 0) {
                                                    this.zzdo().zza(v2_53);
                                                    this.zzl.zzad().zzdh().zza("Updated lifetime engagement user property with value. Value", v2_53.value);
                                                }
                                            }
                                            v5_56 = 0;
                                        }
                                        if (this.zzl.zzaf().zze(v6_9.zzcf, com.google.android.gms.measurement.internal.zzal.zzin)) {
                                            int v2_58 = this.zzdm();
                                            v2_58.zzad().zzdi().zzaq("Checking account type status for ad personalization signals");
                                            if (v2_58.zzdp().zzbc(v6_9.zzcf)) {
                                                com.google.android.gms.measurement.internal.zzaw v4_131 = v2_58.zzdo().zzae(v6_9.zzcf);
                                                if ((v4_131 != null) && ((v4_131.zzbl()) && (v2_58.zzy().zzcs()))) {
                                                    v2_58.zzad().zzdh().zzaq("Turning off ad personalization due to account type");
                                                    int v2_64 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby("_npa").zzan(v2_58.zzy().zzcq()).zzao(1).zzmr()));
                                                    com.google.android.gms.measurement.internal.zzaw v4_140 = 0;
                                                    while (v4_140 < v6_9.zzxp.length) {
                                                        if (!"_npa".equals(v6_9.zzxp[v4_140].getName())) {
                                                            v4_140++;
                                                        } else {
                                                            v6_9.zzxp[v4_140] = v2_64;
                                                            com.google.android.gms.measurement.internal.zzaw v4_141 = 1;
                                                        }
                                                        if (v4_141 == null) {
                                                            v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                            v6_9.zzxp[(v6_9.zzxp.length - 1)] = v2_64;
                                                        }
                                                    }
                                                    v4_141 = 0;
                                                }
                                            }
                                        }
                                        String v1_19;
                                        int v2_65 = v6_9.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_146 = v6_9.zzxp;
                                        com.google.android.gms.measurement.internal.zzaf v5_80 = v6_9.zzxo;
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_65);
                                        v6_9.zzyg = this.zzdn().zza(v2_65, v5_80, v4_146);
                                        try {
                                            if (!this.zzl.zzaf().zzl(v3_2.zzst.zzcf)) {
                                                v1_19 = v6_9;
                                            } else {
                                                int v2_7 = new java.util.HashMap();
                                                com.google.android.gms.measurement.internal.zzaw v4_151 = new com.google.android.gms.internal.measurement.zzcf[v6_9.zzxo.length];
                                                com.google.android.gms.measurement.internal.zzaf v5_15 = this.zzl.zzab().zzgl();
                                                long v7_18 = v6_9.zzxo;
                                                Boolean v8_14 = v7_18.length;
                                                Object v9_3 = 0;
                                                boolean v10_0 = 0;
                                                while (v9_3 < v8_14) {
                                                    int v18_0;
                                                    long v22_0;
                                                    Object v9_0;
                                                    int v19_0;
                                                    com.google.android.gms.internal.measurement.zzbt$zzd[] v26_0;
                                                    boolean v11_25 = v7_18[v9_3];
                                                    if (!v11_25.name.equals("_ep")) {
                                                        v18_0 = v7_18;
                                                        long v23_4;
                                                        com.google.android.gms.measurement.internal.zzaf v6_131;
                                                        Boolean v12_24 = this.zzdp().zzbd(v3_2.zzst.zzcf);
                                                        v1_0.zzl.zzab();
                                                        long v14_23 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxj.longValue(), v12_24);
                                                        v22_0 = v8_14;
                                                        Boolean v8_50 = Long.valueOf(1);
                                                        if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_50 != null)) {
                                                            v26_0 = v6_9;
                                                            com.google.android.gms.measurement.internal.zzaf v6_117 = v11_25.zzxi;
                                                            v19_0 = v9_3;
                                                            Object v9_47 = v6_117.length;
                                                            v23_4 = v12_24;
                                                            Boolean v12_25 = 0;
                                                            while (v12_25 < v9_47) {
                                                                int v13_17 = v6_117[v12_25];
                                                                if (!"_dbg".equals(v13_17.getName())) {
                                                                    v12_25++;
                                                                } else {
                                                                    if (((!(v8_50 instanceof Long)) || (!v8_50.equals(Long.valueOf(v13_17.zzho())))) && (((!(v8_50 instanceof String)) || (!v8_50.equals(v13_17.zzhl()))) && ((!(v8_50 instanceof Double)) || (!v8_50.equals(Double.valueOf(v13_17.zzhr())))))) {
                                                                        break;
                                                                    }
                                                                    v6_131 = 1;
                                                                }
                                                            }
                                                            v6_131 = 0;
                                                        } else {
                                                            v26_0 = v6_9;
                                                            v19_0 = v9_3;
                                                            v23_4 = v12_24;
                                                        }
                                                        int v13_18;
                                                        if (v6_131 != null) {
                                                            v13_18 = 1;
                                                        } else {
                                                            v13_18 = this.zzdp().zzm(v3_2.zzst.zzcf, v11_25.name);
                                                        }
                                                        if (v13_18 > 0) {
                                                            com.google.android.gms.measurement.internal.zzaf v6_2 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v11_25.name));
                                                            if (v6_2 == null) {
                                                                v6_2 = this.zzdo().zzc(v3_2.zzst.zzcf, v11_25.name);
                                                                if (v6_2 == null) {
                                                                    v1_0.zzl.zzad().zzdd().zza("Event being bundled has no eventAggregate. appId, eventName", v3_2.zzst.zzcf, v11_25.name);
                                                                    v6_2 = new com.google.android.gms.measurement.internal.zzaf;
                                                                    v6_2(v3_2.zzst.zzcf, v11_25.name, 1, 1, v11_25.zzxj.longValue(), 0, 0, 0, 0, 0);
                                                                }
                                                            }
                                                            Boolean v8_56;
                                                            this.zzdm();
                                                            long v7_117 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_eid"));
                                                            if (v7_117 == 0) {
                                                                v8_56 = 0;
                                                            } else {
                                                                v8_56 = 1;
                                                            }
                                                            Boolean v8_57 = Boolean.valueOf(v8_56);
                                                            if (v13_18 != 1) {
                                                                if (v5_15.nextInt(v13_18) != 0) {
                                                                    p44 = v5_15;
                                                                    Boolean v12_0;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_0;
                                                                    String v1_5;
                                                                    if (!v1_0.zzl.zzaf().zzx(v3_2.zzst.zzcf)) {
                                                                        v9_0 = v2_7;
                                                                        v5_0 = v7_117;
                                                                        v12_0 = v8_57;
                                                                        if (Math.abs((v11_25.zzxj.longValue() - v6_2.zzfh)) < 86400000) {
                                                                            v1_5 = 0;
                                                                        } else {
                                                                            v1_5 = 1;
                                                                        }
                                                                    } else {
                                                                        long v23_1;
                                                                        if (v6_2.zzfi == null) {
                                                                            v1_0.zzl.zzab();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                            v23_1 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxk.longValue(), v23_4);
                                                                        } else {
                                                                            v23_1 = v6_2.zzfi.longValue();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                        }
                                                                        if (v23_1 == v14_23) {
                                                                        }
                                                                    }
                                                                    if (v1_5 == null) {
                                                                        if (v12_0.booleanValue()) {
                                                                            v9_0.put(v11_25.name, v6_2.zza(v5_0, 0, 0));
                                                                        }
                                                                    } else {
                                                                        this.zzdm();
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                                        this.zzdm();
                                                                        long v7_6 = ((long) v13_18);
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v7_6));
                                                                        String v1_12 = (v10_0 + 1);
                                                                        v4_151[v10_0] = v11_25;
                                                                        if (v12_0.booleanValue()) {
                                                                            v6_2 = v6_2.zza(0, Long.valueOf(v7_6), Boolean.valueOf(1));
                                                                        }
                                                                        v9_0.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                        v10_0 = v1_12;
                                                                    }
                                                                } else {
                                                                    this.zzdm();
                                                                    Boolean v12_1 = ((long) v13_18);
                                                                    p44 = v5_15;
                                                                    v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v12_1));
                                                                    com.google.android.gms.measurement.internal.zzaf v5_14 = (v10_0 + 1);
                                                                    v4_151[v10_0] = v11_25;
                                                                    if (v8_57.booleanValue()) {
                                                                        v6_2 = v6_2.zza(0, Long.valueOf(v12_1), 0);
                                                                    }
                                                                    v2_7.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                    v9_0 = v2_7;
                                                                    v10_0 = v5_14;
                                                                }
                                                            } else {
                                                                long v7_13 = (v10_0 + 1);
                                                                v4_151[v10_0] = v11_25;
                                                                if ((v8_57.booleanValue()) && ((v6_2.zzfj != null) || ((v6_2.zzfk != null) || (v6_2.zzfl != null)))) {
                                                                    v2_7.put(v11_25.name, v6_2.zza(0, 0, 0));
                                                                }
                                                                v9_0 = v2_7;
                                                                p44 = v5_15;
                                                                v10_0 = v7_13;
                                                            }
                                                        } else {
                                                            v1_0.zzl.zzad().zzdd().zza("Sample rate must be positive. event, rate", v11_25.name, Integer.valueOf(v13_18));
                                                            com.google.android.gms.measurement.internal.zzaf v6_8 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            v9_0 = v2_7;
                                                            p44 = v5_15;
                                                            v10_0 = v6_8;
                                                        }
                                                    } else {
                                                        this.zzdm();
                                                        Boolean v12_4 = ((String) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_en"));
                                                        int v13_1 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v12_4));
                                                        if (v13_1 == 0) {
                                                            v13_1 = this.zzdo().zzc(v3_2.zzst.zzcf, v12_4);
                                                            v2_7.put(v12_4, v13_1);
                                                        }
                                                        if (v13_1.zzfj != null) {
                                                            v18_0 = v7_18;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                        } else {
                                                            if (v13_1.zzfk.longValue() > 1) {
                                                                this.zzdm();
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", v13_1.zzfk);
                                                            }
                                                            if ((v13_1.zzfl == null) || (!v13_1.zzfl.booleanValue())) {
                                                                v18_0 = v7_18;
                                                            } else {
                                                                this.zzdm();
                                                                v18_0 = v7_18;
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                            }
                                                            long v7_17 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                            v10_0 = v7_17;
                                                        }
                                                        v22_0 = v8_14;
                                                        v19_0 = v9_3;
                                                        v9_0 = v2_7;
                                                    }
                                                    v5_15 = p44;
                                                    v2_7 = v9_0;
                                                    v7_18 = v18_0;
                                                    v8_14 = v22_0;
                                                    v6_9 = v26_0;
                                                    v9_3 = (v19_0 + 1);
                                                    v1_0 = this;
                                                }
                                                Object v9_44 = v2_7;
                                                v1_19 = v6_9;
                                                if (v10_0 < v1_19.zzxo.length) {
                                                    v1_19.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v4_151, v10_0));
                                                }
                                                int v2_76 = v9_44.entrySet().iterator();
                                                while (v2_76.hasNext()) {
                                                    this.zzdo().zza(((com.google.android.gms.measurement.internal.zzaf) ((java.util.Map$Entry) v2_76.next()).getValue()));
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v1_14 = v0_2;
                                            this.zzdo().endTransaction();
                                            throw v1_14;
                                        }
                                        v1_19.zzxr = Long.valueOf(nan);
                                        v1_19.zzxs = Long.valueOf(-0.0);
                                        int v2_79 = 0;
                                        while (v2_79 < v1_19.zzxo.length) {
                                            com.google.android.gms.measurement.internal.zzaw v4_184 = v1_19.zzxo[v2_79];
                                            if (v4_184.zzxj.longValue() < v1_19.zzxr.longValue()) {
                                                v1_19.zzxr = v4_184.zzxj;
                                            }
                                            if (v4_184.zzxj.longValue() > v1_19.zzxs.longValue()) {
                                                v1_19.zzxs = v4_184.zzxj;
                                            }
                                            v2_79++;
                                        }
                                        com.google.android.gms.measurement.internal.zzaf v5_83;
                                        int v2_81 = v3_2.zzst.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_158 = this.zzdo().zzae(v2_81);
                                        if (v4_158 != null) {
                                            v5_83 = this;
                                            if (v1_19.zzxo.length > 0) {
                                                Boolean v8_46;
                                                com.google.android.gms.measurement.internal.zzaf v6_93 = v4_158.zzar();
                                                if (v6_93 == 0) {
                                                    v8_46 = 0;
                                                } else {
                                                    v8_46 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxu = v8_46;
                                                Boolean v8_47 = v4_158.zzaq();
                                                if (v8_47 != 0) {
                                                    v6_93 = v8_47;
                                                } else {
                                                }
                                                com.google.android.gms.measurement.internal.zzaf v6_94;
                                                if (v6_93 == 0) {
                                                    v6_94 = 0;
                                                } else {
                                                    v6_94 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxt = v6_94;
                                                v4_158.zzbb();
                                                v1_19.zzye = Integer.valueOf(((int) v4_158.zzay()));
                                                v4_158.zze(v1_19.zzxr.longValue());
                                                v4_158.zzf(v1_19.zzxs.longValue());
                                                v1_19.zzdn = v4_158.zzbj();
                                                this.zzdo().zza(v4_158);
                                            }
                                        } else {
                                            v5_83 = this;
                                            this.zzl.zzad().zzda().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                        }
                                        if (v1_19.zzxo.length > 0) {
                                            com.google.android.gms.measurement.internal.zzaw v4_167;
                                            v5_83.zzl.zzag();
                                            com.google.android.gms.measurement.internal.zzaw v4_166 = this.zzdp().zzay(v3_2.zzst.zzcf);
                                            if (v4_166 == null) {
                                                if (!android.text.TextUtils.isEmpty(v3_2.zzst.zzch)) {
                                                    v5_83.zzl.zzad().zzdd().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                } else {
                                                    v4_167 = Long.valueOf(-1);
                                                    v1_19.zzyl = v4_167;
                                                }
                                            } else {
                                                if (v4_166.zzxa != null) {
                                                    v4_167 = v4_166.zzxa;
                                                } else {
                                                }
                                            }
                                            this.zzdo().zza(v1_19, v17_2);
                                        }
                                        String v1_20 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_3 = v3_2.zzsu;
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_3);
                                        v1_20.zzq();
                                        v1_20.zzah();
                                        com.google.android.gms.measurement.internal.zzaw v4_176 = new StringBuilder("rowid in (");
                                        com.google.android.gms.measurement.internal.zzaf v6_110 = 0;
                                        while (v6_110 < v3_3.size()) {
                                            if (v6_110 != null) {
                                                v4_176.append(",");
                                            }
                                            v4_176.append(((Long) v3_3.get(v6_110)).longValue());
                                            v6_110++;
                                        }
                                        v4_176.append(")");
                                        com.google.android.gms.measurement.internal.zzaw v4_178 = v1_20.getWritableDatabase().delete("raw_events", v4_176.toString(), 0);
                                        if (v4_178 != v3_3.size()) {
                                            v1_20.zzad().zzda().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_178), Integer.valueOf(v3_3.size()));
                                        }
                                        String v1_23 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_6 = v1_23.getWritableDatabase();
                                        try {
                                            com.google.android.gms.measurement.internal.zzaf v6_116 = new String[2];
                                            v6_116[0] = v2_81;
                                            v6_116[1] = v2_81;
                                            v3_6.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_116);
                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                            v1_23.zzad().zzda().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_81), v0_6);
                                        }
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 1;
                                    }
                                } else {
                                    v6_1.close();
                                }
                            }
                            if (v8_0.moveToFirst()) {
                                try {
                                    Object v9_14 = com.google.android.gms.internal.measurement.zzch.zzf(v8_0.getBlob(0));
                                } catch (android.database.sqlite.SQLiteException v0_3) {
                                    v5_90.zzad().zzda().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0), v0_3);
                                    if (v8_0 == null) {
                                    }
                                }
                                if (v8_0.moveToNext()) {
                                    v5_90.zzad().zzdd().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                }
                                int v17_3;
                                int v18_4;
                                v8_0.close();
                                v3_2.zzb(v9_14);
                                if (v6_0 == -1) {
                                    Object v9_28 = new String[2];
                                    v9_28[0] = v4_0;
                                    v9_28[1] = v11_0;
                                    v17_3 = "app_id = ? and metadata_fingerprint = ?";
                                    v18_4 = v9_28;
                                } else {
                                    long v14_15 = new String[3];
                                    v14_15[0] = v4_0;
                                    v14_15[1] = v11_0;
                                    v14_15[2] = String.valueOf(v6_0);
                                    v17_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v18_4 = v14_15;
                                }
                                v6_1 = v10_7.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v17_3, v18_4, 0, 0, "rowid", 0);
                                try {
                                    if (!v6_1.moveToFirst()) {
                                        v5_90.zzad().zzdd().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                        if (v6_1 == null) {
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v8_0 = v6_1;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                }
                                do {
                                    long v7_48 = v6_1.getLong(0);
                                    Object v9_39 = com.google.android.gms.internal.measurement.zzcf.zze(v6_1.getBlob(3));
                                    v9_39.name = v6_1.getString(1);
                                    v9_39.zzxj = Long.valueOf(v6_1.getLong(2));
                                    if (v3_2.zza(v7_48, v9_39)) {
                                    } else {
                                        if (v6_1 == null) {
                                        } else {
                                        }
                                    }
                                } while(v6_1.moveToNext());
                                if (v6_1 == null) {
                                }
                            } else {
                                v5_90.zzad().zzda().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                if (v8_0 == null) {
                                }
                            }
                            v8_0.close();
                        } else {
                            if (v4_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v8_44;
                        long v14_20 = v6_0 cmp -1;
                        try {
                            if (v14_20 == 0) {
                                v8_44 = new String[1];
                                v8_44[0] = String.valueOf(p45);
                            } else {
                                v8_44 = new String[2];
                                v8_44[0] = String.valueOf(v6_0);
                                v8_44[1] = String.valueOf(p45);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v6_1 = 0;
                            v8_3 = 0;
                        }
                        long v14_21;
                        if (v14_20 == 0) {
                            v14_21 = "";
                        } else {
                            v14_21 = "rowid <= ? and ";
                        }
                        boolean v11_24 = new StringBuilder((v14_21.length() + 148));
                        v11_24.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_24.append(v14_21);
                        v11_24.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v11_24.toString(), v8_44);
                        if (v4_0.moveToFirst()) {
                            Boolean v8_2 = v4_0.getString(0);
                            try {
                                v11_0 = v4_0.getString(1);
                                v4_0.close();
                                v8_3 = v4_0;
                                v4_0 = v8_2;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_1 = v4_0;
                            }
                        } else {
                            if (v4_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_0 = v4_0;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_1 = v4_0;
                    v8_3 = 0;
                }
                v4_0.close();
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v4_100 = v0_7;
                v6_1 = 0;
                v8_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


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

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


    private static java.util.Set zza(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 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.twitter.sdk.android.core.TwitterContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


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

Method com.twitter.sdk.android.core.TwitterContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


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

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


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzo();
        this.zzq();
        Long v3_9 = 0;
        if (!this.zzjk) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p18));
            v4_1.put("entry", p19);
            com.google.android.gms.measurement.internal.zzaw v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzad().zzda().zzaq("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzad().zzda().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (Throwable v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (Throwable v0_2) {
                                    v8_0 = v13;
                                    this.zzad().zzda().zza("Error writing entry to local database", v0_2);
                                    this.zzjk = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    }
                                } catch (Throwable v0_1) {
                                }
                            } catch (Throwable v0_3) {
                                v13 = 0;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjk = 1;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (Throwable v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzad().zzda().zza("Error writing entry to local database", v0_1);
                        this.zzjk = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (Throwable v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (Throwable v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (Throwable v0_1) {
                    v13 = 0;
                } catch (Throwable v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzad().zzdd().zzaq("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    public int addJSON(org.json.JSONObject p8, String p9, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p10, boolean p11)
    {
        if (this.a()) {
            String v10_1 = p10.getName();
            int v0_1 = -1;
            com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v2 = 0;
            try {
                String v3_0 = this.mDb.getWritableDatabase();
                android.content.ContentValues v4_1 = new android.content.ContentValues();
                v4_1.put("data", p8.toString());
                v4_1.put("created_at", Long.valueOf(System.currentTimeMillis()));
                v4_1.put("automatic_data", Boolean.valueOf(p11));
                v4_1.put("token", p9);
                v3_0.insert(v10_1, 0, v4_1);
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v8_6 = new StringBuilder();
                v8_6.append("SELECT COUNT(*) FROM ");
                v8_6.append(v10_1);
                v8_6.append(" WHERE token=\'");
                v8_6.append(p9);
                v8_6.append("\'");
                com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v8_8 = v3_0.rawQuery(v8_6.toString(), 0);
                try {
                    v8_8.moveToFirst();
                    v0_1 = v8_8.getInt(0);
                } catch (android.database.sqlite.SQLiteException v9_2) {
                    StringBuilder v11_5 = new StringBuilder();
                    v11_5.append("Could not add Mixpanel data to table ");
                    v11_5.append(v10_1);
                    v11_5.append(". Re-initializing database.");
                    com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v11_5.toString(), v9_2);
                    if (v8_8 == null) {
                        v2 = v8_8;
                    } else {
                        v8_8.close();
                    }
                    this.mDb.deleteDatabase();
                    if (v2 == null) {
                        this.mDb.close();
                        return v0_1;
                    } else {
                        v2.close();
                        this.mDb.close();
                        return v0_1;
                    }
                }
                if (v8_8 == null) {
                    this.mDb.close();
                    return v0_1;
                } else {
                    v8_8.close();
                    this.mDb.close();
                    return v0_1;
                }
            } catch (android.database.sqlite.SQLiteException v9_4) {
                if (v2 != null) {
                    v2.close();
                }
                this.mDb.close();
                throw v9_4;
            } catch (android.database.sqlite.SQLiteException v9_2) {
                v8_8 = 0;
            } catch (android.database.sqlite.SQLiteException v9_4) {
                v2 = v8_8;
            }
        } else {
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", "There is not enough space left on the device to store Mixpanel data, so data was discarded");
            return -2;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    private static void b(android.database.sqlite.SQLiteDatabase p9, com.layer.transport.lsdkc.h p10, com.layer.sdk.internal.lsdke.lsdkc.c$a p11, boolean p12)
    {
        java.util.Set v0_1;
        if (!p12) {
            v0_1 = com.layer.sdk.internal.lsdke.lsdkc.b.d(p9, p10.a());
        } else {
            v0_1 = new java.util.LinkedHashSet();
        }
        java.util.Iterator v1_0;
        if (!p10.r()) {
            v1_0 = 0;
        } else {
            v1_0 = p10.q();
        }
        com.layer.sdk.internal.lsdki.d$c v3_0 = v0_1.iterator();
        while (v3_0.hasNext()) {
            com.layer.sdk.internal.lsdki.d$a v4_6 = ((String) v3_0.next());
            if ((v1_0 == null) || (!v1_0.contains(v4_6))) {
                Long v5_2 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, p10, v4_6);
                com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, p10, v4_6, 1);
                if (p11 == com.layer.sdk.internal.lsdke.lsdkc.c$a.b) {
                    com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, com.layer.sdk.internal.lsdki.d$c.e, com.layer.sdk.internal.lsdki.d$a.c, v5_2);
                }
            }
        }
        if (v1_0 != null) {
            java.util.Iterator v1_1 = v1_0.iterator();
            while (v1_1.hasNext()) {
                com.layer.sdk.internal.lsdki.d$c v3_3 = ((String) v1_1.next());
                if (!v0_1.contains(v3_3)) {
                    Long v5_0;
                    com.layer.sdk.internal.lsdki.d$a v4_2 = com.layer.sdk.internal.lsdke.lsdkc.c$b.a(p10, v3_3, 0);
                    if (!p12) {
                        v5_0 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, p10, v3_3);
                    } else {
                        v5_0 = 0;
                    }
                    if (v5_0 != null) {
                        com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, p10, v3_3, 0);
                    } else {
                        v5_0 = Long.valueOf(p9.insert("stream_members", 0, v4_2));
                        if (v5_0.longValue() == -1) {
                            throw new IllegalArgumentException("Could not insert stream member");
                        }
                    }
                    if (p11 == com.layer.sdk.internal.lsdke.lsdkc.c$a.b) {
                        com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, com.layer.sdk.internal.lsdki.d$c.e, com.layer.sdk.internal.lsdki.d$a.a, v5_0);
                    }
                }
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void b(android.database.sqlite.SQLiteDatabase p7, com.layer.transport.lsdkc.c p8)
    {
        if (p8.v()) {
            int v1 = 0;
            while (v1 < p8.u().size()) {
                int v2_0 = com.layer.sdk.internal.lsdke.lsdkc.c$b.a(p8, v1);
                if (com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8, v1)) {
                    String[] v3_2 = new String[2];
                    String v5_1 = new StringBuilder();
                    v5_1.append("");
                    v5_1.append(v1);
                    v3_2[0] = v5_1.toString();
                    v3_2[1] = p8.a().toString();
                    if (p7.update("event_content_parts", v2_0, "event_content_part_id=? AND event_database_identifier=?", v3_2) != 1) {
                        throw new IllegalArgumentException("Could not update event content part!");
                    }
                } else {
                    if (Long.valueOf(p7.insert("event_content_parts", 0, v2_0)).longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert event content part");
                    }
                }
                v1++;
            }
            return;
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p9, java.util.List p10, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a p11)
    {
        if ((p11 == ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a.a) && ((p10.size() > 1) && (com.layer.sdk.internal.lsdkk.k.a(6)))) {
            StringBuilder v11_2 = new StringBuilder();
            v11_2.append("Presence can only be updated for current user. So, cannot be larger than 1 : ");
            v11_2.append(p10);
            com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v11_2.toString());
            StringBuilder v11_10 = new StringBuilder();
            v11_10.append("Presence can only be updated for current user. So, cannot be larger than 1 : ");
            v11_10.append(p10);
            throw new IllegalArgumentException(v11_10.toString());
        } else {
            String v0_3 = new java.util.LinkedHashMap();
            com.layer.sdk.internal.lsdki.d$a v3_3 = new java.util.HashSet();
            android.content.ContentValues v4_1 = p10.iterator();
            while (v4_1.hasNext()) {
                com.layer.sdk.internal.lsdki.d$a v5_2 = ((com.layer.sdk.internal.lsdkd.lsdka.n) v4_1.next());
                if (v5_2.a() != null) {
                    if (android.text.TextUtils.isEmpty(v5_2.a())) {
                        java.util.Date v7_1 = new StringBuilder();
                        v7_1.append("Empty user id: ");
                        v7_1.append(v5_2);
                        com.layer.sdk.internal.lsdkk.k.d(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v7_1.toString());
                    }
                    v3_3.add(v5_2.a());
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        StringBuilder v11_4 = new StringBuilder();
                        v11_4.append("No user-id set on presence object: ");
                        v11_4.append(v5_2);
                        com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v11_4.toString());
                    }
                    StringBuilder v11_7 = new StringBuilder();
                    v11_7.append("No user-id set on presence object: ");
                    v11_7.append(v5_2);
                    throw new IllegalArgumentException(v11_7.toString());
                }
            }
            com.layer.sdk.internal.lsdkd.lsdka.n v1_1 = com.layer.sdk.internal.lsdke.lsdkc.b.d(p9, v3_3);
            if (v1_1 != null) {
                com.layer.sdk.internal.lsdkd.lsdka.n v1_2 = v1_1.iterator();
                while (v1_2.hasNext()) {
                    com.layer.sdk.internal.lsdki.d$a v3_1 = ((com.layer.sdk.internal.lsdkd.lsdka.n) v1_2.next());
                    v0_3.put(v3_1.a(), v3_1);
                }
            }
            String v10_4 = p10.iterator();
            while (v10_4.hasNext()) {
                com.layer.sdk.internal.lsdki.d$a v3_9;
                com.layer.sdk.internal.lsdkd.lsdka.n v1_5 = ((com.layer.sdk.internal.lsdkd.lsdka.n) v10_4.next());
                com.layer.sdk.internal.lsdki.d$a v3_7 = ((com.layer.sdk.internal.lsdkd.lsdka.n) v0_3.get(v1_5.a()));
                if (v3_7 != null) {
                    com.layer.sdk.internal.lsdki.d$a v5_5 = v3_7.d();
                    if (p11 != ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a.b) {
                        ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, v1_5, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v1_5, 1));
                    } else {
                        if ((v3_7.c() == null) || (v1_5.c().after(v3_7.c()))) {
                            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, v1_5, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v1_5, 0));
                            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, v3_7, v1_5);
                        }
                    }
                    v3_9 = v5_5;
                } else {
                    if (p11 != ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a.b) {
                        v3_9 = Long.valueOf(p9.insert("presence", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v1_5, 1)));
                    } else {
                        v3_9 = Long.valueOf(p9.insert("presence", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v1_5, 0)));
                        com.layer.sdk.internal.lsdke.lsdkc.a.a(p9, com.layer.sdk.internal.lsdki.d$c.g, com.layer.sdk.internal.lsdki.d$a.a, v3_9);
                    }
                }
                v1_5.a(v3_9);
            }
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p7, Iterable p8)
    {
        String v8_1 = p8.iterator();
        while (v8_1.hasNext()) {
            com.layer.sdk.internal.lsdkd.lsdka.i v0_3 = ((com.layer.sdk.internal.lsdkd.lsdka.i) ((com.layer.sdk.messaging.Message) v8_1.next()));
            java.util.Iterator v1_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v0_3);
            if (v0_3.h() != null) {
                long v4_0 = new String[1];
                v4_0[0] = v0_3.h().toString();
                if (p7.update("messages", v1_0, "database_identifier=?", v4_0) != 1) {
                    throw new IllegalArgumentException("Could not update message!");
                }
            } else {
                if (v0_3.q() == null) {
                    throw new IllegalArgumentException("Message has no conversation database ID");
                } else {
                    java.util.Iterator v1_3 = Long.valueOf(p7.insert("messages", 0, v1_0));
                    if (v1_3.longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert message");
                    } else {
                        v0_3.b(v1_3);
                        if (v0_3.o() != null) {
                            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, v0_3.o(), v0_3.n());
                        }
                    }
                }
            }
            if (v0_3.k() == null) {
                throw new IllegalArgumentException("Message has no message parts!");
            } else {
                java.util.Iterator v1_7 = v0_3.j();
                if (v1_7 != null) {
                    java.util.Iterator v1_8 = v1_7.iterator();
                    while (v1_8.hasNext()) {
                        ((com.layer.sdk.internal.lsdkd.lsdka.j) v1_8.next()).b(v0_3.h());
                    }
                }
                ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, v0_3);
                ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p7, v0_3);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.transport.lsdkc.i p6)
    {
        long v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6);
        if ((p6.a() == null) && ((p6.f() != null) && (p6.q()))) {
            Long v1_1 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p5, p6.f(), p6.p());
            if (v1_1 != null) {
                p6.a(v1_1.a());
            }
        }
        if (p6.a() != null) {
            String[] v3 = new String[1];
            v3[0] = p6.a().toString();
            if (p5.update("mutations", v0_0, "database_identifier=?", v3) != 1) {
                throw new IllegalArgumentException("Could not update mutation!");
            }
        } else {
            IllegalArgumentException v5_4 = Long.valueOf(p5.insert("mutations", 0, v0_0));
            if (v5_4.longValue() == -1) {
                throw new IllegalArgumentException("Could not insert mutation");
            } else {
                p6.a(v5_4);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p7, com.layer.transport.lsdkc.h p8, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a p9)
    {
        if (p8.A()) {
            throw new IllegalArgumentException("Use distinctStream() to persist distinct streams");
        } else {
            if ((p8.a() == null) && (p8.b() != null)) {
                int v0_3 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8.b());
                if (v0_3 != 0) {
                    p8.a(v0_3);
                }
            }
            if (p8.a() != null) {
                int v0_5 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p8, 0);
                String[] v4_0 = new String[1];
                v4_0[0] = p8.a().toString();
                if (p7.update("streams", v0_5, "database_identifier=?", v4_0) != 1) {
                    throw new IllegalArgumentException("Could not update stream!");
                } else {
                    com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8);
                }
            } else {
                int v0_9 = Long.valueOf(p7.insert("streams", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p8, 1)));
                if (v0_9.longValue() == -1) {
                    throw new IllegalArgumentException("Could not insert stream");
                } else {
                    p8.a(v0_9);
                }
            }
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p7, p8, p9, 0);
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, p8);
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p6, com.layer.transport.lsdkc.c p7)
    {
        Long v0_0 = p7.b();
        StringBuilder v1_9 = p7.c();
        if ((v1_9 == null) && (v0_0 == null)) {
            throw new IllegalArgumentException("No stream ID set");
        } else {
            if (v1_9 != null) {
                if (v0_0 == null) {
                    v0_0 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p6, v1_9);
                    p7.b(v0_0);
                }
            } else {
                p7.a(com.layer.sdk.internal.lsdke.lsdkc.a.a(p6, v0_0));
            }
            StringBuilder v1_8;
            if (p7.a() == null) {
                v1_8 = 0;
            } else {
                v1_8 = 1;
            }
            java.util.UUID v4_1 = p7.l();
            if ((v1_8 != null) || (v4_1 != null)) {
                if ((v1_8 == null) || (v4_1 == null)) {
                    if (v1_8 != null) {
                        Long v0_6 = new StringBuilder();
                        v0_6.append("Cannot update an unsynchronized event: ");
                        v0_6.append(p7);
                        throw new IllegalArgumentException(v0_6.toString());
                    } else {
                        Long v0_7 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p6, v0_0, p7.k());
                        if (v0_7 != null) {
                            if (!v0_7.d().equals(p7.d())) {
                                StringBuilder v1_15 = new StringBuilder();
                                v1_15.append("New event conflicts with existing client_id: ");
                                v1_15.append(p7);
                                v1_15.append("; existing: ");
                                v1_15.append(v0_7);
                                throw new IllegalArgumentException(v1_15.toString());
                            } else {
                                p7.a(v0_7.a());
                            }
                        }
                    }
                } else {
                    Long v0_9 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p6, v0_0, p7.k());
                    if (v0_9 != null) {
                        if (!p7.d().equals(v0_9.d())) {
                            StringBuilder v1_19 = new StringBuilder();
                            v1_19.append("Cannot update an event if there is already an event with its stream and seq: ");
                            v1_19.append(p7);
                            v1_19.append("; existing: ");
                            v1_19.append(v0_9);
                            throw new IllegalArgumentException(v1_19.toString());
                        } else {
                            return;
                        }
                    }
                }
            } else {
                Long v0_11 = com.layer.sdk.internal.lsdke.lsdkc.b.b(p6, p7.d());
                if (v0_11 != null) {
                    StringBuilder v1_1 = new StringBuilder();
                    v1_1.append("New OutboundRecon event conflicts with existing client_id: ");
                    v1_1.append(p7);
                    v1_1.append("; existing: ");
                    v1_1.append(v0_11);
                    throw new IllegalArgumentException(v1_1.toString());
                }
            }
            Long v0_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6, p7);
            if (p7.a() != null) {
                StringBuilder v1_3 = new String[1];
                v1_3[0] = p7.a().toString();
                if (p6.update("events", v0_1, "database_identifier=?", v1_3) != 1) {
                    throw new IllegalArgumentException("Could not update event!");
                }
            } else {
                Long v0_4 = Long.valueOf(p6.insert("events", 0, v0_1));
                if (v0_4.longValue() == -1) {
                    throw new IllegalArgumentException("Could not insert event");
                } else {
                    p7.a(v0_4);
                }
            }
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p6, p7);
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.internal.lsdki.c p6)
    {
        if (p6.a() != null) {
            throw new IllegalArgumentException("Cannot update a syncable change");
        } else {
            IllegalArgumentException v5_1 = Long.valueOf(p5.insert("syncable_changes", 0, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6)));
            if (v5_1.longValue() == -1) {
                throw new IllegalArgumentException("Could not insert syncable change");
            } else {
                p6.a(v5_1);
                return;
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.internal.lsdke.f p6, int p7)
    {
        String v0_3 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6.a(), p7);
        String v1_4 = new String[1];
        v1_4[0] = p6.a();
        if ((p5.update("response_versions", v0_3, "response_name=?", v1_4) != 0) || (p5.insert("response_versions", 0, v0_3) != -1)) {
            return;
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                StringBuilder v3_2 = new StringBuilder();
                v3_2.append("Could not create response version with name \'");
                v3_2.append(p6.a());
                v3_2.append("\' and version \'");
                v3_2.append(p7);
                v3_2.append("\'");
                com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v3_2.toString());
            }
            StringBuilder v3_5 = new StringBuilder();
            v3_5.append("Could not create response version with name \'");
            v3_5.append(p6.a());
            v3_5.append("\' and version \'");
            v3_5.append(p7);
            v3_5.append("\'");
            throw new IllegalArgumentException(v3_5.toString());
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p12, com.layer.sdk.internal.lsdkd.lsdka.o p13)
    {
        String[] v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p13);
        if (p13.a() != null) {
            String v1_0 = new String[1];
            v1_0[0] = p13.a().toString();
            if (p12.update("remote_keyed_values", v0_0, "database_identifier=?", v1_0) != 1) {
                throw new IllegalArgumentException("Could not update keyed value!");
            }
        } else {
            String v1_1 = new String[3];
            v1_1[0] = p13.c().a();
            v1_1[1] = p13.d().toString();
            v1_1[2] = p13.f();
            if (p12.update("remote_keyed_values", v0_0, "object_type=? AND object_id=? AND key=?", v1_1) == 0) {
                String[] v0_3 = Long.valueOf(p12.insert("remote_keyed_values", 0, v0_0));
                if (v0_3.longValue() == -1) {
                    throw new IllegalArgumentException("Could not insert keyed value");
                } else {
                    p13.a(v0_3);
                }
            }
        }
        if (p13.a() == null) {
            String[] v0_5 = new String[3];
            v0_5[0] = p13.c().a();
            v0_5[1] = p13.d().toString();
            v0_5[2] = p13.f();
            p13.a(com.layer.sdk.internal.lsdke.lsdkc.a.a(p12, "remote_keyed_values", "database_identifier", "object_type=? AND object_id=? AND key=?", v0_5));
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.internal.lsdkd.lsdka.j p6)
    {
        long v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6);
        if (p6.i() != null) {
            String[] v3 = new String[1];
            v3[0] = p6.i().toString();
            if (p5.update("message_parts", v0_0, "database_identifier=?", v3) != 1) {
                throw new IllegalArgumentException("Could not update message part!");
            }
        } else {
            IllegalArgumentException v5_4 = Long.valueOf(p5.insert("message_parts", 0, v0_0));
            if (v5_4.longValue() == -1) {
                throw new IllegalArgumentException("Could not insert message part");
            } else {
                p6.a(v5_4);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p6, com.layer.sdk.internal.lsdkd.lsdka.h p7)
    {
        long v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p7);
        if (p7.a() != null) {
            int v1_5 = new String[1];
            v1_5[0] = p7.a().toString();
            if (p6.update("local_keyed_values", v0_0, "database_identifier=?", v1_5) != 1) {
                throw new IllegalArgumentException("Could not update keyed value!");
            }
        } else {
            int v1_1 = new String[3];
            v1_1[0] = p7.c().a();
            v1_1[1] = p7.d().toString();
            v1_1[2] = p7.f();
            if (p6.update("local_keyed_values", v0_0, "object_type=? AND object_id=? AND key=?", v1_1) == 0) {
                IllegalArgumentException v6_4 = Long.valueOf(p6.insert("local_keyed_values", 0, v0_0));
                if (v6_4.longValue() == -1) {
                    throw new IllegalArgumentException("Could not insert keyed value");
                } else {
                    p7.a(v6_4);
                }
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p9, com.layer.sdk.internal.lsdkd.lsdka.d p10)
    {
        StringBuilder v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p10);
        if (p10.b() == null) {
            StringBuilder v0_1;
            StringBuilder v1_3 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p9, p10.c(), p10.a());
            if (v1_3 == null) {
                v0_1 = Long.valueOf(p9.insert("conversation_participants", 0, v0_0));
                if (v0_1.longValue() != -1) {
                    ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, p10.a(), 0);
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, "Could not insert conversation participant");
                    }
                    throw new IllegalArgumentException("Could not insert conversation participant");
                }
            } else {
                StringBuilder v1_6 = v1_3.b();
                String[] v7_1 = new String[1];
                v7_1[0] = v1_6.toString();
                IllegalArgumentException v9_6 = p9.update("conversation_participants", v0_0, "database_identifier = ?", v7_1);
                if (v9_6 == 1) {
                    v0_1 = v1_6;
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        StringBuilder v1_8 = new StringBuilder();
                        v1_8.append("Could not update conversation participant by ID! (");
                        v1_8.append(v9_6);
                        v1_8.append(")");
                        com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v1_8.toString());
                    }
                    StringBuilder v1_11 = new StringBuilder();
                    v1_11.append("Could not update conversation participant by ID! (");
                    v1_11.append(v9_6);
                    v1_11.append(")");
                    throw new IllegalArgumentException(v1_11.toString());
                }
            }
            p10.a(v0_1);
            return;
        } else {
            StringBuilder v1_12 = new String[1];
            v1_12[0] = p10.b().toString();
            IllegalArgumentException v9_8 = p9.update("conversation_participants", v0_0, "database_identifier=?", v1_12);
            if (v9_8 == 1) {
                return;
            } else {
                if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                    StringBuilder v1_14 = new StringBuilder();
                    v1_14.append("Could not update conversation participant by DB ID! (");
                    v1_14.append(v9_8);
                    v1_14.append(")");
                    com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v1_14.toString());
                }
                StringBuilder v1_1 = new StringBuilder();
                v1_1.append("Could not update conversation participant by DB ID! (");
                v1_1.append(v9_8);
                v1_1.append(")");
                throw new IllegalArgumentException(v1_1.toString());
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p7, com.layer.sdk.internal.lsdkd.lsdka.c p8)
    {
        if (!p8.isDistinct()) {
            StringBuilder v0_6 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p8);
            if (p8.g() != null) {
                String[] v4_0 = new String[1];
                v4_0[0] = p8.g().toString();
                if (p7.update("conversations", v0_6, "database_identifier=?", v4_0) != 1) {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        StringBuilder v0_2 = new StringBuilder();
                        v0_2.append("Could not update conversation: ");
                        v0_2.append(p8);
                        com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v0_2.toString());
                    }
                    StringBuilder v0_5 = new StringBuilder();
                    v0_5.append("Could not update conversation. ");
                    v0_5.append(p8);
                    throw new IllegalArgumentException(v0_5.toString());
                }
            } else {
                IllegalArgumentException v7_6 = Long.valueOf(p7.insert("conversations", "database_identifier", v0_6));
                if (v7_6.longValue() != -1) {
                    p8.a(v7_6);
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        StringBuilder v0_9 = new StringBuilder();
                        v0_9.append("Could not insert conversation: ");
                        v0_9.append(p8);
                        com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v0_9.toString());
                    }
                    throw new IllegalArgumentException("Could not insert conversation");
                }
            }
            return;
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                StringBuilder v0_11 = new StringBuilder();
                v0_11.append("Cannot persist distinct conversation in conversationOnly. Use distinctConversationOnly: ");
                v0_11.append(p8);
                com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v0_11.toString());
            }
            throw new IllegalArgumentException("Cannot persist distinct conversation. Use distinctConversationOnly()");
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private static Long a(android.database.sqlite.SQLiteDatabase p4, android.content.ContentValues p5)
    {
        IllegalArgumentException v4_7 = Long.valueOf(p4.insert("identities", 0, p5));
        if (v4_7.longValue() != -1) {
            return v4_7;
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, "Could not insert identity");
            }
            throw new IllegalArgumentException("Could not insert identity");
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static com.layer.transport.lsdkc.h a(android.database.sqlite.SQLiteDatabase p10, com.layer.transport.lsdkc.h p11, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a p12, boolean p13)
    {
        if (!p11.A()) {
            throw new IllegalArgumentException("Use Persist.streams() to persist non-distinct streams");
        } else {
            com.layer.transport.lsdkc.h v4 = 0;
            if (p11.a() != null) {
                int v12_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p11, 0);
                String[] v13_1 = new String[1];
                v13_1[0] = p11.a().toString();
                if (p10.update("streams", v12_1, "database_identifier=?", v13_1) != 1) {
                    throw new IllegalArgumentException("Could not update stream!");
                } else {
                    com.layer.sdk.internal.lsdke.lsdkc.a.a(p10, p11);
                    return 0;
                }
            } else {
                Long v0_1;
                if (p13 != null) {
                    v0_1 = 0;
                } else {
                    v0_1 = com.layer.sdk.internal.lsdke.lsdkc.a.d(p10, p11.q());
                    if ((v0_1 == null) && (p11.b() != null)) {
                        v0_1 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p10, p11.b());
                        if ((v0_1 != null) && (com.layer.sdk.internal.lsdkk.k.a(4))) {
                            String[] v8_1 = new StringBuilder();
                            v8_1.append("Failed to find distinct stream by participant, but succeeded with id. ");
                            v8_1.append(p11.toString());
                            v8_1.append(". Origin: ");
                            v8_1.append(p12);
                            com.layer.sdk.internal.lsdkk.k.c(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v8_1.toString());
                        }
                    }
                }
                if (v0_1 != null) {
                    android.content.ContentValues v7_4 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p10, v0_1);
                    String[] v8_4 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$1.a[p12.ordinal()];
                    if (v8_4 == 1) {
                        v4 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p10, v7_4, p11);
                    } else {
                        if (v8_4 == 2) {
                            v4 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p10, p11, v7_4);
                        }
                    }
                    android.content.ContentValues v7_5 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v4, 0);
                    String[] v8_5 = new String[1];
                    v8_5[0] = v4.a().toString();
                    if (p10.update("streams", v7_5, "database_identifier=?", v8_5) != 1) {
                        throw new IllegalArgumentException("Could not update stream!");
                    } else {
                        com.layer.sdk.internal.lsdke.lsdkc.a.a(p10, v4);
                    }
                } else {
                    v0_1 = Long.valueOf(p10.insert("streams", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p11, 1)));
                    if (v0_1.longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert stream");
                    }
                }
                p11.a(v0_1);
                if (v4 == null) {
                    ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p10, p11, p12, p13);
                    ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p10, p11);
                } else {
                    ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p10, v4, p12, p13);
                    ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p10, v4);
                }
                return v4;
            }
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static com.layer.sdk.internal.lsdkd.lsdka.c a(android.database.sqlite.SQLiteDatabase p9, com.layer.sdk.internal.lsdkd.lsdka.c p10, boolean p11, java.util.Map p12)
    {
        if (!p10.isDistinct()) {
            throw new IllegalArgumentException("Trying to save a non distinct conversation as distinct");
        } else {
            if (p10.g() != null) {
                String[] v12_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p10);
                String v0_1 = new String[1];
                v0_1[0] = p10.g().toString();
                if (p9.update("conversations", v12_1, "database_identifier=?", v0_1) != 1) {
                    throw new IllegalArgumentException("Could not update distinct conversation!");
                }
            } else {
                String[] v12_4;
                if (p12 == null) {
                    v12_4 = com.layer.sdk.internal.lsdke.lsdkc.a.c(p9, p10.k());
                } else {
                    String v0_2 = p10.k();
                    String[] v12_6 = p12.entrySet().iterator();
                    while (v12_6.hasNext()) {
                        java.util.Map$Entry v7_4 = ((java.util.Map$Entry) v12_6.next());
                        if (v0_2.equals(v7_4.getValue())) {
                            v12_4 = ((android.net.Uri) v7_4.getKey());
                        }
                    }
                    v12_4 = 0;
                }
                if (v12_4 == null) {
                    String[] v12_9 = Long.valueOf(p9.insert("conversations", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p10)));
                    if (v12_9.longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert conversation");
                    } else {
                        p10.a(v12_9);
                    }
                } else {
                    String[] v12_10 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p9, v12_4);
                    if (v12_10.isDistinct()) {
                        com.layer.sdk.internal.lsdkd.lsdka.c v11_6;
                        if (p11 == null) {
                            v11_6 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(v12_10, p10);
                        } else {
                            v11_6 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p10, v12_10);
                        }
                        p10.a(v11_6.g());
                        android.content.ContentValues v10_5 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v11_6);
                        String[] v12_12 = new String[1];
                        v12_12[0] = v11_6.g().toString();
                        if (p9.update("conversations", v10_5, "database_identifier=?", v12_12) != 1) {
                            throw new IllegalArgumentException("Could not update distinct conversation!");
                        } else {
                            return v11_6;
                        }
                    } else {
                        if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                            com.layer.sdk.internal.lsdkd.lsdka.c v11_2 = new StringBuilder();
                            v11_2.append("Existing conversation is not distinct. Conversation : ");
                            v11_2.append(v12_10);
                            com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a, v11_2.toString());
                        }
                        com.layer.sdk.internal.lsdkd.lsdka.c v11_5 = new StringBuilder();
                        v11_5.append("Existing conversation is not distinct. Conversation : ");
                        v11_5.append(v12_10);
                        throw new IllegalStateException(v11_5.toString());
                    }
                }
            }
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p9, p10);
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, p10, p11);
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p9, p10);
            return 0;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.sdk.messaging.Conversation p6, boolean p7)
    {
        String[] v1_0;
        String v0_1 = new android.content.ContentValues();
        if (!((com.layer.sdk.internal.lsdkd.lsdka.c) p6).isDistinct()) {
            v1_0 = Integer.valueOf(0);
        } else {
            v1_0 = Integer.valueOf(1);
        }
        v0_1.put("is_distinct", v1_0);
        String[] v1_1 = new String[1];
        v1_1[0] = ((com.layer.sdk.internal.lsdkd.lsdka.c) p6).g().toString();
        if (p5.update("conversations", v0_1, "database_identifier=?", v1_1) != 1) {
            throw new IllegalArgumentException("Could not update conversation distinct!");
        } else {
            if (p7 != null) {
                android.content.ContentValues v7_2 = new android.content.ContentValues();
                v7_2.put("table_name", "conversations");
                v7_2.put("row_identifier", ((com.layer.sdk.internal.lsdkd.lsdka.c) p6).g());
                v7_2.put("change_type", Integer.valueOf(com.layer.sdk.internal.lsdki.c$a.b.a()));
                p5.insert("syncable_changes", 0, v7_2);
            }
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p2, com.layer.sdk.internal.lsdki.d$c p3, com.layer.sdk.internal.lsdki.d$a p4, Long p5, com.layer.sdk.internal.lsdki.d$b p6)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("table_name", p3.a());
        v0_1.put("change_type", Integer.valueOf(p4.a()));
        v0_1.put("row_identifier", p5);
        if (p6 != 0) {
            v0_1.put("column_name", p6.a());
        }
        if (p2.insert("synced_changes", 0, v0_1) == -1) {
            throw new IllegalArgumentException("Could not insert synced change!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static Long a(android.database.sqlite.SQLiteDatabase p2, com.layer.transport.lsdkc.h p3, String p4, Integer p5)
    {
        long v5_1 = com.layer.sdk.internal.lsdke.lsdkc.c$b.a(p3, p4, p5);
        long v0_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.aark>.a(p2, p3, p4);
        if (v0_1 == 0) {
            IllegalArgumentException v2_1 = Long.valueOf(p2.insert("stream_members", 0, v5_1));
            if (v2_1.longValue() == -1) {
                throw new IllegalArgumentException("Could not insert stream member");
            } else {
                return v2_1;
            }
        } else {
            ark>com.layer.sdk.internal.lsdke.lsdkc.aark>.a(p2, p3, p4, 0);
            return v0_1;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(android.database.sqlite.SQLiteDatabase p3, Long p4)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("version", p4);
        p3.insert("schema_migrations", 0, v0_1);
        return;
    }

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


    public final boolean zza(com.google.android.gms.measurement.internal.zzae p8, long p9, boolean p11)
    {
        this.zzq();
        this.zzah();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8.zzcf);
        long v0_3 = new com.google.android.gms.internal.measurement.zzcf();
        v0_3.zzxk = Long.valueOf(p8.zzfc);
        android.content.ContentValues v1_2 = new com.google.android.gms.internal.measurement.zzbt$zzd[p8.zzfd.size()];
        v0_3.zzxi = v1_2;
        android.content.ContentValues v1_4 = p8.zzfd.iterator();
        Long v3_0 = 0;
        while (v1_4.hasNext()) {
            String v4_10 = ((String) v1_4.next());
            String v5_0 = com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw(v4_10);
            this.zzdm().zza(v5_0, p8.zzfd.get(v4_10));
            int v6_2 = (v3_0 + 1);
            v0_3.zzxi[v3_0] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v5_0.zzmr()));
            v3_0 = v6_2;
        }
        long v0_0 = com.google.android.gms.internal.measurement.zziv.zzb(v0_3);
        this.zzad().zzdi().zza("Saving event, name, data size", this.zzaa().zzal(p8.name), Integer.valueOf(v0_0.length));
        android.content.ContentValues v1_8 = new android.content.ContentValues();
        v1_8.put("app_id", p8.zzcf);
        v1_8.put("name", p8.name);
        v1_8.put("timestamp", Long.valueOf(p8.timestamp));
        v1_8.put("metadata_fingerprint", Long.valueOf(p9));
        v1_8.put("data", v0_0);
        v1_8.put("realtime", Integer.valueOf(p11));
        try {
            if (this.getWritableDatabase().insert("raw_events", 0, v1_8) != -1) {
                return 1;
            } else {
                this.zzad().zzda().zza("Failed to insert raw event (got -1). appId", com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzaw v9_6) {
            this.zzad().zzda().zza("Error storing raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf), v9_6);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.measurement.zzch p8, boolean p9)
    {
        this.zzq();
        this.zzah();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8.zzcf);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p8.zzxs);
        this.zzca();
        String v0_0 = this.zzz().currentTimeMillis();
        if ((p8.zzxs.longValue() < (v0_0 - com.google.android.gms.measurement.internal.zzt.zzbs())) || (p8.zzxs.longValue() > (com.google.android.gms.measurement.internal.zzt.zzbs() + v0_0))) {
            this.zzad().zzdd().zza("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf), Long.valueOf(v0_0), p8.zzxs);
        }
        try {
            String v0_5 = this.zzdm().zzc(com.google.android.gms.internal.measurement.zziv.zzb(p8));
            this.zzad().zzdi().zza("Saving bundle, size", Integer.valueOf(v0_5.length));
            Object v2_13 = new android.content.ContentValues();
            v2_13.put("app_id", p8.zzcf);
            v2_13.put("bundle_end_timestamp", p8.zzxs);
            v2_13.put("data", v0_5);
            v2_13.put("has_realtime", Integer.valueOf(p9));
        } catch (com.google.android.gms.measurement.internal.zzaw v9_5) {
            String v0_9 = this.zzad().zzda();
            int v8_1 = com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf);
            Object v2_0 = "Data loss. Failed to serialize bundle. appId";
            v0_9.zza(v2_0, v8_1, v9_5);
            return 0;
        }
        if (p8.zzyp != null) {
            v2_13.put("retry_count", p8.zzyp);
        }
        try {
            if (this.getWritableDatabase().insert("queue", 0, v2_13) != -1) {
                return 1;
            } else {
                this.zzad().zzda().zza("Failed to insert bundle (got -1). appId", com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf));
                return 0;
            }
        } catch (com.google.android.gms.measurement.internal.zzaw v9_5) {
            v0_9 = this.zzad().zzda();
            v8_1 = com.google.android.gms.measurement.internal.zzau.zzao(p8.zzcf);
            v2_0 = "Error storing bundle. appId";
            v0_9.zza(v2_0, v8_1, v9_5);
            return 0;
        }
    }

Method com.layer.sdk.internal.lsdke.c$1.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p15)
    {
        if (com.layer.sdk.internal.lsdke.c.a(this.a) != null) {
            java.util.HashMap v3_3 = new java.util.HashMap();
            java.util.HashMap v4_0 = new java.util.HashMap();
            try {
                int v6_1 = p15.rawQuery("SELECT messages.database_identifier AS message_database_identifier, conversations.database_identifier AS conversation_database_identifier, streams.seq AS stream_seq, events.preceding_seq AS event_preceding_seq, events.client_seq AS event_client_seq, messages.user_id AS message_creator FROM messages LEFT OUTER JOIN conversations ON (conversations.database_identifier = messages.conversation_database_identifier) LEFT OUTER JOIN streams ON (streams.database_identifier = conversations.stream_database_identifier) LEFT OUTER JOIN events ON (events.database_identifier = messages.event_database_identifier) ORDER BY messages.database_identifier", 0);
                try {
                    while (v6_1.moveToNext()) {
                        Long v9_8;
                        Long v9_10;
                        String v7_4 = com.layer.sdk.internal.lsdke.c.a(this.a, v6_1, "conversation_database_identifier");
                        Long v8_2 = com.layer.sdk.internal.lsdke.c.a(this.a, v6_1, "message_database_identifier");
                        if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "event_preceding_seq")) {
                            if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "stream_seq")) {
                                v9_8 = -1;
                            } else {
                                v9_10 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "stream_seq");
                                v9_8 = v9_10.intValue();
                            }
                        } else {
                            v9_10 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "event_preceding_seq");
                        }
                        if (v9_8 == -1) {
                            v9_8 = 0;
                        }
                        Integer v10_3 = ((Integer) v3_3.get(v7_4));
                        if (v10_3 == null) {
                            v10_3 = Integer.valueOf(0);
                        }
                        if (v10_3.intValue() < v9_8) {
                            v4_0.remove(v7_4);
                        }
                        Integer v10_8;
                        v3_3.put(v7_4, Integer.valueOf(v9_8));
                        if (com.layer.sdk.internal.lsdke.c.b(this.a, v6_1, "event_client_seq")) {
                            v10_8 = 0;
                        } else {
                            v10_8 = com.layer.sdk.internal.lsdke.c.c(this.a, v6_1, "event_client_seq");
                        }
                        if (v10_8 == null) {
                            v10_8 = ((Integer) v4_0.get(v7_4));
                            if (v10_8 == null) {
                                v10_8 = Integer.valueOf(0);
                            }
                            v4_0.put(v7_4, Integer.valueOf((v10_8.intValue() + 1)));
                        }
                        Integer v13_1 = new Object[2];
                        v13_1[0] = Long.valueOf(com.layer.sdk.internal.lsdkd.lsdka.k.a().a(v9_8).c(v10_8.intValue()).a(com.layer.sdk.internal.lsdke.c.d(this.a, v6_1, "message_creator")).d());
                        v13_1[1] = v8_2;
                        p15.execSQL("UPDATE messages SET message_index = ? WHERE database_identifier = ?", v13_1);
                    }
                } catch (Throwable v15_1) {
                    if (v6_1 != 0) {
                        v6_1.close();
                    }
                    throw v15_1;
                }
                if (v6_1 != 0) {
                    v6_1.close();
                }
                return;
            } catch (Throwable v15_1) {
                v6_1 = 0;
            }
        } else {
            return;
        }
    }

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


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        com.mixpanel.android.util.MPLog.v("MixpanelAPI.Database", "Upgrading app, replacing Mixpanel events DB");
        if (p4 != 5) {
            String v3_11 = new StringBuilder();
            v3_11.append("DROP TABLE IF EXISTS ");
            v3_11.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.EVENTS.getName());
            p2.execSQL(v3_11.toString());
            String v3_3 = new StringBuilder();
            v3_3.append("DROP TABLE IF EXISTS ");
            v3_3.append(com.mixpanel.android.mpmetrics.MPDbAdapter$Table.PEOPLE.getName());
            p2.execSQL(v3_3.toString());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.b());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.c());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.d());
            p2.execSQL(com.mixpanel.android.mpmetrics.MPDbAdapter.e());
        } else {
            this.migrateTableFrom4To5(p2);
        }
        return;
    }

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


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

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

Couldn't retrieve source code

Method com.layer.sdk.internal.lsdke.lsdkc.a.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void e(android.database.sqlite.SQLiteDatabase p5)
    {
        String v1_0 = new String[2];
        v1_0[0] = Integer.toString(com.layer.sdk.messaging.MessagePart$TransferStatus.READY_FOR_DOWNLOAD.getValue());
        v1_0[1] = Integer.toString(com.layer.sdk.messaging.MessagePart$TransferStatus.DOWNLOADING.getValue());
        p5.execSQL("UPDATE message_parts SET transfer_status=? WHERE transfer_status=?", v1_0);
        String[] v0_1 = new String[2];
        v0_1[0] = Integer.toString(com.layer.sdk.messaging.MessagePart$TransferStatus.AWAITING_UPLOAD.getValue());
        v0_1[1] = Integer.toString(com.layer.sdk.messaging.MessagePart$TransferStatus.UPLOADING.getValue());
        p5.execSQL("UPDATE message_parts SET transfer_status=? WHERE transfer_status=?", v0_1);
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void b(android.database.sqlite.SQLiteDatabase p4, java.util.HashMap p5)
    {
        java.util.Iterator v0_1 = p5.keySet().iterator();
        while (v0_1.hasNext()) {
            String v1_0 = ((java.util.UUID) v0_1.next());
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("UPDATE streams SET base_sync_seq=");
            v2_1.append(p5.get(v1_0));
            v2_1.append(" WHERE stream_id=");
            v2_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(v1_0));
            v2_1.append(";");
            p4.execSQL(v2_1.toString());
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void b(android.database.sqlite.SQLiteDatabase p2, Long p3, int p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("UPDATE conversations SET total_unread_message_count=");
        v0_1.append(p4);
        v0_1.append(" WHERE database_identifier=");
        v0_1.append(p3.toString());
        p2.execSQL(v0_1.toString());
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static Boolean b(android.database.sqlite.SQLiteDatabase p4, com.layer.sdk.messaging.Conversation p5)
    {
        String v0_2 = ((com.layer.sdk.internal.lsdkd.lsdka.c) p5).m();
        int v1_3 = Boolean.valueOf(0);
        if (v0_2 != null) {
            com.layer.transport.thrift.sync.PartialSyncHints v5_6 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p4, v0_2);
            if ((v5_6.g() == null) || (v5_6.g().intValue() != com.layer.sdk.internal.lsdkk.q.a(v5_6))) {
                int v1_0 = com.layer.sdk.internal.lsdkk.q.a(v5_6);
                if ((v5_6.F()) && (v5_6.E().f())) {
                    v1_0 = v5_6.E().e();
                }
                com.layer.transport.thrift.sync.PartialSyncHints v5_3 = new StringBuilder();
                v5_3.append("UPDATE streams SET base_sync_seq=");
                v5_3.append(v1_0);
                v5_3.append(", marked_to_fetch_historic_data=1 WHERE database_identifier=");
                v5_3.append(v0_2.toString());
                p4.execSQL(v5_3.toString());
                return Boolean.valueOf(1);
            } else {
                return v1_3;
            }
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(5)) {
                String v0_5 = new StringBuilder();
                v0_5.append("Ignoring call to `updateConversationToFetchFromEarliestUnreadHistoricMessage`. No stream yet for conversation: ");
                v0_5.append(p5);
                com.layer.sdk.internal.lsdkk.k.d(com.layer.sdk.internal.lsdke.lsdkc.a.a, v0_5.toString());
            }
            return v1_3;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p4, java.util.Set p5)
    {
        int v0 = p5.size();
        java.util.HashSet v1_1 = new java.util.HashSet();
        java.util.Iterator v5_1 = p5.iterator();
        while (v5_1.hasNext()) {
            v0--;
            v1_1.add(((Long) v5_1.next()));
            if ((v1_1.size() >= 500) || (v0 == 0)) {
                String v2_4 = new StringBuilder();
                v2_4.append("DELETE FROM synced_changes WHERE table_name=\"events\" AND row_identifier IN (");
                v2_4.append(android.text.TextUtils.join(",", v1_1));
                v2_4.append(")");
                p4.execSQL(v2_4.toString());
                v1_1.clear();
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p5, java.util.HashMap p6)
    {
        java.util.Iterator v0_1 = p6.keySet().iterator();
        while (v0_1.hasNext()) {
            String v1_0 = ((java.util.UUID) v0_1.next());
            String v2_1 = ((Integer) p6.get(v1_0));
            if (v2_1 != null) {
                StringBuilder v3_1 = new StringBuilder();
                v3_1.append("UPDATE streams SET marked_to_fetch_historic_data=");
                v3_1.append(v2_1);
                v3_1.append(" WHERE stream_id=");
                v3_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(v1_0));
                v3_1.append(";");
                p5.execSQL(v3_1.toString());
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void a(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String p5)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("DELETE FROM ");
        v0_1.append(p3);
        v0_1.append(" WHERE table_name=\'");
        v0_1.append(p4);
        v0_1.append("\' AND NOT EXISTS (SELECT 1 FROM ");
        v0_1.append(p4);
        v0_1.append(" WHERE ");
        v0_1.append(p4);
        v0_1.append(".");
        v0_1.append(p5);
        v0_1.append("=");
        v0_1.append(p3);
        v0_1.append(".row_identifier)");
        p2.execSQL(v0_1.toString());
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p5, String p6, com.layer.sdk.internal.lsdkd.lsdka.c p7)
    {
        if (p7 != null) {
            String[] v4_3 = new StringBuilder();
            v4_3.append("UPDATE messages SET is_unread=(CASE WHEN (is_deleted_all_participants!=0 OR is_deleted_my_devices!=0) THEN 0 WHEN user_id=? THEN 0 WHEN EXISTS(SELECT message_database_identifier FROM message_recipient_status WHERE message_database_identifier=messages.database_identifier AND user_id=? AND status=3) THEN 0 ELSE 1 END) ");
            v4_3.append("WHERE conversation_database_identifier=?");
            String v3_0 = v4_3.toString();
            String[] v4_1 = new String[3];
            v4_1[0] = p6;
            v4_1[1] = p6;
            v4_1[2] = String.valueOf(p7.g());
            p5.execSQL(v3_0, v4_1);
        } else {
            String[] v7_1 = new String[2];
            v7_1[0] = p6;
            v7_1[1] = p6;
            p5.execSQL("UPDATE messages SET is_unread=(CASE WHEN (is_deleted_all_participants!=0 OR is_deleted_my_devices!=0) THEN 0 WHEN user_id=? THEN 0 WHEN EXISTS(SELECT message_database_identifier FROM message_recipient_status WHERE message_database_identifier=messages.database_identifier AND user_id=? AND status=3) THEN 0 ELSE 1 END) ", v7_1);
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, Long p3, int p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("UPDATE conversations SET total_message_count=");
        v0_1.append(p4);
        v0_1.append(" WHERE database_identifier=");
        v0_1.append(p3.toString());
        p2.execSQL(v0_1.toString());
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, com.layer.transport.lsdkc.h p3)
    {
        if (p3.t()) {
            StringBuilder v0_2 = new StringBuilder();
            v0_2.append("UPDATE streams SET client_seq=0, seq=");
            v0_2.append(p3.s());
            v0_2.append(" WHERE database_identifier=");
            v0_2.append(p3.a());
            v0_2.append(" AND (seq < ");
            v0_2.append(p3.s());
            v0_2.append(" OR seq IS NULL)");
            p2.execSQL(v0_2.toString());
            return;
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, com.layer.transport.lsdkc.c p3)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("UPDATE streams SET client_seq=0, seq=");
        v0_1.append(p3.k());
        v0_1.append(" WHERE stream_id=");
        v0_1.append(com.layer.sdk.internal.lsdke.lsdkc.d.a(p3.c()));
        v0_1.append(" AND (seq < ");
        v0_1.append(p3.k());
        v0_1.append(" OR seq IS NULL)");
        p2.execSQL(v0_1.toString());
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdkd.lsdka.c p4)
    {
        if (p4 != null) {
            Object[] v2_3 = new StringBuilder();
            v2_3.append("UPDATE conversations SET has_unread_messages=(CASE WHEN total_unread_message_count IS NULL then (CASE WHEN EXISTS(SELECT 1 FROM messages WHERE conversation_database_identifier=conversations.database_identifier AND is_unread=1 AND is_deleted_all_participants=0 AND is_deleted_my_devices=0) THEN 1 ELSE 0 END) WHEN total_unread_message_count=0 then 0 ELSE 1 END) ");
            v2_3.append("WHERE database_identifier=?");
            String v1_3 = v2_3.toString();
            Object[] v2_1 = new Object[1];
            v2_1[0] = p4.g();
            p3.execSQL(v1_3, v2_1);
        } else {
            Long v4_3 = new StringBuilder();
            v4_3.append("UPDATE conversations SET has_unread_messages=(CASE WHEN total_unread_message_count IS NULL then (CASE WHEN EXISTS(SELECT 1 FROM messages WHERE conversation_database_identifier=conversations.database_identifier AND is_unread=1 AND is_deleted_all_participants=0 AND is_deleted_my_devices=0) THEN 1 ELSE 0 END) WHEN total_unread_message_count=0 then 0 ELSE 1 END) ");
            v4_3.append("WHERE database_identifier=conversations.database_identifier");
            Object[] v0_1 = new Object[0];
            p3.execSQL(v4_3.toString(), v0_1);
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p6)
    {
        android.database.Cursor v1 = 0;
        try {
            p6.execSQL("PRAGMA foreign_keys=OFF");
            p6.beginTransaction();
            int v3_1 = 1;
            try {
                v1 = p6.rawQuery("SELECT name FROM sqlite_master WHERE type=\'table\'", 0);
            } catch (Throwable v2_1) {
                if (v3_1 != 0) {
                    p6.endTransaction();
                }
                p6.execSQL("PRAGMA foreign_keys=ON");
                if (v1 != null) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v2_1;
            }
            while (v1.moveToNext()) {
                String v4_2 = v1.getString(0);
                if (!v4_2.startsWith("sqlite_")) {
                    if (!v4_2.equals("android_metadata")) {
                        String v4_5 = new StringBuilder();
                        v4_5.append("DROP TABLE ");
                        v4_5.append(v1.getString(0));
                        p6.execSQL(v4_5.toString());
                    } else {
                    }
                } else {
                }
            }
            v1.close();
            p6.setTransactionSuccessful();
            try {
                p6.endTransaction();
                p6.execSQL("PRAGMA foreign_keys=ON");
            } catch (boolean v6_1) {
                if (v1 != null) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v6_1;
            }
            if ((v1 != null) && (!v1.isClosed())) {
                v1.close();
            }
            return;
        } catch (int v3_2) {
            v2_1 = v3_2;
            v3_1 = 0;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static Boolean a(android.database.sqlite.SQLiteDatabase p4, com.layer.sdk.messaging.Conversation p5, Integer p6)
    {
        String v0_2 = ((com.layer.sdk.internal.lsdkd.lsdka.c) p5).m();
        String v1_3 = Boolean.valueOf(0);
        if (v0_2 != null) {
            String v5_8 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p4, v0_2);
            if ((v5_8.g() == null) || (v5_8.g().intValue() != com.layer.sdk.internal.lsdkk.q.a(v5_8))) {
                if ((v5_8.h().intValue() <= 0) || (p6 == null)) {
                    String v5_3;
                    if (p6 != null) {
                        String v5_2 = new StringBuilder();
                        v5_2.append("UPDATE streams SET marked_to_fetch_historic_data=");
                        v5_2.append(p6);
                        v5_2.append(" WHERE database_identifier=");
                        v5_2.append(v0_2.toString());
                        v5_3 = v5_2.toString();
                    } else {
                        String v6_4 = new StringBuilder();
                        v6_4.append("UPDATE streams SET base_sync_seq=");
                        v6_4.append(com.layer.sdk.internal.lsdkk.q.a(v5_8));
                        v6_4.append(", marked_to_fetch_historic_data=1 WHERE database_identifier=");
                        v6_4.append(v0_2.toString());
                        v5_3 = v6_4.toString();
                    }
                    p4.execSQL(v5_3);
                    return Boolean.valueOf(1);
                } else {
                    return v1_3;
                }
            } else {
                return v1_3;
            }
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(5)) {
                String v6_6 = new StringBuilder();
                v6_6.append("Ignoring call to `updateStreamToFetchHistoricMessages`. No stream yet for conversation: ");
                v6_6.append(p5);
                com.layer.sdk.internal.lsdkk.k.d(ark>com.layer.sdk.internal.lsdke.lsdkc.aark>.a, v6_6.toString());
            }
            return v1_3;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkb.b.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public com.layer.sdk.internal.lsdke.lsdkb.b b(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS schema_migrations (version INTEGER UNIQUE NOT NULL)");
        return this;
    }

Method com.layer.sdk.internal.lsdke.lsdkb.a$a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, java.util.List p3)
    {
        String v3_1 = p3.iterator();
        while (v3_1.hasNext()) {
            android.database.Cursor v0_0 = ((String) v3_1.next()).trim();
            if ((!v0_0.isEmpty()) && (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a, v0_0))) {
                if (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.b, v0_0)) {
                    if (!ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.a(ark>com.layer.sdk.internal.lsdke.lsdkb.a$aark>.c, v0_0)) {
                        String v3_3 = new StringBuilder();
                        v3_3.append("Cannot parse statement: ");
                        v3_3.append(v0_0);
                        throw new IllegalArgumentException(v3_3.toString());
                    } else {
                        android.database.Cursor v0_2 = p2.rawQuery(v0_0, 0);
                        if (v0_2 != null) {
                            v0_2.close();
                        }
                    }
                } else {
                    p2.execSQL(v0_0);
                }
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.d.g() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void g()
    {
        this.f.execSQL("ANALYZE");
        return;
    }

Method com.layer.sdk.internal.lsdke.d.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void f()
    {
        try {
            this.f.execSQL("VACUUM");
        } catch (android.database.sqlite.SQLiteException v0_1) {
            if (!com.layer.sdk.internal.lsdkk.k.a(6)) {
            } else {
                com.layer.sdk.internal.lsdkk.k.d(com.layer.sdk.internal.lsdke.d.h, v0_1.getMessage(), v0_1);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.d.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p9)
    {
        try {
            String v3_7;
            String v5_2;
            ark>com.layer.sdk.internal.lsdke.dark>.g.lock();
            p9.execSQL("PRAGMA foreign_keys=ON");
            String v1_4 = new com.layer.sdk.internal.lsdke.lsdkb.b();
            int v2_4 = 1;
            String v3_9 = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.a[1];
            v3_9[0] = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.b(this.a.getApplicationContext(), "layer-schema/schema.sql", "layer-migrations");
            v1_4.a(v3_9);
            String v3_0 = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.a[1];
            v3_0[0] = new com.layer.sdk.internal.lsdke.c(this.c, this.d);
            v1_4.a(v3_0);
        } catch (java.util.concurrent.locks.ReentrantLock v9_3) {
            ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
            throw v9_3;
        }
        if (v1_4.a(p9)) {
            if (!v1_4.h(p9)) {
                if (v1_4.d(p9).isEmpty()) {
                    ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
                    return;
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                        String v3_4 = new StringBuilder();
                        v3_4.append("Applying ");
                        v3_4.append(v1_4.d(p9).size());
                        v3_4.append(" schema migration(s).");
                        com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, v3_4.toString());
                    }
                    v2_4 = 0;
                }
            } else {
                if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                    v3_7 = ark>com.layer.sdk.internal.lsdke.dark>.h;
                    v5_2 = "Dropping database due to downgrade.  Unsent messages may be lost.";
                    com.layer.sdk.internal.lsdkk.k.a(v3_7, v5_2);
                }
            }
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                v3_7 = ark>com.layer.sdk.internal.lsdke.dark>.h;
                v5_2 = "Dropping database as there is no migrations table.";
            }
        }
        int v2_5;
        p9.execSQL("PRAGMA foreign_keys=OFF");
        if (v2_4 == 0) {
            v2_5 = com.layer.sdk.internal.lsdke.lsdkb.b$a.a;
        } else {
            com.layer.sdk.internal.lsdke.lsdkc.a.a(p9);
            v2_5 = com.layer.sdk.internal.lsdke.lsdkb.b$a.b;
        }
        int v2_6 = v1_4.a(p9, v2_5);
        p9.execSQL("PRAGMA foreign_keys=ON");
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Vacuuming database...");
        }
        this.f();
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Analyzing database...");
        }
        this.g();
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Validating database...");
        }
        this.a(p9, v1_4);
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            String v0_2 = new StringBuilder();
            v0_2.append("Applied ");
            v0_2.append(v2_6);
            v0_2.append(" migration(s).");
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, v0_2.toString());
        }
        ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
        return;
    }

Method com.layer.sdk.internal.lsdke.d.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p9)
    {
        try {
            String v5_2;
            String v3_7;
            ark>com.layer.sdk.internal.lsdke.dark>.g.lock();
            p9.execSQL("PRAGMA foreign_keys=ON");
            String v1_4 = new com.layer.sdk.internal.lsdke.lsdkb.b();
            int v2_4 = 1;
            String v3_9 = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.a[1];
            v3_9[0] = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.b(this.a.getApplicationContext(), "layer-schema/schema.sql", "layer-migrations");
            v1_4.a(v3_9);
            String v3_0 = new com.layer.sdk.internal.lsdke.lsdkb.lsdka.a[1];
            v3_0[0] = new com.layer.sdk.internal.lsdke.c(this.c, this.d);
            v1_4.a(v3_0);
        } catch (java.util.concurrent.locks.ReentrantLock v9_3) {
            ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
            throw v9_3;
        }
        if (v1_4.a(p9)) {
            if (!v1_4.h(p9)) {
                if (v1_4.d(p9).isEmpty()) {
                    ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
                    return;
                } else {
                    if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                        String v3_4 = new StringBuilder();
                        v3_4.append("Applying ");
                        v3_4.append(v1_4.d(p9).size());
                        v3_4.append(" schema migration(s).");
                        com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, v3_4.toString());
                    }
                    v2_4 = 0;
                }
            } else {
                if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                    v3_7 = ark>com.layer.sdk.internal.lsdke.dark>.h;
                    v5_2 = "Dropping database due to downgrade.  Unsent messages may be lost.";
                    com.layer.sdk.internal.lsdkk.k.a(v3_7, v5_2);
                }
            }
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(2)) {
                v3_7 = ark>com.layer.sdk.internal.lsdke.dark>.h;
                v5_2 = "Dropping database as there is no migrations table.";
            }
        }
        int v2_5;
        p9.execSQL("PRAGMA foreign_keys=OFF");
        if (v2_4 == 0) {
            v2_5 = com.layer.sdk.internal.lsdke.lsdkb.b$a.a;
        } else {
            com.layer.sdk.internal.lsdke.lsdkc.a.a(p9);
            v2_5 = com.layer.sdk.internal.lsdke.lsdkb.b$a.b;
        }
        int v2_6 = v1_4.a(p9, v2_5);
        p9.execSQL("PRAGMA foreign_keys=ON");
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Vacuuming database...");
        }
        this.f();
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Analyzing database...");
        }
        this.g();
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, "Validating database...");
        }
        this.a(p9, v1_4);
        if (com.layer.sdk.internal.lsdkk.k.a(2)) {
            String v0_2 = new StringBuilder();
            v0_2.append("Applied ");
            v0_2.append(v2_6);
            v0_2.append(" migration(s).");
            com.layer.sdk.internal.lsdkk.k.a(ark>com.layer.sdk.internal.lsdke.dark>.h, v0_2.toString());
        }
        ark>com.layer.sdk.internal.lsdke.dark>.g.unlock();
        return;
    }

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


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

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


    final com.google.android.gms.internal.measurement.zzbt$zza[] zza(String p67, com.google.android.gms.internal.measurement.zzcf[] p68, com.google.android.gms.internal.measurement.zzbt$zzh[] p69)
    {
        long v15_0 = p67;
        long v13_3 = p68;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p67);
        int v11_9 = new java.util.HashSet();
        int v12_4 = new androidx.collection.ArrayMap();
        java.util.BitSet v10_0 = new androidx.collection.ArrayMap();
        com.google.android.gms.internal.measurement.zzbt$zzg v9_5 = new androidx.collection.ArrayMap();
        androidx.collection.ArrayMap v8_12 = new androidx.collection.ArrayMap();
        java.util.BitSet v6_10 = new androidx.collection.ArrayMap();
        boolean v23 = this.zzaf().zzt(p67);
        boolean v24 = this.zzaf().zzd(p67, com.google.android.gms.measurement.internal.zzal.zzit);
        int v0_32 = this.zzdo().zzah(p67);
        if (v0_32 != 0) {
            long v1_75 = v0_32.keySet().iterator();
            while (v1_75.hasNext()) {
                com.google.android.gms.internal.measurement.zzbt$zzd v19_5;
                int v21_4;
                int v0_27;
                Integer v25_0;
                Integer v2_27 = ((Integer) v1_75.next()).intValue();
                androidx.collection.ArrayMap v4_18 = ((com.google.android.gms.internal.measurement.zzbt$zzf) v0_32.get(Integer.valueOf(v2_27)));
                Boolean v3_28 = ((java.util.BitSet) v10_0.get(Integer.valueOf(v2_27)));
                long v5_13 = ((java.util.BitSet) v9_5.get(Integer.valueOf(v2_27)));
                if (!v23) {
                    v19_5 = v0_32;
                    v25_0 = v1_75;
                    v21_4 = v5_13;
                    v0_27 = 0;
                } else {
                    v19_5 = v0_32;
                    v0_27 = new androidx.collection.ArrayMap();
                    if ((v4_18 != null) && (v4_18.zzif() != 0)) {
                        int v20_5 = v4_18.zzie().iterator();
                        while (v20_5.hasNext()) {
                            int v21_8;
                            Integer v25_1;
                            int v21_7 = ((com.google.android.gms.internal.measurement.zzbt$zzb) v20_5.next());
                            if (!v21_7.zzhd()) {
                                v25_1 = v1_75;
                                v21_8 = v5_13;
                            } else {
                                long v5_14;
                                v25_1 = v1_75;
                                long v1_74 = Integer.valueOf(v21_7.getIndex());
                                if (!v21_7.zzhe()) {
                                    v21_8 = v5_13;
                                    v5_14 = 0;
                                } else {
                                    v21_8 = v5_13;
                                    v5_14 = Long.valueOf(v21_7.zzhf());
                                }
                                v0_27.put(v1_74, v5_14);
                            }
                            v5_13 = v21_8;
                            v1_75 = v25_1;
                        }
                    }
                    v25_0 = v1_75;
                    v21_4 = v5_13;
                    v8_12.put(Integer.valueOf(v2_27), v0_27);
                }
                long v5_15;
                if (v3_28 != null) {
                    v5_15 = v21_4;
                } else {
                    v3_28 = new java.util.BitSet();
                    v10_0.put(Integer.valueOf(v2_27), v3_28);
                    v5_15 = new java.util.BitSet();
                    v9_5.put(Integer.valueOf(v2_27), v5_15);
                }
                long v1_79 = 0;
                while(true) {
                    int v21_11 = v8_12;
                    if (v1_79 >= (v4_18.zzib() << 6)) {
                        break;
                    }
                    androidx.collection.ArrayMap v8_29;
                    int v20_8;
                    int v22_7;
                    Integer v26_7;
                    if (!com.google.android.gms.measurement.internal.zzfz.zza(v4_18.zzia(), v1_79)) {
                        v20_8 = v9_5;
                        v22_7 = v10_0;
                        v26_7 = v11_9;
                        v8_29 = 0;
                    } else {
                        v20_8 = v9_5;
                        v22_7 = v10_0;
                        v26_7 = v11_9;
                        this.zzad().zzdi().zza("Filter already evaluated. audience ID, filter ID", Integer.valueOf(v2_27), Integer.valueOf(v1_79));
                        v5_15.set(v1_79);
                        if (!com.google.android.gms.measurement.internal.zzfz.zza(v4_18.zzic(), v1_79)) {
                        } else {
                            v3_28.set(v1_79);
                            v8_29 = 1;
                        }
                    }
                    if ((v0_27 != 0) && (v8_29 == null)) {
                        v0_27.remove(Integer.valueOf(v1_79));
                    }
                    v1_79++;
                    v9_5 = v20_8;
                    v8_12 = v21_11;
                    v10_0 = v22_7;
                    v11_9 = v26_7;
                }
                int v20_7 = v9_5;
                int v22_6 = v10_0;
                Integer v26_6 = v11_9;
                long v1_82 = com.google.android.gms.internal.measurement.zzbt$zza.zzhb().zzl(0).zzb(v4_18);
                Boolean v3_32 = com.google.android.gms.internal.measurement.zzbt$zzf.zzii().zzf(com.google.android.gms.measurement.internal.zzfz.zza(v3_28)).zze(com.google.android.gms.measurement.internal.zzfz.zza(v5_15));
                if (v23) {
                    v3_32.zzg(com.google.android.gms.measurement.internal.zzo.zza(v0_27));
                    v6_10.put(Integer.valueOf(v2_27), new androidx.collection.ArrayMap());
                }
                v1_82.zzb(v3_32);
                v12_4.put(Integer.valueOf(v2_27), ((com.google.android.gms.internal.measurement.zzbt$zza) ((com.google.android.gms.internal.measurement.zzez) v1_82.zzmr())));
                v0_32 = v19_5;
                v9_5 = v20_7;
                v8_12 = v21_11;
                v10_0 = v22_6;
                v1_75 = v25_0;
                v11_9 = v26_6;
            }
        }
        int v21_3 = v8_12;
        int v20_2 = v9_5;
        int v22_2 = v10_0;
        Integer v26_5 = v11_9;
        java.util.BitSet v10_9 = "Filter definition";
        androidx.collection.ArrayMap v8_18 = "Skipping failed audience ID";
        if (p68 != null) {
            androidx.collection.ArrayMap v4_15 = new androidx.collection.ArrayMap();
            long v5_10 = p68.length;
            int v29 = 0;
            int v0_0 = 0;
            long v1_11 = 0;
            Boolean v3_25 = 0;
            while (v3_25 < v5_10) {
                Integer v26_1;
                com.google.android.gms.measurement.internal.zzaw v37_1;
                int v11_3;
                com.google.android.gms.measurement.internal.zzaw v46_0;
                int v0_22;
                java.util.List v42_2;
                com.google.android.gms.measurement.internal.zzaw v38_1;
                java.util.List v33_0;
                java.util.BitSet v64_0;
                long v36_1;
                java.util.ArrayList v47_0;
                Integer v48_0;
                String v16_1;
                com.google.android.gms.internal.measurement.zzbt$zzd v43_0;
                java.util.List v42_0;
                long v13_10;
                Integer v2_59 = v13_3[v3_25];
                com.google.android.gms.internal.measurement.zzbt$zzg v9_49 = v2_59.name;
                int v11_14 = java.util.Arrays.asList(v2_59.zzxi);
                java.util.Iterator v32 = v3_25;
                java.util.List v33_1 = v4_15;
                if (!this.zzaf().zzd(v15_0, com.google.android.gms.measurement.internal.zzal.zzhr)) {
                    v38_1 = v0_0;
                    v13_10 = v2_59;
                    v43_0 = v6_10;
                    v42_2 = v33_1;
                    v33_0 = v5_10;
                    v36_1 = v1_11;
                    v0_22 = v9_49;
                    v37_1 = v11_14;
                    java.util.BitSet v45_0;
                    long v1_2;
                    Integer v2_1;
                    boolean v17_0;
                    String v7_0;
                    long v5_0;
                    Integer v26_0;
                    long v1_0 = this.zzdo().zzc(v15_0, v13_10.name);
                    if (v1_0 != 0) {
                        v46_0 = v8_18;
                        v48_0 = v10_9;
                        v5_0 = v15_0;
                        v45_0 = v20_2;
                        v7_0 = v21_3;
                        v47_0 = v22_2;
                        v2_1 = v26_5;
                        v26_0 = v12_4;
                        java.util.BitSet v6_0 = new com.google.android.gms.measurement.internal.zzaf;
                        v17_0 = v13_10;
                        v6_0(v1_0.zzcf, v1_0.name, (v1_0.zzfe + 1), (v1_0.zzff + 1), v1_0.zzfg, v1_0.zzfh, v1_0.zzfi, v1_0.zzfj, v1_0.zzfk, v1_0.zzfl);
                        v1_2 = v6_0;
                    } else {
                        this.zzad().zzdd().zza("Event aggregate wasn\'t created during raw event logging. appId, event", com.google.android.gms.measurement.internal.zzau.zzao(p67), this.zzaa().zzal(v0_22));
                        v1_2 = new com.google.android.gms.measurement.internal.zzaf;
                        v46_0 = v8_18;
                        v45_0 = v20_2;
                        v48_0 = v10_9;
                        v47_0 = v22_2;
                        v7_0 = v21_3;
                        v2_1 = v26_5;
                        v26_0 = v12_4;
                        Boolean v3_5 = v13_10;
                        v5_0 = v15_0;
                        v1_2(p67, v13_10.name, 1, 1, v13_10.zzxj.longValue(), 0, 0, 0, 0, 0);
                        v17_0 = v3_5;
                    }
                    this.zzdo().zza(v1_2);
                    androidx.collection.ArrayMap v8_2 = v1_2.zzfe;
                    java.util.BitSet v10_5 = v42_2;
                    long v1_6 = ((java.util.Map) v10_5.get(v0_22));
                    if (v1_6 == 0) {
                        v1_6 = this.zzdo().zzh(v5_0, v0_22);
                        if (v1_6 == 0) {
                            v1_6 = new androidx.collection.ArrayMap();
                        }
                        v10_5.put(v0_22, v1_6);
                    }
                    int v11_2 = v1_6;
                    int v12_1 = v11_2.keySet().iterator();
                    while (v12_1.hasNext()) {
                        long v13_1 = ((Integer) v12_1.next()).intValue();
                        if (!v2_1.contains(Integer.valueOf(v13_1))) {
                            int v18_0;
                            java.util.List v42_1;
                            java.util.BitSet v10_6;
                            com.google.android.gms.internal.measurement.zzbt$zzd v19_1;
                            String v16_2;
                            long v14_1 = v46_0;
                            long v15_3 = v47_0;
                            long v1_18 = ((java.util.BitSet) v15_3.get(Integer.valueOf(v13_1)));
                            java.util.BitSet v6_2 = v45_0;
                            Boolean v3_9 = ((java.util.BitSet) v6_2.get(Integer.valueOf(v13_1)));
                            if (!v23) {
                                v16_2 = v1_18;
                                v42_1 = v10_5;
                                v10_6 = v43_0;
                                v18_0 = 0;
                                v19_1 = 0;
                            } else {
                                v16_2 = v1_18;
                                v18_0 = ((java.util.Map) v7_0.get(Integer.valueOf(v13_1)));
                                v42_1 = v10_5;
                                v10_6 = v43_0;
                                v19_1 = ((java.util.Map) v10_6.get(Integer.valueOf(v13_1)));
                            }
                            Boolean v3_14;
                            Integer v26_2;
                            java.util.BitSet v10_7;
                            long v1_35;
                            int v20_1 = v12_1;
                            int v12_2 = v26_0;
                            if (((com.google.android.gms.internal.measurement.zzbt$zza) v12_2.get(Integer.valueOf(v13_1))) != null) {
                                v26_2 = v2_1;
                                v1_35 = v3_9;
                                v43_0 = v10_6;
                                v3_14 = v16_2;
                                v10_7 = v19_1;
                            } else {
                                long v1_28 = com.google.android.gms.internal.measurement.zzbt$zza.zzhb();
                                v1_28.zzl(1);
                                v12_2.put(Integer.valueOf(v13_1), ((com.google.android.gms.internal.measurement.zzbt$zza) ((com.google.android.gms.internal.measurement.zzez) v1_28.zzmr())));
                                long v1_33 = new java.util.BitSet();
                                v15_3.put(Integer.valueOf(v13_1), v1_33);
                                v3_9 = new java.util.BitSet();
                                v16_2 = v1_33;
                                v6_2.put(Integer.valueOf(v13_1), v3_9);
                                if (!v23) {
                                } else {
                                    long v1_37 = new androidx.collection.ArrayMap();
                                    v26_2 = v2_1;
                                    v7_0.put(Integer.valueOf(v13_1), v1_37);
                                    Integer v2_6 = new androidx.collection.ArrayMap();
                                    v18_0 = v1_37;
                                    v10_6.put(Integer.valueOf(v13_1), v2_6);
                                    v1_35 = v3_9;
                                    v43_0 = v10_6;
                                    v3_14 = v16_2;
                                    v10_7 = v2_6;
                                }
                            }
                            String v16_3 = v12_2;
                            int v12_3 = v18_0;
                            int v18_1 = ((java.util.List) v11_2.get(Integer.valueOf(v13_1))).iterator();
                            while (v18_1.hasNext()) {
                                java.util.BitSet v45_1;
                                int v11_6;
                                Integer v2_12 = ((com.google.android.gms.internal.measurement.zzby) v18_1.next());
                                com.google.android.gms.internal.measurement.zzbt$zzd v19_2 = v1_35;
                                int v21_2 = v11_2;
                                if (!this.zzad().isLoggable(2)) {
                                    v45_1 = v6_2;
                                    v11_6 = v48_0;
                                } else {
                                    v45_1 = v6_2;
                                    this.zzad().zzdi().zza("Evaluating filter. audience, filter, event", Integer.valueOf(v13_1), v2_12.zzwa, this.zzaa().zzal(v2_12.zzwb));
                                    v11_6 = v48_0;
                                    this.zzad().zzdi().zza(v11_6, this.zzdm().zza(v2_12));
                                }
                                if ((v2_12.zzwa != null) && (v2_12.zzwa.intValue() <= 256)) {
                                    java.util.ArrayList v47_1;
                                    String v7_3;
                                    com.google.android.gms.measurement.internal.zzaw v46_1;
                                    long v14_2;
                                    Integer v26_3;
                                    long v15_4;
                                    java.util.BitSet v64_1;
                                    boolean v17_2;
                                    if (!v23) {
                                        long v5_5 = v2_12;
                                        v48_0 = v11_6;
                                        v46_1 = v14_1;
                                        v47_1 = v15_3;
                                        v14_2 = v19_2;
                                        int v11_8 = v26_2;
                                        v64_1 = v45_1;
                                        v15_4 = v3_14;
                                        v26_3 = v7_0;
                                        v7_3 = v17_0;
                                        v17_2 = v0_22;
                                        if (!v15_4.get(v5_5.zzwa.intValue())) {
                                            Boolean v3_16;
                                            com.google.android.gms.internal.measurement.zzbt$zzd v19_3 = v7_3;
                                            String v7_4 = v5_5;
                                            long v1_52 = this.zza(v5_5, v17_2, v37_1, v8_2);
                                            com.google.android.gms.measurement.internal.zzaw vtmp376 = this.zzad().zzdi();
                                            if (v1_52 != 0) {
                                                v3_16 = v1_52;
                                            } else {
                                                v3_16 = "null";
                                            }
                                            vtmp376.zza("Event filter result", v3_16);
                                            if (v1_52 != 0) {
                                                v14_2.set(v7_4.zzwa.intValue());
                                                if (!v1_52.booleanValue()) {
                                                    androidx.collection.ArrayMap v4 = p69;
                                                    v1_35 = v14_2;
                                                    v3_14 = v15_4;
                                                    v0_22 = v17_2;
                                                    v17_0 = v19_3;
                                                    v7_0 = v26_3;
                                                    v14_1 = v46_1;
                                                    v15_3 = v47_1;
                                                    v6_2 = v64_1;
                                                    v26_2 = v11_8;
                                                    v11_2 = v21_2;
                                                } else {
                                                    v15_4.set(v7_4.zzwa.intValue());
                                                }
                                            } else {
                                                v11_8.add(Integer.valueOf(v13_1));
                                            }
                                        } else {
                                            this.zzad().zzdi().zza("Event filter already evaluated true. audience ID, filter ID", Integer.valueOf(v13_1), v5_5.zzwa);
                                        }
                                    } else {
                                        if ((v2_12 == null) || ((v2_12.zzvx == null) || (!v2_12.zzvx.booleanValue()))) {
                                            int v22_1 = 0;
                                        } else {
                                            v22_1 = 1;
                                        }
                                        if ((v2_12 == null) || ((v2_12.zzvy == null) || (!v2_12.zzvy.booleanValue()))) {
                                            int v31 = 0;
                                        } else {
                                            v31 = 1;
                                        }
                                        if ((!v3_14.get(v2_12.zzwa.intValue())) || ((v22_1 != 0) || (v31 != 0))) {
                                            Boolean v3_19;
                                            com.google.android.gms.internal.measurement.zzbt$zzd v19_4 = v2_12;
                                            v48_0 = v11_6;
                                            v11_8 = v26_2;
                                            v26_3 = v7_0;
                                            v47_1 = v15_3;
                                            v7_3 = v17_0;
                                            v15_4 = v3_14;
                                            v46_1 = v14_1;
                                            v14_2 = v19_2;
                                            v17_2 = v0_22;
                                            v64_1 = v45_1;
                                            long v1_64 = this.zza(v2_12, v0_22, v37_1, v8_2);
                                            Integer v2_18 = this.zzad().zzdi();
                                            if (v1_64 != 0) {
                                                v3_19 = v1_64;
                                            } else {
                                                v3_19 = "null";
                                            }
                                            v2_18.zza("Event filter result", v3_19);
                                            if (v1_64 != 0) {
                                                long v5_8 = v19_4;
                                                v14_2.set(v5_8.zzwa.intValue());
                                                if (v1_64.booleanValue()) {
                                                    v15_4.set(v5_8.zzwa.intValue());
                                                    if (((v22_1 != 0) || (v31 != 0)) && (v7_3.zzxj != null)) {
                                                        if (v31 == 0) {
                                                            com.google.android.gms.measurement.internal.zzo.zza(v12_3, v5_8.zzwa.intValue(), v7_3.zzxj.longValue());
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzo.zzb(v10_7, v5_8.zzwa.intValue(), v7_3.zzxj.longValue());
                                                        }
                                                    }
                                                }
                                            } else {
                                                v11_8.add(Integer.valueOf(v13_1));
                                            }
                                        } else {
                                            this.zzad().zzdi().zza("Event filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v13_1), v2_12.zzwa);
                                            v4 = p69;
                                            v48_0 = v11_6;
                                            v1_35 = v19_2;
                                            v11_2 = v21_2;
                                            v6_2 = v45_1;
                                        }
                                    }
                                    v4 = p69;
                                    v1_35 = v14_2;
                                    v3_14 = v15_4;
                                    v0_22 = v17_2;
                                    v14_1 = v46_1;
                                    v15_3 = v47_1;
                                    v6_2 = v64_1;
                                    v17_0 = v7_3;
                                    v7_0 = v26_3;
                                } else {
                                    v48_0 = v11_6;
                                    v46_1 = v14_1;
                                    v47_1 = v15_3;
                                    v14_2 = v19_2;
                                    v11_8 = v26_2;
                                    v64_1 = v45_1;
                                    v15_4 = v3_14;
                                    v26_3 = v7_0;
                                    v19_3 = v17_0;
                                    v17_2 = v0_22;
                                    this.zzad().zzdd().zza("Invalid event filter ID. appId, id", com.google.android.gms.measurement.internal.zzau.zzao(p67), String.valueOf(v2_12.zzwa));
                                }
                            }
                            v4 = p69;
                            v45_0 = v6_2;
                            v2_1 = v26_2;
                            v46_0 = v14_1;
                            v47_0 = v15_3;
                            v26_0 = v16_3;
                            v12_1 = v20_1;
                            v10_5 = v42_1;
                        } else {
                            this.zzad().zzdi().zza(v46_0, Integer.valueOf(v13_1));
                        }
                    }
                    v11_3 = v2_1;
                    v42_0 = v10_5;
                    v16_1 = v26_0;
                    v64_0 = v45_0;
                    v26_1 = v7_0;
                    v1_11 = v36_1;
                    v0_0 = v38_1;
                } else {
                    long v36_0;
                    this.zzdm();
                    androidx.collection.ArrayMap v4_33 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v2_59, "_eid"));
                    if (v4_33 == null) {
                        v36_0 = 0;
                    } else {
                        v36_0 = 1;
                    }
                    long v5_37;
                    com.google.android.gms.measurement.internal.zzaw v37_0;
                    if (v36_0 == 0) {
                        v37_0 = v5_10;
                        v5_37 = 0;
                    } else {
                        v37_0 = v5_10;
                        if (!v9_49.equals("_ep")) {
                        } else {
                            v5_37 = 1;
                        }
                    }
                    if (v5_37 == 0) {
                        v38_1 = v0_0;
                        v13_10 = v2_59;
                        v43_0 = v6_10;
                        v42_2 = v33_1;
                        v33_0 = v37_0;
                        if (v36_0 == 0) {
                        } else {
                            this.zzdm();
                            int v0_64 = Long.valueOf(0);
                            long v1_125 = com.google.android.gms.measurement.internal.zzfz.zzb(v13_10, "_epc");
                            if (v1_125 != 0) {
                                v0_64 = v1_125;
                            }
                            int v0_68;
                            String v16_7 = ((Long) v0_64).longValue();
                            if (v16_7 > 0) {
                                v0_68 = v4_33;
                                this.zzdo().zza(p67, v4_33, v16_7, v13_10);
                            } else {
                                this.zzad().zzdd().zza("Complex event with zero extra param count. eventName", v9_49);
                                v0_68 = v4_33;
                            }
                            v36_1 = v0_68;
                            v0_22 = v9_49;
                            v37_1 = v11_14;
                            v38_1 = v13_10;
                            v29 = v16_7;
                        }
                    } else {
                        com.google.android.gms.measurement.internal.zzaw v38_0;
                        this.zzdm();
                        v9_49 = ((String) com.google.android.gms.measurement.internal.zzfz.zzb(v2_59, "_en"));
                        if (!android.text.TextUtils.isEmpty(v9_49)) {
                            if ((v0_0 == 0) || ((v1_11 == 0) || (v4_33.longValue() != v1_11.longValue()))) {
                                long v5_43 = this.zzdo().zza(v15_0, v4_33);
                                if (v5_43 == 0) {
                                    v38_0 = v0_0;
                                } else {
                                    v38_0 = v0_0;
                                    if (v5_43.first != null) {
                                        v0_0 = ((com.google.android.gms.internal.measurement.zzcf) v5_43.first);
                                        v29 = ((Long) v5_43.second).longValue();
                                        this.zzdm();
                                        v1_11 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v0_0, "_eid"));
                                        String v16_8;
                                        long v5_44 = v0_0;
                                        v36_1 = v1_11;
                                        v29--;
                                        if (v29 > 0) {
                                            int v18 = 0;
                                            v13_10 = v2_59;
                                            v16_8 = v5_44;
                                            v42_2 = v33_1;
                                            v33_0 = v37_0;
                                            v43_0 = v6_10;
                                            this.zzdo().zza(p67, v4_33, v29, v16_8);
                                        } else {
                                            long v1_132 = this.zzdo();
                                            v1_132.zzq();
                                            v1_132.zzad().zzdi().zza("Clearing complex main event info. appId", v15_0);
                                            try {
                                                int v0_80 = v1_132.getWritableDatabase();
                                                boolean v17_10 = v2_59;
                                                try {
                                                    Integer v2_62 = new String[1];
                                                    try {
                                                        v2_62[0] = v15_0;
                                                        v0_80.execSQL("delete from main_event_params where app_id=?", v2_62);
                                                    } catch (int v0_82) {
                                                        v1_132.zzad().zzda().zza("Error clearing complex main event", v0_82);
                                                    }
                                                    v16_8 = v5_44;
                                                    v43_0 = v6_10;
                                                    v13_10 = v17_10;
                                                    v42_2 = v33_1;
                                                    v33_0 = v37_0;
                                                } catch (int v0_82) {
                                                }
                                            } catch (int v0_82) {
                                                v17_10 = v2_59;
                                            }
                                        }
                                        int v0_84 = new java.util.ArrayList();
                                        long v1_135 = v16_8;
                                        Integer v2_64 = v1_135.zzxi;
                                        Boolean v3_56 = v2_64.length;
                                        androidx.collection.ArrayMap v4_14 = 0;
                                        while (v4_14 < v3_56) {
                                            long v5_9 = v2_64[v4_14];
                                            this.zzdm();
                                            if (com.google.android.gms.measurement.internal.zzfz.zza(v13_10, v5_9.getName()) == null) {
                                                v0_84.add(v5_9);
                                            }
                                            v4_14++;
                                        }
                                        if (v0_84.isEmpty()) {
                                            this.zzad().zzdd().zza("No unique parameters in main event. eventName", v9_49);
                                            v38_1 = v1_135;
                                        } else {
                                            Integer v2_67 = v11_14.iterator();
                                            while (v2_67.hasNext()) {
                                                v0_84.add(((com.google.android.gms.internal.measurement.zzbt$zzd) v2_67.next()));
                                            }
                                            v37_1 = v0_84;
                                            v38_1 = v1_135;
                                            v0_22 = v9_49;
                                        }
                                    }
                                }
                                v43_0 = v6_10;
                                v42_0 = v33_1;
                                v33_0 = v37_0;
                                this.zzad().zzda().zza("Extra parameter without existing main event. eventName, eventId", v9_49, v4_33);
                                v46_0 = v8_18;
                                v48_0 = v10_9;
                                v16_1 = v12_4;
                                v64_0 = v20_2;
                                v47_0 = v22_2;
                                v11_3 = v26_5;
                                v0_0 = v38_0;
                                v26_1 = v21_3;
                                v3_25 = (v32 + 1);
                                v15_0 = p67;
                                v13_3 = p68;
                                v12_4 = v16_1;
                                v21_3 = v26_1;
                                v5_10 = v33_0;
                                v4_15 = v42_0;
                                v6_10 = v43_0;
                                v8_18 = v46_0;
                                v22_2 = v47_0;
                                v10_9 = v48_0;
                                v20_2 = v64_0;
                                v26_5 = v11_3;
                            }
                        } else {
                            this.zzad().zzda().zza("Extra parameter without an event name. eventId", v4_33);
                            v38_0 = v0_0;
                            v43_0 = v6_10;
                            v42_0 = v33_1;
                            v33_0 = v37_0;
                        }
                    }
                }
            }
        }
        com.google.android.gms.internal.measurement.zzbt$zzd v43_1 = v6_10;
        com.google.android.gms.measurement.internal.zzaw v46_2 = v8_18;
        Integer v48_1 = v10_9;
        String v16_4 = v12_4;
        java.util.BitSet v64_2 = v20_2;
        java.util.ArrayList v47_2 = v22_2;
        int v11_11 = v26_5;
        Integer v26_11 = v21_3;
        long v1_88 = p69;
        if (p69 != null) {
            int v0_57 = new androidx.collection.ArrayMap();
            Integer v2_46 = p69.length;
            Boolean v3_48 = 0;
            while (v3_48 < v2_46) {
                androidx.collection.ArrayMap v4_29 = v1_88[v3_48];
                long v5_24 = ((java.util.Map) v0_57.get(v4_29.getName()));
                if (v5_24 == 0) {
                    v5_24 = this.zzdo().zzi(p67, v4_29.getName());
                    if (v5_24 == 0) {
                        v5_24 = new androidx.collection.ArrayMap();
                    }
                    v0_57.put(v4_29.getName(), v5_24);
                }
                java.util.BitSet v6_14 = v5_24.keySet().iterator();
                while (v6_14.hasNext()) {
                    androidx.collection.ArrayMap v8_39 = ((Integer) v6_14.next()).intValue();
                    if (!v11_11.contains(Integer.valueOf(v8_39))) {
                        boolean v17_8;
                        int v18_2;
                        long v1_89;
                        Integer v2_47;
                        long v15_13;
                        com.google.android.gms.internal.measurement.zzbt$zzg$zza v68_3;
                        java.util.BitSet v10_14 = v46_2;
                        int v12_5 = v47_2;
                        com.google.android.gms.internal.measurement.zzbt$zzg v9_41 = ((java.util.BitSet) v12_5.get(Integer.valueOf(v8_39)));
                        long v14_19 = v64_2;
                        long v13_6 = ((java.util.BitSet) v14_19.get(Integer.valueOf(v8_39)));
                        if (!v23) {
                            v68_3 = v0_57;
                            v17_8 = v2_46;
                            v1_89 = v26_11;
                            v2_47 = v43_1;
                            v15_13 = 0;
                            v18_2 = 0;
                        } else {
                            v1_89 = v26_11;
                            v15_13 = ((java.util.Map) v1_89.get(Integer.valueOf(v8_39)));
                            v68_3 = v0_57;
                            v17_8 = v2_46;
                            v2_47 = v43_1;
                            v18_2 = ((java.util.Map) v2_47.get(Integer.valueOf(v8_39)));
                        }
                        Integer v26_12;
                        int v0_49;
                        com.google.android.gms.internal.measurement.zzbt$zzd v19_7 = v6_14;
                        java.util.BitSet v6_15 = v16_4;
                        if (((com.google.android.gms.internal.measurement.zzbt$zza) v6_15.get(Integer.valueOf(v8_39))) != null) {
                            v26_12 = v6_15;
                            v0_49 = v18_2;
                        } else {
                            int v0_50 = com.google.android.gms.internal.measurement.zzbt$zza.zzhb();
                            v0_50.zzl(1);
                            v6_15.put(Integer.valueOf(v8_39), ((com.google.android.gms.internal.measurement.zzbt$zza) ((com.google.android.gms.internal.measurement.zzez) v0_50.zzmr())));
                            int v0_55 = new java.util.BitSet();
                            v12_5.put(Integer.valueOf(v8_39), v0_55);
                            v13_6 = new java.util.BitSet();
                            v14_19.put(Integer.valueOf(v8_39), v13_6);
                            if (!v23) {
                                v26_12 = v6_15;
                                v9_41 = v0_55;
                                v0_49 = v18_2;
                            } else {
                                v15_13 = new androidx.collection.ArrayMap();
                                v1_89.put(Integer.valueOf(v8_39), v15_13);
                                com.google.android.gms.internal.measurement.zzbt$zzg v9_46 = new androidx.collection.ArrayMap();
                                String v16_6 = v0_55;
                                v2_47.put(Integer.valueOf(v8_39), v9_46);
                                v26_12 = v6_15;
                                v0_49 = v9_46;
                                v9_41 = v16_6;
                            }
                        }
                        java.util.BitSet v6_19 = ((java.util.List) v5_24.get(Integer.valueOf(v8_39))).iterator();
                        while (v6_19.hasNext()) {
                            int v21_15;
                            java.util.BitSet v6_22;
                            int v20_9 = v5_24;
                            long v5_28 = ((com.google.android.gms.internal.measurement.zzcb) v6_19.next());
                            int v18_5 = v6_19;
                            v46_2 = v10_14;
                            if (!this.zzad().isLoggable(2)) {
                                v21_15 = v1_89;
                                v43_1 = v2_47;
                                v6_22 = v48_1;
                            } else {
                                v43_1 = v2_47;
                                v21_15 = v1_89;
                                this.zzad().zzdi().zza("Evaluating filter. audience, filter, property", Integer.valueOf(v8_39), v5_28.zzwa, this.zzaa().zzan(v5_28.zzwq));
                                v6_22 = v48_1;
                                this.zzad().zzdi().zza(v6_22, this.zzdm().zzb(v5_28));
                            }
                            if ((v5_28.zzwa != null) && (v5_28.zzwa.intValue() <= 256)) {
                                java.util.BitSet v45_4;
                                if (!v23) {
                                    v48_1 = v6_22;
                                    v45_4 = v14_19;
                                    if (!v9_41.get(v5_28.zzwa.intValue())) {
                                        java.util.BitSet v10_17;
                                        java.util.BitSet v6_28 = this.zza(v5_28, v4_29);
                                        String v7_13 = this.zzad().zzdi();
                                        if (v6_28 != null) {
                                            v10_17 = v6_28;
                                        } else {
                                            v10_17 = "null";
                                        }
                                        v7_13.zza("Property filter result", v10_17);
                                        if (v6_28 != null) {
                                            v13_6.set(v5_28.zzwa.intValue());
                                            if (!v6_28.booleanValue()) {
                                                v6_19 = v18_5;
                                                v5_24 = v20_9;
                                                v1_89 = v21_15;
                                                v2_47 = v43_1;
                                                v14_19 = v45_4;
                                            } else {
                                                v9_41.set(v5_28.zzwa.intValue());
                                            }
                                        } else {
                                            v11_11.add(Integer.valueOf(v8_39));
                                        }
                                    } else {
                                        this.zzad().zzdi().zza("Property filter already evaluated true. audience ID, filter ID", Integer.valueOf(v8_39), v5_28.zzwa);
                                    }
                                } else {
                                    java.util.BitSet v10_21;
                                    String v7_15 = com.google.android.gms.measurement.internal.zzo.zza(v5_28);
                                    if ((v5_28 == 0) || ((v5_28.zzvy == null) || (!v5_28.zzvy.booleanValue()))) {
                                        v10_21 = 0;
                                    } else {
                                        v10_21 = 1;
                                    }
                                    if ((!v9_41.get(v5_28.zzwa.intValue())) || ((v7_15 != null) || (v10_21 != null))) {
                                        java.util.BitSet v6_31;
                                        v48_1 = v6_22;
                                        java.util.BitSet v6_30 = v26_12;
                                        int v22_9 = this.zza(v5_28, v4_29);
                                        v45_4 = v14_19;
                                        com.google.android.gms.measurement.internal.zzaw vtmp364 = this.zzad().zzdi();
                                        if (v22_9 != 0) {
                                            v26_12 = v6_30;
                                            v6_31 = v22_9;
                                        } else {
                                            v26_12 = v6_30;
                                            v6_31 = "null";
                                        }
                                        vtmp364.zza("Property filter result", v6_31);
                                        if (v22_9 != 0) {
                                            v13_6.set(v5_28.zzwa.intValue());
                                            if ((!v24) || ((!v9_41.get(v5_28.zzwa.intValue())) || (com.google.android.gms.measurement.internal.zzo.zza(v5_28)))) {
                                                v9_41.set(v5_28.zzwa.intValue(), v22_9.booleanValue());
                                            }
                                            if (((!v22_9.booleanValue()) || ((v7_15 == null) && (v10_21 == null))) || (!v4_29.zzis())) {
                                            } else {
                                                if (v10_21 == null) {
                                                    com.google.android.gms.measurement.internal.zzo.zza(v15_13, v5_28.zzwa.intValue(), v4_29.zzit());
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzo.zzb(v0_49, v5_28.zzwa.intValue(), v4_29.zzit());
                                                }
                                            }
                                        }
                                    } else {
                                        this.zzad().zzdi().zza("Property filter already evaluated true and it is not associated with a dynamic audience. audience ID, filter ID", Integer.valueOf(v8_39), v5_28.zzwa);
                                        v48_1 = v6_22;
                                        v6_19 = v18_5;
                                        v5_24 = v20_9;
                                        v1_89 = v21_15;
                                        v2_47 = v43_1;
                                    }
                                }
                                v10_14 = v46_2;
                            } else {
                                v48_1 = v6_22;
                                java.util.BitSet v45_5 = v14_19;
                                this.zzad().zzdd().zza("Invalid property filter ID. appId, id", com.google.android.gms.measurement.internal.zzau.zzao(p67), String.valueOf(v5_28.zzwa));
                                v11_11.add(Integer.valueOf(v8_39));
                                v0_57 = v68_3;
                                v47_2 = v12_5;
                                v2_46 = v17_8;
                                v6_14 = v19_7;
                                v5_24 = v20_9;
                                v16_4 = v26_12;
                                v64_2 = v45_5;
                                v26_11 = v21_15;
                            }
                        }
                        v43_1 = v2_47;
                        String v7 = p67;
                        v0_57 = v68_3;
                        v46_2 = v10_14;
                        v47_2 = v12_5;
                        v64_2 = v14_19;
                        v2_46 = v17_8;
                        v6_14 = v19_7;
                        v16_4 = v26_12;
                        v26_11 = v1_89;
                    } else {
                        this.zzad().zzdi().zza(v46_2, Integer.valueOf(v8_39));
                    }
                }
                java.util.BitSet v45 = v64_2;
                v3_48++;
                v1_88 = p69;
            }
        }
        int v21_12 = v26_11;
        int v12_7 = v47_2;
        java.util.BitSet v45_2 = v64_2;
        Integer v26_9 = v16_4;
        long v1_123 = new com.google.android.gms.internal.measurement.zzbt$zza[v12_7.size()];
        Boolean v3_35 = v12_7.keySet().iterator();
        long v5_21 = 0;
        while (v3_35.hasNext()) {
            int v0_81 = ((Integer) v3_35.next()).intValue();
            if (v11_11.contains(Integer.valueOf(v0_81))) {
                Integer v2 = this;
            } else {
                androidx.collection.ArrayMap v4_6;
                java.util.BitSet v6_1 = v26_9;
                androidx.collection.ArrayMap v4_3 = ((com.google.android.gms.internal.measurement.zzbt$zza) v6_1.get(Integer.valueOf(v0_81)));
                if (v4_3 != null) {
                    v4_6 = ((com.google.android.gms.internal.measurement.zzbt$zza$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v4_3.zzmh()));
                } else {
                    v4_6 = com.google.android.gms.internal.measurement.zzbt$zza.zzhb();
                }
                Integer v26_4;
                long v13_2;
                com.google.android.gms.internal.measurement.zzbt$zzg$zza v68_1;
                v4_6.zzi(v0_81);
                com.google.android.gms.internal.measurement.zzbt$zzg v9_6 = v45_2;
                String v7_5 = com.google.android.gms.internal.measurement.zzbt$zzf.zzii().zzf(com.google.android.gms.measurement.internal.zzfz.zza(((java.util.BitSet) v12_7.get(Integer.valueOf(v0_81))))).zze(com.google.android.gms.measurement.internal.zzfz.zza(((java.util.BitSet) v9_6.get(Integer.valueOf(v0_81)))));
                if (!v23) {
                    v68_1 = v3_35;
                    v45_2 = v9_6;
                    v26_4 = v11_11;
                    v13_2 = v43_1;
                } else {
                    long v14_6;
                    java.util.BitSet v10_8 = v21_12;
                    v7_5.zzg(com.google.android.gms.measurement.internal.zzo.zza(((java.util.Map) v10_8.get(Integer.valueOf(v0_81)))));
                    v13_2 = v43_1;
                    androidx.collection.ArrayMap v8_20 = ((java.util.Map) v13_2.get(Integer.valueOf(v0_81)));
                    if (v8_20 != null) {
                        v14_6 = new java.util.ArrayList(v8_20.size());
                        long v15_7 = v8_20.keySet().iterator();
                        while (v15_7.hasNext()) {
                            Integer v2_29 = ((Integer) v15_7.next());
                            com.google.android.gms.internal.measurement.zzbt$zzg$zza v68_2 = v3_35;
                            java.util.BitSet v45_3 = v9_6;
                            Boolean v3_34 = com.google.android.gms.internal.measurement.zzbt$zzg.zzip().zzm(v2_29.intValue());
                            Integer v2_31 = ((java.util.List) v8_20.get(v2_29));
                            if (v2_31 != null) {
                                java.util.Collections.sort(v2_31);
                                Integer v2_32 = v2_31.iterator();
                                while (v2_32.hasNext()) {
                                    androidx.collection.ArrayMap v69_2 = v8_20;
                                    v3_34.zzal(((Long) v2_32.next()).longValue());
                                    v8_20 = v69_2;
                                }
                            }
                            androidx.collection.ArrayMap v69_1 = v8_20;
                            v14_6.add(((com.google.android.gms.internal.measurement.zzbt$zzg) ((com.google.android.gms.internal.measurement.zzez) v3_34.zzmr())));
                            v3_35 = v68_2;
                            v8_20 = v69_1;
                            v9_6 = v45_3;
                        }
                        v68_1 = v3_35;
                    } else {
                        v68_1 = v3_35;
                        v14_6 = java.util.Collections.emptyList();
                    }
                    v45_2 = v9_6;
                    if ((!v24) || (!v4_6.zzgx())) {
                        v21_12 = v10_8;
                        v26_4 = v11_11;
                    } else {
                        Integer v2_38 = v4_6.zzgy().zzig();
                        if (!v2_38.isEmpty()) {
                            Boolean v3_38 = new java.util.ArrayList(v14_6);
                            androidx.collection.ArrayMap v8_34 = new androidx.collection.ArrayMap();
                            Integer v2_39 = v2_38.iterator();
                            while (v2_39.hasNext()) {
                                com.google.android.gms.internal.measurement.zzbt$zzg v9_34 = ((com.google.android.gms.internal.measurement.zzbt$zzg) v2_39.next());
                                if ((v9_34.zzhd()) && (v9_34.zzim() > 0)) {
                                    v8_34.put(Integer.valueOf(v9_34.getIndex()), Long.valueOf(v9_34.zzl((v9_34.zzim() - 1))));
                                }
                            }
                            Integer v2_40 = 0;
                            while (v2_40 < v3_38.size()) {
                                long v14_10;
                                com.google.android.gms.internal.measurement.zzbt$zzg v9_24 = ((com.google.android.gms.internal.measurement.zzbt$zzg) v3_38.get(v2_40));
                                if (!v9_24.zzhd()) {
                                    v14_10 = 0;
                                } else {
                                    v14_10 = Integer.valueOf(v9_24.getIndex());
                                }
                                int v21_13;
                                long v14_13 = ((Long) v8_34.remove(v14_10));
                                if (v14_13 == 0) {
                                    v21_13 = v10_8;
                                } else {
                                    long v15_10 = new java.util.ArrayList();
                                    v21_13 = v10_8;
                                    if (v14_13.longValue() < v9_24.zzl(0)) {
                                        v15_10.add(v14_13);
                                    }
                                    v15_10.addAll(v9_24.zzil());
                                    v3_38.set(v2_40, ((com.google.android.gms.internal.measurement.zzbt$zzg) ((com.google.android.gms.internal.measurement.zzez) ((com.google.android.gms.internal.measurement.zzbt$zzg$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v9_24.zzmh())).zzir().zzj(v15_10).zzmr())));
                                }
                                v2_40++;
                                v10_8 = v21_13;
                            }
                            v21_12 = v10_8;
                            Integer v2_42 = v8_34.keySet().iterator();
                            while (v2_42.hasNext()) {
                                com.google.android.gms.internal.measurement.zzbt$zzg v9_16 = ((Integer) v2_42.next());
                                Integer v26_8 = v11_11;
                                v3_38.add(((com.google.android.gms.internal.measurement.zzbt$zzg) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzg.zzip().zzm(v9_16.intValue()).zzal(((Long) v8_34.get(v9_16)).longValue()).zzmr())));
                                v11_11 = v26_8;
                            }
                            v26_4 = v11_11;
                            v14_6 = v3_38;
                        }
                    }
                    v7_5.zzh(v14_6);
                }
                v4_6.zzb(v7_5);
                v6_1.put(Integer.valueOf(v0_81), ((com.google.android.gms.internal.measurement.zzbt$zza) ((com.google.android.gms.internal.measurement.zzez) v4_6.zzmr())));
                Integer v2_44 = (v5_21 + 1);
                v1_123[v5_21] = ((com.google.android.gms.internal.measurement.zzbt$zza) ((com.google.android.gms.internal.measurement.zzez) v4_6.zzmr()));
                Boolean v3_45 = this.zzdo();
                androidx.collection.ArrayMap v4_23 = v4_6.zzgw();
                v3_45.zzah();
                v3_45.zzq();
                com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p67);
                com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_23);
                androidx.collection.ArrayMap v4_24 = v4_23.toByteArray();
                long v5_18 = new android.content.ContentValues();
                v5_18.put("app_id", p67);
                v5_18.put("audience_id", Integer.valueOf(v0_81));
                v5_18.put("current_results", v4_24);
                try {
                    try {
                        if (v3_45.getWritableDatabase().insertWithOnConflict("audience_filter_values", 0, v5_18, 5) != -1) {
                            v3_35 = v68_1;
                            v5_21 = v2_44;
                            v43_1 = v13_2;
                            v11_11 = v26_4;
                            v26_9 = v6_1;
                        } else {
                            v3_45.zzad().zzda().zza("Failed to insert filter results (got -1). appId", com.google.android.gms.measurement.internal.zzau.zzao(p67));
                        }
                    } catch (int v0_39) {
                        v3_45.zzad().zzda().zza("Error storing filter results. appId", com.google.android.gms.measurement.internal.zzau.zzao(p67), v0_39);
                    }
                } catch (int v0_39) {
                }
            }
        }
        return ((com.google.android.gms.internal.measurement.zzbt$zza[]) java.util.Arrays.copyOf(v1_123, v5_21));
    }

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


    private final boolean zzd(String p44, long p45)
    {
        String v1_0 = this;
        int v2_0 = "_lte";
        this.zzdo().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaw v4_0 = 0;
            android.database.sqlite.SQLiteException v3_2 = new com.google.android.gms.measurement.internal.zzft$zza(this, 0);
            com.google.android.gms.measurement.internal.zzaf v5_90 = this.zzdo();
            com.google.android.gms.measurement.internal.zzaf v6_0 = this.zzsp;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_2);
            v5_90.zzq();
            v5_90.zzah();
            try {
                boolean v11_0;
                Long v15_10 = v5_90.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        boolean v11_21;
                        com.google.android.gms.measurement.internal.zzaw v4_99 = v6_0 cmp -1;
                        if (v4_99 == null) {
                            v11_21 = new String[] {0});
                        } else {
                            v11_21 = new String[2];
                            v11_21[0] = 0;
                            v11_21[1] = String.valueOf(v6_0);
                        }
                        com.google.android.gms.measurement.internal.zzaw v4_106;
                        if (v4_99 == null) {
                            v4_106 = "";
                        } else {
                            v4_106 = " and rowid <= ?";
                        }
                        long v14_19 = new StringBuilder((v4_106.length() + 84));
                        v14_19.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_19.append(v4_106);
                        v14_19.append(" order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v14_19.toString(), v11_21);
                        if (v4_0.moveToFirst()) {
                            v11_0 = v4_0.getString(0);
                            v4_0.close();
                            v4_0 = 0;
                            try {
                                Object v9_7 = new String[2];
                                v9_7[0] = v4_0;
                                v9_7[1] = v11_0;
                                boolean v10_7 = v15_10;
                                Boolean v8_0 = v15_10.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v9_7, 0, 0, "rowid", "2");
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                String v1_15 = v0_1;
                                if (v8_0 != null) {
                                    v8_0.close();
                                }
                                throw v1_15;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                com.google.android.gms.measurement.internal.zzaf v6_1 = v8_0;
                                Boolean v8_3 = v4_0;
                                com.google.android.gms.measurement.internal.zzaw v4_100 = v0_0;
                                try {
                                    v5_90.zzad().zzda().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v8_3), v4_100);
                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                    v1_15 = v0_5;
                                    v8_0 = v6_1;
                                }
                                if (v6_1 == null) {
                                    com.google.android.gms.measurement.internal.zzaw v4_104;
                                    if (v3_2.zzsv == null) {
                                        v4_104 = 1;
                                    } else {
                                        if (!v3_2.zzsv.isEmpty()) {
                                            v4_104 = 0;
                                        } else {
                                        }
                                    }
                                    if (v4_104 != null) {
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 0;
                                    } else {
                                        com.google.android.gms.measurement.internal.zzaw v4_98 = v3_2.zzst;
                                        com.google.android.gms.measurement.internal.zzaf v5_52 = new com.google.android.gms.internal.measurement.zzcf[v3_2.zzsv.size()];
                                        v4_98.zzxo = v5_52;
                                        com.google.android.gms.measurement.internal.zzaf v5_47 = this.zzl.zzaf().zzm(v4_98.zzcf);
                                        com.google.android.gms.measurement.internal.zzaf v6_84 = this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzim);
                                        long v7_44 = 0;
                                        Object v9_36 = 0;
                                        boolean v10_33 = 0;
                                        boolean v11_11 = 0;
                                        int v13_7 = 0;
                                        long v14_14 = 0;
                                        while(true) {
                                            Boolean v12_16 = "_et";
                                            int v17_2 = v13_7;
                                            int v18_5 = v14_14;
                                            if (v9_36 >= v3_2.zzsv.size()) {
                                                break;
                                            }
                                            String v28_0;
                                            int v2_23;
                                            com.google.android.gms.measurement.internal.zzaf v6_72;
                                            long v23_2;
                                            com.google.android.gms.measurement.internal.zzaf v27_0;
                                            Boolean v8_18 = ((com.google.android.gms.internal.measurement.zzcf) v3_2.zzsv.get(v9_36));
                                            long v22_1 = v2_0;
                                            if (!this.zzdp().zzk(v3_2.zzst.zzcf, v8_18.name)) {
                                                com.google.android.gms.internal.measurement.zzbt$zzd[] v26_1;
                                                String v29_0;
                                                long v25_0;
                                                long v30_0;
                                                Boolean v12_14;
                                                v23_2 = v9_36;
                                                int v2_12 = this.zzdp().zzl(v3_2.zzst.zzcf, v8_18.name);
                                                if (v2_12 != 0) {
                                                    v26_1 = v4_98;
                                                    v25_0 = v10_33;
                                                    if (v8_18.zzxi == null) {
                                                        boolean v10_5 = new com.google.android.gms.internal.measurement.zzbt$zzd[0];
                                                        v8_18.zzxi = v10_5;
                                                    }
                                                    v27_0 = v6_84;
                                                    com.google.android.gms.measurement.internal.zzaw v4_14 = 0;
                                                    boolean v10_6 = 0;
                                                    Long v15_5 = 0;
                                                    while(true) {
                                                        v28_0 = v5_47;
                                                        if (v4_14 >= v8_18.zzxi.length) {
                                                            break;
                                                        }
                                                        long v30_1;
                                                        com.google.android.gms.measurement.internal.zzaf v6_79 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v8_18.zzxi[v4_14].zzmh()));
                                                        String v29_1 = v11_11;
                                                        if (!"_c".equals(v6_79.getName())) {
                                                            v30_1 = v12_16;
                                                            if ("_r".equals(v6_79.getName())) {
                                                                v6_79.zzaj(1);
                                                                v15_5 = 1;
                                                            }
                                                        } else {
                                                            v30_1 = v12_16;
                                                            v6_79.zzaj(1);
                                                            v10_6 = 1;
                                                        }
                                                        v8_18.zzxi[v4_14] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_79.zzmr()));
                                                        v4_14++;
                                                        v5_47 = v28_0;
                                                        v11_11 = v29_1;
                                                        v12_16 = v30_1;
                                                    }
                                                    v29_0 = v11_11;
                                                    v30_0 = v12_16;
                                                    if ((!v10_6) && (v2_12 != 0)) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as conversion", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_20 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_20[(v4_20.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_c").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_20;
                                                    }
                                                    if (v15_5 == null) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as real-time", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_26 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_26[(v4_26.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_r").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_26;
                                                    }
                                                    v12_14 = v7_44;
                                                    if (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 0, 0, 1).zzep <= ((long) this.zzl.zzaf().zzi(v3_2.zzst.zzcf))) {
                                                        v17_2 = 1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzaw v4_34 = 0;
                                                        while (v4_34 < v8_18.zzxi.length) {
                                                            if (!"_r".equals(v8_18.zzxi[v4_34].getName())) {
                                                                v4_34++;
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzaf v5_26 = new com.google.android.gms.internal.measurement.zzbt$zzd[(v8_18.zzxi.length - 1)];
                                                                if (v4_34 > null) {
                                                                    System.arraycopy(v8_18.zzxi, 0, v5_26, 0, v4_34);
                                                                }
                                                                if (v4_34 < v5_26.length) {
                                                                    System.arraycopy(v8_18.zzxi, (v4_34 + 1), v5_26, v4_34, (v5_26.length - v4_34));
                                                                }
                                                                v8_18.zzxi = v5_26;
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    if ((com.google.android.gms.measurement.internal.zzgd.zzbm(v8_18.name)) && ((v2_12 != 0) && (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 1, 0, 0).zzen > ((long) this.zzl.zzaf().zzb(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzgq))))) {
                                                        this.zzl.zzad().zzdd().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                        com.google.android.gms.measurement.internal.zzaw v4_44 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v5_28 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v6_53 = 0;
                                                        long v7_33 = -1;
                                                        while (v4_44 < v8_18.zzxi.length) {
                                                            boolean v10_39 = v8_18.zzxi[v4_44];
                                                            if (!"_c".equals(v10_39.getName())) {
                                                                if ("_err".equals(v10_39.getName())) {
                                                                    v5_28 = 1;
                                                                }
                                                            } else {
                                                                v6_53 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v10_39.zzmh()));
                                                                v7_33 = v4_44;
                                                            }
                                                            v4_44++;
                                                        }
                                                        if ((v5_28 == null) || (v6_53 == null)) {
                                                            if (v6_53 == null) {
                                                                this.zzl.zzad().zzda().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                            } else {
                                                                v8_18.zzxi[v7_33] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v6_53.clone())).zzbw("_err").zzaj(10).zzmr()));
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzaw v4_56 = v8_18.zzxi;
                                                            long v7_35 = new com.google.android.gms.internal.measurement.zzbt$zzd[1];
                                                            v7_35[0] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_53.zzmr()));
                                                            v8_18.zzxi = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v4_56, v7_35));
                                                        }
                                                    }
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaw v4_4;
                                                    this.zzdm();
                                                    Long v15_4 = v8_18.name;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_4);
                                                    v25_0 = v10_33;
                                                    boolean v10_2 = v15_4.hashCode();
                                                    v26_1 = v4_98;
                                                    if (v10_2 == 94660) {
                                                        if (!v15_4.equals("_in")) {
                                                            v4_4 = -1;
                                                        } else {
                                                            v4_4 = 0;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95025) {
                                                            if (!v15_4.equals("_ug")) {
                                                            } else {
                                                                v4_4 = 2;
                                                            }
                                                        } else {
                                                            if (v10_2 == 95027) {
                                                                if (!v15_4.equals("_ui")) {
                                                                } else {
                                                                    v4_4 = 1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                    }
                                                    if ((v4_4 == null) || ((v4_4 == 1) || (v4_4 == 2))) {
                                                        com.google.android.gms.measurement.internal.zzaw v4_11 = 1;
                                                    } else {
                                                        v4_11 = 0;
                                                    }
                                                    if (v4_11 == null) {
                                                        v28_0 = v5_47;
                                                        v27_0 = v6_84;
                                                        v29_0 = v11_11;
                                                        v30_0 = "_et";
                                                        v12_14 = v7_44;
                                                    } else {
                                                    }
                                                }
                                                if ((!this.zzl.zzaf().zzv(v3_2.zzst.zzcf)) || (v2_12 == 0)) {
                                                } else {
                                                    int v2_13 = v8_18.zzxi;
                                                    com.google.android.gms.measurement.internal.zzaw v4_62 = 0;
                                                    com.google.android.gms.measurement.internal.zzaf v5_38 = -1;
                                                    com.google.android.gms.measurement.internal.zzaf v6_58 = -1;
                                                    while (v4_62 < v2_13.length) {
                                                        if (!"value".equals(v2_13[v4_62].getName())) {
                                                            if ("currency".equals(v2_13[v4_62].getName())) {
                                                                v6_58 = v4_62;
                                                            }
                                                        } else {
                                                            v5_38 = v4_62;
                                                        }
                                                        v4_62++;
                                                    }
                                                    if (v5_38 == -1) {
                                                    } else {
                                                        if ((v2_13[v5_38].zzhn()) || (v2_13[v5_38].zzhq())) {
                                                            com.google.android.gms.measurement.internal.zzaw v4_71;
                                                            if (v6_58 != -1) {
                                                                com.google.android.gms.measurement.internal.zzaw v4_70 = v2_13[v6_58].zzhl();
                                                                if (v4_70.length() == 3) {
                                                                    com.google.android.gms.measurement.internal.zzaf v6_60 = 0;
                                                                    while (v6_60 < v4_70.length()) {
                                                                        boolean v10_31 = v4_70.codePointAt(v6_60);
                                                                        if (Character.isLetter(v10_31)) {
                                                                            v6_60 += Character.charCount(v10_31);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v4_71 = 0;
                                                                    if (v4_71 != null) {
                                                                        this.zzl.zzad().zzdf().zzaq("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 19, "currency");
                                                                    }
                                                                    v8_18.zzxi = v2_13;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_44;
                                                                    com.google.android.gms.measurement.internal.zzaw v4_84;
                                                                    if (!this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzil)) {
                                                                        v2_23 = v12_14;
                                                                        v5_44 = v29_0;
                                                                        v4_84 = v30_0;
                                                                    } else {
                                                                        if (!"_e".equals(v8_18.name)) {
                                                                            v2_23 = v12_14;
                                                                            if (!"_vs".equals(v8_18.name)) {
                                                                            } else {
                                                                                this.zzdm();
                                                                                v4_84 = v30_0;
                                                                                if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, v4_84) != null) {
                                                                                    v5_44 = v29_0;
                                                                                    if ((v28_0 == null) || ((v27_0 != null) || (!"_e".equals(v8_18.name)))) {
                                                                                        v14_14 = v18_5;
                                                                                    } else {
                                                                                        Object v9_25;
                                                                                        com.google.android.gms.measurement.internal.zzaf v6_71;
                                                                                        com.google.android.gms.measurement.internal.zzaw v4_94;
                                                                                        if (v8_18.zzxi == null) {
                                                                                            v4_94 = this.zzl.zzad().zzdd();
                                                                                            v6_71 = "Engagement event does not contain any parameters. appId";
                                                                                            v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                        } else {
                                                                                            if (v8_18.zzxi.length != 0) {
                                                                                                this.zzdm();
                                                                                                com.google.android.gms.measurement.internal.zzaw v4_91 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v8_18, v4_84));
                                                                                                if (v4_91 != null) {
                                                                                                    v14_14 = (v18_5 + v4_91.longValue());
                                                                                                    v6_72 = v26_1;
                                                                                                    v10_33 = (v25_0 + 1);
                                                                                                    v6_72.zzxo[v25_0] = v8_18;
                                                                                                    v11_11 = v5_44;
                                                                                                    v13_7 = v17_2;
                                                                                                    v9_36 = (v23_2 + 1);
                                                                                                    v7_44 = v2_23;
                                                                                                    v4_98 = v6_72;
                                                                                                    v2_0 = v22_1;
                                                                                                    v6_84 = v27_0;
                                                                                                    v5_47 = v28_0;
                                                                                                } else {
                                                                                                    v4_94 = this.zzl.zzad().zzdd();
                                                                                                    v6_71 = "Engagement event does not include duration. appId";
                                                                                                    v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        v4_94.zza(v6_71, v9_25);
                                                                                    }
                                                                                } else {
                                                                                    if (v29_0 == null) {
                                                                                        v5_44 = v29_0;
                                                                                    } else {
                                                                                        v5_44 = v29_0;
                                                                                        if ((Math.abs((v5_44.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v5_44, v8_18))) {
                                                                                            v2_23 = 0;
                                                                                            v5_44 = 0;
                                                                                        }
                                                                                    }
                                                                                    v2_23 = v8_18;
                                                                                }
                                                                            }
                                                                        } else {
                                                                            this.zzdm();
                                                                            if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, "_fr") != null) {
                                                                            } else {
                                                                                if (v12_14 == null) {
                                                                                    v2_23 = v12_14;
                                                                                } else {
                                                                                    v2_23 = v12_14;
                                                                                    if ((Math.abs((v2_23.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v8_18, v2_23))) {
                                                                                        v4_84 = v30_0;
                                                                                    }
                                                                                }
                                                                                v5_44 = v8_18;
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                                v4_71 = 1;
                                                            } else {
                                                                v4_71 = 1;
                                                            }
                                                        } else {
                                                            this.zzl.zzad().zzdf().zzaq("Value must be specified with a numeric type.");
                                                            v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 18, "value");
                                                        }
                                                    }
                                                }
                                            } else {
                                                int v2_37;
                                                v23_2 = v9_36;
                                                this.zzl.zzad().zzdd().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf), this.zzl.zzaa().zzal(v8_18.name));
                                                if (this.zzdp().zzbe(v3_2.zzst.zzcf)) {
                                                    v2_37 = 1;
                                                } else {
                                                    if (!this.zzdp().zzbf(v3_2.zzst.zzcf)) {
                                                        v2_37 = 0;
                                                    } else {
                                                    }
                                                }
                                                if ((v2_37 == 0) && (!"_err".equals(v8_18.name))) {
                                                    this.zzl.zzab().zza(v3_2.zzst.zzcf, 11, "_ev", v8_18.name, 0);
                                                }
                                                v28_0 = v5_47;
                                                v27_0 = v6_84;
                                                v2_23 = v7_44;
                                                v13_7 = v17_2;
                                                v14_14 = v18_5;
                                                v6_72 = v4_98;
                                            }
                                        }
                                        boolean v10_1;
                                        long v14_6;
                                        long v22_4 = v2_0;
                                        String v28_2 = v5_47;
                                        long v25_2 = v10_33;
                                        com.google.android.gms.measurement.internal.zzaf v6_9 = v4_98;
                                        if (v6_84 == null) {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                        } else {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                            int v2_8 = 0;
                                            while (v2_8 < v10_1) {
                                                com.google.android.gms.measurement.internal.zzaf v5_17 = v6_9.zzxo[v2_8];
                                                if (!"_e".equals(v5_17.name)) {
                                                    if (v28_2 != null) {
                                                        this.zzdm();
                                                        com.google.android.gms.measurement.internal.zzaf v5_18 = com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_et");
                                                        if (v5_18 != null) {
                                                            com.google.android.gms.measurement.internal.zzaf v5_19;
                                                            if (!v5_18.zzhn()) {
                                                                v5_19 = 0;
                                                            } else {
                                                                v5_19 = Long.valueOf(v5_18.zzho());
                                                            }
                                                            if ((v5_19 != null) && (v5_19.longValue() > 0)) {
                                                                v14_6 += v5_19.longValue();
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    this.zzdm();
                                                    if (com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_fr") == null) {
                                                    } else {
                                                        System.arraycopy(v6_9.zzxo, (v2_8 + 1), v6_9.zzxo, v2_8, ((v10_1 - v2_8) - 1));
                                                        v10_1--;
                                                        v2_8--;
                                                    }
                                                }
                                                v2_8++;
                                            }
                                        }
                                        if (v10_1 < v3_2.zzsv.size()) {
                                            v6_9.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v6_9.zzxo, v10_1));
                                        }
                                        if (v28_2 != null) {
                                            int v2_53;
                                            com.google.android.gms.measurement.internal.zzaf v5_55 = v22_4;
                                            int v2_50 = this.zzdo().zze(v6_9.zzcf, v5_55);
                                            if (v2_50 == 0) {
                                                v2_53 = new com.google.android.gms.measurement.internal.zzgc;
                                                v2_53(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf(v14_6));
                                            } else {
                                                if (v2_50.value != null) {
                                                    com.google.android.gms.measurement.internal.zzaw v4_109 = new com.google.android.gms.measurement.internal.zzgc;
                                                    v4_109(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf((((Long) v2_50.value).longValue() + v14_6)));
                                                    v2_53 = v4_109;
                                                } else {
                                                }
                                            }
                                            com.google.android.gms.measurement.internal.zzaw v4_117 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby(v5_55).zzan(this.zzl.zzz().currentTimeMillis()).zzao(((Long) v2_53.value).longValue()).zzmr()));
                                            long v7_69 = 0;
                                            while (v7_69 < v6_9.zzxp.length) {
                                                if (!v5_55.equals(v6_9.zzxp[v7_69].getName())) {
                                                    v7_69++;
                                                } else {
                                                    v6_9.zzxp[v7_69] = v4_117;
                                                    com.google.android.gms.measurement.internal.zzaf v5_56 = 1;
                                                }
                                                if (v5_56 == null) {
                                                    v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                    v6_9.zzxp[(v3_2.zzst.zzxp.length - 1)] = v4_117;
                                                }
                                                if (v14_6 > 0) {
                                                    this.zzdo().zza(v2_53);
                                                    this.zzl.zzad().zzdh().zza("Updated lifetime engagement user property with value. Value", v2_53.value);
                                                }
                                            }
                                            v5_56 = 0;
                                        }
                                        if (this.zzl.zzaf().zze(v6_9.zzcf, com.google.android.gms.measurement.internal.zzal.zzin)) {
                                            int v2_58 = this.zzdm();
                                            v2_58.zzad().zzdi().zzaq("Checking account type status for ad personalization signals");
                                            if (v2_58.zzdp().zzbc(v6_9.zzcf)) {
                                                com.google.android.gms.measurement.internal.zzaw v4_131 = v2_58.zzdo().zzae(v6_9.zzcf);
                                                if ((v4_131 != null) && ((v4_131.zzbl()) && (v2_58.zzy().zzcs()))) {
                                                    v2_58.zzad().zzdh().zzaq("Turning off ad personalization due to account type");
                                                    int v2_64 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby("_npa").zzan(v2_58.zzy().zzcq()).zzao(1).zzmr()));
                                                    com.google.android.gms.measurement.internal.zzaw v4_140 = 0;
                                                    while (v4_140 < v6_9.zzxp.length) {
                                                        if (!"_npa".equals(v6_9.zzxp[v4_140].getName())) {
                                                            v4_140++;
                                                        } else {
                                                            v6_9.zzxp[v4_140] = v2_64;
                                                            com.google.android.gms.measurement.internal.zzaw v4_141 = 1;
                                                        }
                                                        if (v4_141 == null) {
                                                            v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                            v6_9.zzxp[(v6_9.zzxp.length - 1)] = v2_64;
                                                        }
                                                    }
                                                    v4_141 = 0;
                                                }
                                            }
                                        }
                                        String v1_19;
                                        int v2_65 = v6_9.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_146 = v6_9.zzxp;
                                        com.google.android.gms.measurement.internal.zzaf v5_80 = v6_9.zzxo;
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_65);
                                        v6_9.zzyg = this.zzdn().zza(v2_65, v5_80, v4_146);
                                        try {
                                            if (!this.zzl.zzaf().zzl(v3_2.zzst.zzcf)) {
                                                v1_19 = v6_9;
                                            } else {
                                                int v2_7 = new java.util.HashMap();
                                                com.google.android.gms.measurement.internal.zzaw v4_151 = new com.google.android.gms.internal.measurement.zzcf[v6_9.zzxo.length];
                                                com.google.android.gms.measurement.internal.zzaf v5_15 = this.zzl.zzab().zzgl();
                                                long v7_18 = v6_9.zzxo;
                                                Boolean v8_14 = v7_18.length;
                                                Object v9_3 = 0;
                                                boolean v10_0 = 0;
                                                while (v9_3 < v8_14) {
                                                    int v18_0;
                                                    long v22_0;
                                                    Object v9_0;
                                                    int v19_0;
                                                    com.google.android.gms.internal.measurement.zzbt$zzd[] v26_0;
                                                    boolean v11_25 = v7_18[v9_3];
                                                    if (!v11_25.name.equals("_ep")) {
                                                        v18_0 = v7_18;
                                                        long v23_4;
                                                        com.google.android.gms.measurement.internal.zzaf v6_131;
                                                        Boolean v12_24 = this.zzdp().zzbd(v3_2.zzst.zzcf);
                                                        v1_0.zzl.zzab();
                                                        long v14_23 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxj.longValue(), v12_24);
                                                        v22_0 = v8_14;
                                                        Boolean v8_50 = Long.valueOf(1);
                                                        if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_50 != null)) {
                                                            v26_0 = v6_9;
                                                            com.google.android.gms.measurement.internal.zzaf v6_117 = v11_25.zzxi;
                                                            v19_0 = v9_3;
                                                            Object v9_47 = v6_117.length;
                                                            v23_4 = v12_24;
                                                            Boolean v12_25 = 0;
                                                            while (v12_25 < v9_47) {
                                                                int v13_17 = v6_117[v12_25];
                                                                if (!"_dbg".equals(v13_17.getName())) {
                                                                    v12_25++;
                                                                } else {
                                                                    if (((!(v8_50 instanceof Long)) || (!v8_50.equals(Long.valueOf(v13_17.zzho())))) && (((!(v8_50 instanceof String)) || (!v8_50.equals(v13_17.zzhl()))) && ((!(v8_50 instanceof Double)) || (!v8_50.equals(Double.valueOf(v13_17.zzhr())))))) {
                                                                        break;
                                                                    }
                                                                    v6_131 = 1;
                                                                }
                                                            }
                                                            v6_131 = 0;
                                                        } else {
                                                            v26_0 = v6_9;
                                                            v19_0 = v9_3;
                                                            v23_4 = v12_24;
                                                        }
                                                        int v13_18;
                                                        if (v6_131 != null) {
                                                            v13_18 = 1;
                                                        } else {
                                                            v13_18 = this.zzdp().zzm(v3_2.zzst.zzcf, v11_25.name);
                                                        }
                                                        if (v13_18 > 0) {
                                                            com.google.android.gms.measurement.internal.zzaf v6_2 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v11_25.name));
                                                            if (v6_2 == null) {
                                                                v6_2 = this.zzdo().zzc(v3_2.zzst.zzcf, v11_25.name);
                                                                if (v6_2 == null) {
                                                                    v1_0.zzl.zzad().zzdd().zza("Event being bundled has no eventAggregate. appId, eventName", v3_2.zzst.zzcf, v11_25.name);
                                                                    v6_2 = new com.google.android.gms.measurement.internal.zzaf;
                                                                    v6_2(v3_2.zzst.zzcf, v11_25.name, 1, 1, v11_25.zzxj.longValue(), 0, 0, 0, 0, 0);
                                                                }
                                                            }
                                                            Boolean v8_56;
                                                            this.zzdm();
                                                            long v7_117 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_eid"));
                                                            if (v7_117 == 0) {
                                                                v8_56 = 0;
                                                            } else {
                                                                v8_56 = 1;
                                                            }
                                                            Boolean v8_57 = Boolean.valueOf(v8_56);
                                                            if (v13_18 != 1) {
                                                                if (v5_15.nextInt(v13_18) != 0) {
                                                                    p44 = v5_15;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_0;
                                                                    String v1_5;
                                                                    Boolean v12_0;
                                                                    if (!v1_0.zzl.zzaf().zzx(v3_2.zzst.zzcf)) {
                                                                        v9_0 = v2_7;
                                                                        v5_0 = v7_117;
                                                                        v12_0 = v8_57;
                                                                        if (Math.abs((v11_25.zzxj.longValue() - v6_2.zzfh)) < 86400000) {
                                                                            v1_5 = 0;
                                                                        } else {
                                                                            v1_5 = 1;
                                                                        }
                                                                    } else {
                                                                        long v23_1;
                                                                        if (v6_2.zzfi == null) {
                                                                            v1_0.zzl.zzab();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                            v23_1 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxk.longValue(), v23_4);
                                                                        } else {
                                                                            v23_1 = v6_2.zzfi.longValue();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                        }
                                                                        if (v23_1 == v14_23) {
                                                                        }
                                                                    }
                                                                    if (v1_5 == null) {
                                                                        if (v12_0.booleanValue()) {
                                                                            v9_0.put(v11_25.name, v6_2.zza(v5_0, 0, 0));
                                                                        }
                                                                    } else {
                                                                        this.zzdm();
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                                        this.zzdm();
                                                                        long v7_6 = ((long) v13_18);
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v7_6));
                                                                        String v1_12 = (v10_0 + 1);
                                                                        v4_151[v10_0] = v11_25;
                                                                        if (v12_0.booleanValue()) {
                                                                            v6_2 = v6_2.zza(0, Long.valueOf(v7_6), Boolean.valueOf(1));
                                                                        }
                                                                        v9_0.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                        v10_0 = v1_12;
                                                                    }
                                                                } else {
                                                                    this.zzdm();
                                                                    Boolean v12_1 = ((long) v13_18);
                                                                    p44 = v5_15;
                                                                    v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v12_1));
                                                                    com.google.android.gms.measurement.internal.zzaf v5_14 = (v10_0 + 1);
                                                                    v4_151[v10_0] = v11_25;
                                                                    if (v8_57.booleanValue()) {
                                                                        v6_2 = v6_2.zza(0, Long.valueOf(v12_1), 0);
                                                                    }
                                                                    v2_7.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                    v9_0 = v2_7;
                                                                    v10_0 = v5_14;
                                                                }
                                                            } else {
                                                                long v7_13 = (v10_0 + 1);
                                                                v4_151[v10_0] = v11_25;
                                                                if ((v8_57.booleanValue()) && ((v6_2.zzfj != null) || ((v6_2.zzfk != null) || (v6_2.zzfl != null)))) {
                                                                    v2_7.put(v11_25.name, v6_2.zza(0, 0, 0));
                                                                }
                                                                v9_0 = v2_7;
                                                                p44 = v5_15;
                                                                v10_0 = v7_13;
                                                            }
                                                        } else {
                                                            v1_0.zzl.zzad().zzdd().zza("Sample rate must be positive. event, rate", v11_25.name, Integer.valueOf(v13_18));
                                                            com.google.android.gms.measurement.internal.zzaf v6_8 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            v9_0 = v2_7;
                                                            p44 = v5_15;
                                                            v10_0 = v6_8;
                                                        }
                                                    } else {
                                                        this.zzdm();
                                                        Boolean v12_4 = ((String) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_en"));
                                                        int v13_1 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v12_4));
                                                        if (v13_1 == 0) {
                                                            v13_1 = this.zzdo().zzc(v3_2.zzst.zzcf, v12_4);
                                                            v2_7.put(v12_4, v13_1);
                                                        }
                                                        if (v13_1.zzfj != null) {
                                                            v18_0 = v7_18;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                        } else {
                                                            if (v13_1.zzfk.longValue() > 1) {
                                                                this.zzdm();
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", v13_1.zzfk);
                                                            }
                                                            if ((v13_1.zzfl == null) || (!v13_1.zzfl.booleanValue())) {
                                                                v18_0 = v7_18;
                                                            } else {
                                                                this.zzdm();
                                                                v18_0 = v7_18;
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                            }
                                                            long v7_17 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                            v10_0 = v7_17;
                                                        }
                                                        v22_0 = v8_14;
                                                        v19_0 = v9_3;
                                                        v9_0 = v2_7;
                                                    }
                                                    v5_15 = p44;
                                                    v2_7 = v9_0;
                                                    v7_18 = v18_0;
                                                    v8_14 = v22_0;
                                                    v6_9 = v26_0;
                                                    v9_3 = (v19_0 + 1);
                                                    v1_0 = this;
                                                }
                                                Object v9_44 = v2_7;
                                                v1_19 = v6_9;
                                                if (v10_0 < v1_19.zzxo.length) {
                                                    v1_19.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v4_151, v10_0));
                                                }
                                                int v2_76 = v9_44.entrySet().iterator();
                                                while (v2_76.hasNext()) {
                                                    this.zzdo().zza(((com.google.android.gms.measurement.internal.zzaf) ((java.util.Map$Entry) v2_76.next()).getValue()));
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v1_14 = v0_2;
                                            this.zzdo().endTransaction();
                                            throw v1_14;
                                        }
                                        v1_19.zzxr = Long.valueOf(nan);
                                        v1_19.zzxs = Long.valueOf(-0.0);
                                        int v2_79 = 0;
                                        while (v2_79 < v1_19.zzxo.length) {
                                            com.google.android.gms.measurement.internal.zzaw v4_184 = v1_19.zzxo[v2_79];
                                            if (v4_184.zzxj.longValue() < v1_19.zzxr.longValue()) {
                                                v1_19.zzxr = v4_184.zzxj;
                                            }
                                            if (v4_184.zzxj.longValue() > v1_19.zzxs.longValue()) {
                                                v1_19.zzxs = v4_184.zzxj;
                                            }
                                            v2_79++;
                                        }
                                        com.google.android.gms.measurement.internal.zzaf v5_83;
                                        int v2_81 = v3_2.zzst.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_158 = this.zzdo().zzae(v2_81);
                                        if (v4_158 != null) {
                                            v5_83 = this;
                                            if (v1_19.zzxo.length > 0) {
                                                Boolean v8_46;
                                                com.google.android.gms.measurement.internal.zzaf v6_93 = v4_158.zzar();
                                                if (v6_93 == 0) {
                                                    v8_46 = 0;
                                                } else {
                                                    v8_46 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxu = v8_46;
                                                Boolean v8_47 = v4_158.zzaq();
                                                if (v8_47 != 0) {
                                                    v6_93 = v8_47;
                                                } else {
                                                }
                                                com.google.android.gms.measurement.internal.zzaf v6_94;
                                                if (v6_93 == 0) {
                                                    v6_94 = 0;
                                                } else {
                                                    v6_94 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxt = v6_94;
                                                v4_158.zzbb();
                                                v1_19.zzye = Integer.valueOf(((int) v4_158.zzay()));
                                                v4_158.zze(v1_19.zzxr.longValue());
                                                v4_158.zzf(v1_19.zzxs.longValue());
                                                v1_19.zzdn = v4_158.zzbj();
                                                this.zzdo().zza(v4_158);
                                            }
                                        } else {
                                            v5_83 = this;
                                            this.zzl.zzad().zzda().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                        }
                                        if (v1_19.zzxo.length > 0) {
                                            com.google.android.gms.measurement.internal.zzaw v4_167;
                                            v5_83.zzl.zzag();
                                            com.google.android.gms.measurement.internal.zzaw v4_166 = this.zzdp().zzay(v3_2.zzst.zzcf);
                                            if (v4_166 == null) {
                                                if (!android.text.TextUtils.isEmpty(v3_2.zzst.zzch)) {
                                                    v5_83.zzl.zzad().zzdd().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                } else {
                                                    v4_167 = Long.valueOf(-1);
                                                    v1_19.zzyl = v4_167;
                                                }
                                            } else {
                                                if (v4_166.zzxa != null) {
                                                    v4_167 = v4_166.zzxa;
                                                } else {
                                                }
                                            }
                                            this.zzdo().zza(v1_19, v17_2);
                                        }
                                        String v1_20 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_3 = v3_2.zzsu;
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_3);
                                        v1_20.zzq();
                                        v1_20.zzah();
                                        com.google.android.gms.measurement.internal.zzaw v4_176 = new StringBuilder("rowid in (");
                                        com.google.android.gms.measurement.internal.zzaf v6_110 = 0;
                                        while (v6_110 < v3_3.size()) {
                                            if (v6_110 != null) {
                                                v4_176.append(",");
                                            }
                                            v4_176.append(((Long) v3_3.get(v6_110)).longValue());
                                            v6_110++;
                                        }
                                        v4_176.append(")");
                                        com.google.android.gms.measurement.internal.zzaw v4_178 = v1_20.getWritableDatabase().delete("raw_events", v4_176.toString(), 0);
                                        if (v4_178 != v3_3.size()) {
                                            v1_20.zzad().zzda().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_178), Integer.valueOf(v3_3.size()));
                                        }
                                        String v1_23 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_6 = v1_23.getWritableDatabase();
                                        try {
                                            com.google.android.gms.measurement.internal.zzaf v6_116 = new String[2];
                                            v6_116[0] = v2_81;
                                            v6_116[1] = v2_81;
                                            v3_6.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_116);
                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                            v1_23.zzad().zzda().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_81), v0_6);
                                        }
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 1;
                                    }
                                } else {
                                    v6_1.close();
                                }
                            }
                            if (v8_0.moveToFirst()) {
                                try {
                                    Object v9_14 = com.google.android.gms.internal.measurement.zzch.zzf(v8_0.getBlob(0));
                                } catch (android.database.sqlite.SQLiteException v0_3) {
                                    v5_90.zzad().zzda().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0), v0_3);
                                    if (v8_0 == null) {
                                    }
                                }
                                if (v8_0.moveToNext()) {
                                    v5_90.zzad().zzdd().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                }
                                int v17_3;
                                int v18_4;
                                v8_0.close();
                                v3_2.zzb(v9_14);
                                if (v6_0 == -1) {
                                    Object v9_28 = new String[2];
                                    v9_28[0] = v4_0;
                                    v9_28[1] = v11_0;
                                    v17_3 = "app_id = ? and metadata_fingerprint = ?";
                                    v18_4 = v9_28;
                                } else {
                                    long v14_15 = new String[3];
                                    v14_15[0] = v4_0;
                                    v14_15[1] = v11_0;
                                    v14_15[2] = String.valueOf(v6_0);
                                    v17_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v18_4 = v14_15;
                                }
                                v6_1 = v10_7.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v17_3, v18_4, 0, 0, "rowid", 0);
                                try {
                                    if (!v6_1.moveToFirst()) {
                                        v5_90.zzad().zzdd().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                        if (v6_1 == null) {
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v8_0 = v6_1;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                }
                                do {
                                    long v7_48 = v6_1.getLong(0);
                                    Object v9_39 = com.google.android.gms.internal.measurement.zzcf.zze(v6_1.getBlob(3));
                                    v9_39.name = v6_1.getString(1);
                                    v9_39.zzxj = Long.valueOf(v6_1.getLong(2));
                                    if (v3_2.zza(v7_48, v9_39)) {
                                    } else {
                                        if (v6_1 == null) {
                                        } else {
                                        }
                                    }
                                } while(v6_1.moveToNext());
                                if (v6_1 == null) {
                                }
                            } else {
                                v5_90.zzad().zzda().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                if (v8_0 == null) {
                                }
                            }
                            v8_0.close();
                        } else {
                            if (v4_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v8_44;
                        long v14_20 = v6_0 cmp -1;
                        try {
                            if (v14_20 == 0) {
                                v8_44 = new String[1];
                                v8_44[0] = String.valueOf(p45);
                            } else {
                                v8_44 = new String[2];
                                v8_44[0] = String.valueOf(v6_0);
                                v8_44[1] = String.valueOf(p45);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v6_1 = 0;
                            v8_3 = 0;
                        }
                        long v14_21;
                        if (v14_20 == 0) {
                            v14_21 = "";
                        } else {
                            v14_21 = "rowid <= ? and ";
                        }
                        boolean v11_24 = new StringBuilder((v14_21.length() + 148));
                        v11_24.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_24.append(v14_21);
                        v11_24.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v11_24.toString(), v8_44);
                        if (v4_0.moveToFirst()) {
                            Boolean v8_2 = v4_0.getString(0);
                            try {
                                v11_0 = v4_0.getString(1);
                                v4_0.close();
                                v8_3 = v4_0;
                                v4_0 = v8_2;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_1 = v4_0;
                            }
                        } else {
                            if (v4_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_0 = v4_0;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_1 = v4_0;
                    v8_3 = 0;
                }
                v4_0.close();
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v4_100 = v0_7;
                v6_1 = 0;
                v8_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

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


    private final void zzd(com.google.android.gms.measurement.internal.zzaj p27, com.google.android.gms.measurement.internal.zzm p28)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p28);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p28.packageName);
        long v5_87 = System.nanoTime();
        void v26_1 = this.zzq();
        v26_1.zzfy();
        int v15_0 = p28.packageName;
        if (v26_1.zzdm().zze(p27, p28)) {
            if (p28.zzcr) {
                int v13_0 = 0;
                if (!v26_1.zzdp().zzk(v15_0, p27.name)) {
                    if (this.zzl.zzad().isLoggable(2)) {
                        this.zzl.zzad().zzdi().zza("Logging event", this.zzl.zzaa().zzb(p27));
                    }
                    v26_1.zzdo().beginTransaction();
                    try {
                        int v23;
                        this.zzg(p28);
                    } catch (java.io.IOException v0_2) {
                        boolean v2_41 = v0_2;
                        v26_1.zzdo().endTransaction();
                        throw v2_41;
                    }
                    if ("_iap".equals(p27.name)) {
                        com.google.android.gms.internal.measurement.zzch v8_2;
                        long v7_77 = p27.zzfd.getString("currency");
                        if (!"ecommerce_purchase".equals(p27.name)) {
                            v8_2 = p27.zzfd.getLong("value").longValue();
                            if (android.text.TextUtils.isEmpty(v7_77)) {
                                v23 = v5_87;
                            } else {
                                long v7_4 = v7_77.toUpperCase(java.util.Locale.US);
                                if (!v7_4.matches("[A-Z]{3}")) {
                                } else {
                                    long v7_8;
                                    long v7_6 = String.valueOf(v7_4);
                                    if (v7_6.length() == 0) {
                                        v7_8 = new String("_ltv_");
                                    } else {
                                        v7_8 = "_ltv_".concat(v7_6);
                                    }
                                    long v5_3;
                                    long v10_8 = v7_8;
                                    long v7_10 = v26_1.zzdo().zze(v15_0, v10_8);
                                    if (v7_10 == 0) {
                                        v23 = v5_87;
                                        long v7_18 = v26_1.zzdo();
                                        long v11_8 = (this.zzl.zzaf().zzb(v15_0, com.google.android.gms.measurement.internal.zzal.zzhh) - 1);
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_0);
                                        v7_18.zzq();
                                        v7_18.zzah();
                                        try {
                                            String v12_2 = v7_18.getWritableDatabase();
                                            long v5_5 = new String[3];
                                            v5_5[0] = v15_0;
                                            v5_5[1] = v15_0;
                                            v5_5[2] = String.valueOf(v11_8);
                                            v12_2.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v5_5);
                                        } catch (java.io.IOException v0_0) {
                                            v7_18.zzad().zzda().zza("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzau.zzao(v15_0), v0_0);
                                        }
                                        v5_3 = new com.google.android.gms.measurement.internal.zzgc;
                                        v5_3(v15_0, p27.origin, v10_8, this.zzl.zzz().currentTimeMillis(), Long.valueOf(v8_2));
                                    } else {
                                        if ((v7_10.value instanceof Long)) {
                                            int v19_0 = new com.google.android.gms.measurement.internal.zzgc;
                                            v23 = v5_87;
                                            long v6 = 0;
                                            v19_0(v15_0, p27.origin, v10_8, this.zzl.zzz().currentTimeMillis(), Long.valueOf((((Long) v7_10.value).longValue() + v8_2)));
                                            v5_3 = v19_0;
                                        } else {
                                        }
                                    }
                                    if (!v26_1.zzdo().zza(v5_3)) {
                                        this.zzl.zzad().zzda().zza("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.measurement.internal.zzau.zzao(v15_0), this.zzl.zzaa().zzan(v5_3.name), v5_3.value);
                                        this.zzl.zzab().zza(v15_0, 9, 0, 0, 0);
                                    }
                                }
                            }
                            v13_0 = 1;
                        } else {
                            int v16_8 = (p27.zzfd.zzaj("value").doubleValue() * 1000000.0);
                            if (v16_8 == 0) {
                                v16_8 = (((double) p27.zzfd.getLong("value").longValue()) * 1000000.0);
                            }
                            if ((v16_8 > 9.223372036854776e+18) || (v16_8 < -9.223372036854776e+18)) {
                                this.zzl.zzad().zzdd().zza("Data lost. Currency value is too big. appId", com.google.android.gms.measurement.internal.zzau.zzao(v15_0), Double.valueOf(v16_8));
                                v23 = v5_87;
                            } else {
                                v8_2 = Math.round(v16_8);
                            }
                        }
                        if (v13_0 == 0) {
                            v26_1.zzdo().setTransactionSuccessful();
                            v26_1.zzdo().endTransaction();
                            return;
                        }
                    } else {
                        if (!"ecommerce_purchase".equals(p27.name)) {
                            v23 = v5_87;
                        } else {
                        }
                    }
                    long v5_10 = com.google.android.gms.measurement.internal.zzgd.zzbm(p27.name);
                    int v16_3 = "_err".equals(p27.name);
                    int v18_0 = v15_0;
                    long v7_34 = v26_1.zzdo().zza(v26_1.zzfz(), v15_0, 1, v5_10, 0, v16_3, 0);
                    com.google.android.gms.internal.measurement.zzch v8_10 = (v7_34.zzem - ((long) ((Integer) com.google.android.gms.measurement.internal.zzal.zzgn.get(0)).intValue()));
                    if (v8_10 <= 0) {
                        if (v5_10 != 0) {
                            com.google.android.gms.internal.measurement.zzch v8_12 = (v7_34.zzel - ((long) ((Integer) com.google.android.gms.measurement.internal.zzal.zzgp.get(0)).intValue()));
                            if (v8_12 > 0) {
                                if ((v8_12 % 1000) == 1) {
                                    this.zzl.zzad().zzda().zza("Data loss. Too many public events logged. appId, count", com.google.android.gms.measurement.internal.zzau.zzao(v18_0), Long.valueOf(v7_34.zzel));
                                }
                                this.zzl.zzab().zza(v18_0, 16, "_ev", p27.name, 0);
                                v26_1.zzdo().setTransactionSuccessful();
                                v26_1.zzdo().endTransaction();
                                return;
                            }
                        }
                        if (v16_3 != 0) {
                            com.google.android.gms.internal.measurement.zzch v8_14 = (v7_34.zzeo - ((long) Math.max(0, Math.min(1000000, this.zzl.zzaf().zzb(p28.packageName, com.google.android.gms.measurement.internal.zzal.zzgo)))));
                            if (v8_14 > 0) {
                                if (v8_14 == 1) {
                                    this.zzl.zzad().zzda().zza("Too many error events logged. appId, count", com.google.android.gms.measurement.internal.zzau.zzao(v18_0), Long.valueOf(v7_34.zzeo));
                                }
                                v26_1.zzdo().setTransactionSuccessful();
                                v26_1.zzdo().endTransaction();
                                return;
                            }
                        }
                        long v6_22 = p27.zzfd.zzct();
                        this.zzl.zzab().zza(v6_22, "_o", p27.origin);
                        int v13_5 = v18_0;
                        if (this.zzl.zzab().zzbt(v13_5)) {
                            this.zzl.zzab().zza(v6_22, "_dbg", Long.valueOf(1));
                            this.zzl.zzab().zza(v6_22, "_r", Long.valueOf(1));
                        }
                        if (("_s".equals(p27.name)) && (this.zzl.zzaf().zzz(p28.packageName))) {
                            long v7_54 = v26_1.zzdo().zze(p28.packageName, "_sno");
                            if ((v7_54 != 0) && ((v7_54.value instanceof Long))) {
                                this.zzl.zzab().zza(v6_22, "_sno", v7_54.value);
                            }
                        }
                        if (("_s".equals(p27.name)) && ((this.zzl.zzaf().zze(p28.packageName, com.google.android.gms.measurement.internal.zzal.zzij)) && (!this.zzl.zzaf().zzz(p28.packageName)))) {
                            this.zzc(new com.google.android.gms.measurement.internal.zzga("_sno", 0, 0), p28);
                        }
                        long v7_61 = v26_1.zzdo().zzaf(v13_5);
                        if (v7_61 > 0) {
                            this.zzl.zzad().zzdd().zza("Data lost. Too many events stored on disk, deleted. appId", com.google.android.gms.measurement.internal.zzau.zzao(v13_5), Long.valueOf(v7_61));
                        }
                        long v5_11;
                        String v4_19 = new com.google.android.gms.measurement.internal.zzae;
                        long v27_1 = "_r";
                        boolean v2_5 = v13_5;
                        v4_19(this.zzl, p27.origin, v13_5, p27.name, p27.zzfp, 0, v6_22);
                        long v6_24 = v26_1.zzdo().zzc(v2_5, v4_19.name);
                        if (v6_24 != 0) {
                            v4_19 = v4_19.zza(this.zzl, v6_24.zzfg);
                            v5_11 = v6_24.zzw(v4_19.timestamp);
                        } else {
                            if ((v26_1.zzdo().zzai(v2_5) < 500) || (v5_10 == 0)) {
                                v5_11 = new com.google.android.gms.measurement.internal.zzaf;
                                v5_11(v2_5, v4_19.name, 0, 0, v4_19.timestamp, 0, 0, 0, 0, 0);
                            } else {
                                this.zzl.zzad().zzda().zza("Too many event names used, ignoring event. appId, name, supported count", com.google.android.gms.measurement.internal.zzau.zzao(v2_5), this.zzl.zzaa().zzal(v4_19.name), Integer.valueOf(500));
                                this.zzl.zzab().zza(v2_5, 8, 0, 0, 0);
                                v26_1.zzdo().endTransaction();
                                return;
                            }
                        }
                        String v12_17;
                        v26_1.zzdo().zza(v5_11);
                        v26_1 = v26_1.zzq();
                        v26_1.zzfy();
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v4_19);
                        com.google.android.gms.common.internal.Preconditions.checkNotNull(p28);
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_19.zzcf);
                        com.google.android.gms.common.internal.Preconditions.checkArgument(v4_19.zzcf.equals(p28.packageName));
                        boolean v2_12 = new com.google.android.gms.internal.measurement.zzch();
                        v2_12.zzxn = Integer.valueOf(1);
                        v2_12.zzxv = "android";
                        v2_12.zzcf = p28.packageName;
                        v2_12.zzcp = p28.zzcp;
                        v2_12.zzcn = p28.zzcn;
                        if (p28.zzco != -2147483648) {
                            v12_17 = Integer.valueOf(((int) p28.zzco));
                        } else {
                            v12_17 = 0;
                        }
                        v2_12.zzyh = v12_17;
                        v2_12.zzxz = Long.valueOf(p28.zzt);
                        v2_12.zzch = p28.zzch;
                        if ((!this.zzl.zzaf().zza(com.google.android.gms.measurement.internal.zzal.zziv)) || (android.text.TextUtils.isEmpty(v2_12.zzch))) {
                            v2_12.zzxf = p28.zzcv;
                        }
                        String v12_18;
                        if (p28.zzcq != 0) {
                            v12_18 = Long.valueOf(p28.zzcq);
                        } else {
                            v12_18 = 0;
                        }
                        v2_12.zzyd = v12_18;
                        v2_12.zzys = Long.valueOf(p28.zzu);
                        if (this.zzl.zzaf().zze(p28.packageName, com.google.android.gms.measurement.internal.zzal.zziq)) {
                            v2_12.zzyr = v26_1.zzdm().zzgj();
                        }
                        long v5_41 = this.zzl.zzae().zzar(p28.packageName);
                        if ((v5_41 == 0) || (android.text.TextUtils.isEmpty(((CharSequence) v5_41.first)))) {
                            if ((!this.zzl.zzy().zzj(this.zzl.getContext())) && (p28.zzcu)) {
                                long v5_49 = android.provider.Settings$Secure.getString(this.zzl.getContext().getContentResolver(), "android_id");
                                if (v5_49 != 0) {
                                    if (v5_49.isEmpty()) {
                                        this.zzl.zzad().zzdd().zza("empty secure ID. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_12.zzcf));
                                    }
                                } else {
                                    this.zzl.zzad().zzdd().zza("null secure ID. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_12.zzcf));
                                    v5_49 = "null";
                                }
                                v2_12.zzyk = v5_49;
                            }
                        } else {
                            if (p28.zzct) {
                                v2_12.zzyb = ((String) v5_41.first);
                                v2_12.zzyc = ((Boolean) v5_41.second);
                            }
                        }
                        this.zzl.zzy().zzah();
                        v2_12.zzxx = android.os.Build.MODEL;
                        this.zzl.zzy().zzah();
                        v2_12.zzxw = android.os.Build$VERSION.RELEASE;
                        v2_12.zzxy = Integer.valueOf(((int) this.zzl.zzy().zzco()));
                        v2_12.zzex = this.zzl.zzy().zzcp();
                        v2_12.zzya = 0;
                        v2_12.zzxq = 0;
                        v2_12.zzxr = 0;
                        v2_12.zzxs = 0;
                        v2_12.zzym = Long.valueOf(p28.zzcs);
                        if ((this.zzl.isEnabled()) && (com.google.android.gms.measurement.internal.zzt.zzbv())) {
                            v2_12.zzyn = 0;
                        }
                        long v5_76 = v26_1.zzdo().zzae(p28.packageName);
                        if (v5_76 == 0) {
                            v5_76 = new com.google.android.gms.measurement.internal.zzg(this.zzl, p28.packageName);
                            v5_76.zza(this.zzl.zzab().zzgn());
                            v5_76.zze(p28.zzcj);
                            v5_76.zzb(p28.zzch);
                            v5_76.zzd(this.zzl.zzae().zzas(p28.packageName));
                            v5_76.zzk(0);
                            v5_76.zze(0);
                            v5_76.zzf(0);
                            v5_76.zzf(p28.zzcn);
                            v5_76.zzg(p28.zzco);
                            v5_76.zzg(p28.zzcp);
                            v5_76.zzh(p28.zzt);
                            v5_76.zzi(p28.zzcq);
                            v5_76.setMeasurementEnabled(p28.zzcr);
                            v5_76.zzt(p28.zzcs);
                            v5_76.zzj(p28.zzu);
                            v26_1.zzdo().zza(v5_76);
                        }
                        v2_12.zzcg = v5_76.getAppInstanceId();
                        v2_12.zzcj = v5_76.getFirebaseInstanceId();
                        Long v3_16 = v26_1.zzdo().zzad(p28.packageName);
                        long v5_81 = new com.google.android.gms.internal.measurement.zzbt$zzh[v3_16.size()];
                        v2_12.zzxp = v5_81;
                        long v5_82 = 0;
                        while (v5_82 < v3_16.size()) {
                            long v6_75 = com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby(((com.google.android.gms.measurement.internal.zzgc) v3_16.get(v5_82)).name).zzan(((com.google.android.gms.measurement.internal.zzgc) v3_16.get(v5_82)).zzsx);
                            v26_1.zzdm().zza(v6_75, ((com.google.android.gms.measurement.internal.zzgc) v3_16.get(v5_82)).value);
                            v2_12.zzxp[v5_82] = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) v6_75.zzmr()));
                            v5_82++;
                        }
                        boolean v2_13 = v26_1.zzdo().zza(v2_12);
                        long v6_72;
                        long v5_86 = v26_1.zzdo();
                        if (v4_19.zzfd == null) {
                            v6_72 = 0;
                        } else {
                            long v6_65 = v4_19.zzfd.iterator();
                            while (v6_65.hasNext()) {
                                long v10_31 = v27_1;
                                if (!v10_31.equals(((String) v6_65.next()))) {
                                    v27_1 = v10_31;
                                }
                                v6_72 = 1;
                            }
                            long v6_67 = v26_1.zzdp().zzl(v4_19.zzcf, v4_19.name);
                            com.google.android.gms.measurement.internal.zzx vtmp252 = v26_1.zzdo().zza(v26_1.zzfz(), v4_19.zzcf, 0, 0, 0, 0, 0);
                            if ((v6_67 == 0) || (vtmp252.zzep >= ((long) this.zzl.zzaf().zzi(v4_19.zzcf)))) {
                            } else {
                            }
                        }
                        if (!v5_86.zza(v4_19, v2_13, v6_72)) {
                            v26_1.zzdo().setTransactionSuccessful();
                            if (this.zzl.zzad().isLoggable(2)) {
                                this.zzl.zzad().zzdi().zza("Event recorded", this.zzl.zzaa().zza(v4_19));
                            }
                            v26_1.zzdo().endTransaction();
                            v26_1.zzgc();
                            this.zzl.zzad().zzdi().zza("Background event processing time, ms", Long.valueOf((((System.nanoTime() - v23) + 500000) / 1000000)));
                            return;
                        } else {
                            this.zzse = 0;
                        }
                    } else {
                        if ((v8_10 % 1000) == 1) {
                            this.zzl.zzad().zzda().zza("Data loss. Too many events logged. appId, count", com.google.android.gms.measurement.internal.zzau.zzao(v18_0), Long.valueOf(v7_34.zzem));
                        }
                        v26_1.zzdo().setTransactionSuccessful();
                        v26_1.zzdo().endTransaction();
                        return;
                    }
                } else {
                    this.zzl.zzad().zzdd().zza("Dropping blacklisted event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v15_0), this.zzl.zzaa().zzal(p27.name));
                    if ((v26_1.zzdp().zzbe(v15_0)) || (v26_1.zzdp().zzbf(v15_0))) {
                        v13_0 = 1;
                    }
                    if ((v13_0 != 0) || ("_err".equals(p27.name))) {
                        Long v3_6 = 0;
                    } else {
                        v3_6 = 0;
                        this.zzl.zzab().zza(v15_0, 11, "_ev", p27.name, 0);
                    }
                    if (v13_0 != 0) {
                        boolean v2_3 = v26_1.zzdo().zzae(v15_0);
                        if ((v2_3) && (Math.abs((this.zzl.zzz().currentTimeMillis() - Math.max(v2_3.zzba(), v2_3.zzaz()))) > ((Long) com.google.android.gms.measurement.internal.zzal.zzhc.get(v3_6)).longValue())) {
                            this.zzl.zzad().zzdh().zzaq("Fetching config for blacklisted app");
                            this.zzb(v2_3);
                        }
                    }
                    return;
                }
            } else {
                this.zzg(p28);
                return;
            }
        } else {
            return;
        }
    }

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


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

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


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

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


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

Method com.apollographql.apollo.cache.normalized.sql.ApolloSqlHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS records");
        this.onCreate(p1);
        return;
    }

Method com.apollographql.apollo.cache.normalized.sql.ApolloSqlHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(com.apollographql.apollo.cache.normalized.sql.ApolloSqlHelper.DATABASE_CREATE);
        p2.execSQL(com.apollographql.apollo.cache.normalized.sql.ApolloSqlHelper.CREATE_KEY_INDEX);
        return;
    }

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


    public void cleanupEvents(String p5, com.mixpanel.android.mpmetrics.MPDbAdapter$Table p6, String p7, boolean p8)
    {
        String v6_1 = p6.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("_id <= ");
            v2_1.append(p5);
            v2_1.append(" AND ");
            v2_1.append("token");
            v2_1.append(" = \'");
            v2_1.append(p7);
            v2_1.append("\'");
            StringBuffer v1_0 = new StringBuffer(v2_1.toString());
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_9) {
            this.mDb.close();
            throw v5_9;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_7) {
            StringBuilder v8_2 = new StringBuilder();
            v8_2.append("Could not clean sent Mixpanel records from ");
            v8_2.append(v6_1);
            v8_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v8_2.toString(), v5_7);
            this.mDb.deleteDatabase();
            this.mDb.close();
            return;
        }
        if (p8 == null) {
            v1_0.append(" AND automatic_data=0");
        }
        v0_2.delete(v6_1, v1_0.toString(), 0);
        this.mDb.close();
        return;
    }

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


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

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


    public void cleanupAllEvents(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p4, String p5)
    {
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_1 = p4.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v1_4 = new StringBuilder();
            v1_4.append("token = \'");
            v1_4.append(p5);
            v1_4.append("\'");
            v0_2.delete(v4_1, v1_4.toString(), 0);
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_5) {
            this.mDb.close();
            throw v4_5;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_3) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Could not clean timed-out Mixpanel records from ");
            v1_2.append(v4_1);
            v1_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v1_2.toString(), v5_3);
            this.mDb.deleteDatabase();
        }
        this.mDb.close();
        return;
    }

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


    private void cleanupAutomaticEvents(com.mixpanel.android.mpmetrics.MPDbAdapter$Table p4, String p5)
    {
        com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_1 = p4.getName();
        try {
            String v0_2 = this.mDb.getWritableDatabase();
            StringBuilder v1_4 = new StringBuilder();
            v1_4.append("automatic_data = 1 AND token = \'");
            v1_4.append(p5);
            v1_4.append("\'");
            v0_2.delete(v4_1, v1_4.toString(), 0);
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v4_5) {
            this.mDb.close();
            throw v4_5;
        } catch (com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper v5_3) {
            StringBuilder v1_2 = new StringBuilder();
            v1_2.append("Could not clean automatic Mixpanel records from ");
            v1_2.append(v4_1);
            v1_2.append(". Re-initializing database.");
            com.mixpanel.android.util.MPLog.e("MixpanelAPI.Database", v1_2.toString(), v5_3);
            this.mDb.deleteDatabase();
        }
        this.mDb.close();
        return;
    }

Method com.mixpanel.android.mpmetrics.MPDbAdapter$MPDatabaseHelper.migrateTableFrom4To5() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

Method com.layer.sdk.internal.lsdke.lsdkc.a.c() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void c(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.delete("synced_changes", 0, 0);
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.c() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static Boolean c(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        int v0 = 1;
        String[] v1 = new String[1];
        v1[0] = p5;
        if (p4.delete("block_list", "user_id=?", v1) == 0) {
            v0 = 0;
        }
        return Boolean.valueOf(v0);
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p4, java.util.Collection p5)
    {
        if (!p5.isEmpty()) {
            IllegalArgumentException v0_9 = new StringBuilder();
            StringBuilder v1_8 = p5.iterator();
            while (v1_8.hasNext()) {
                String v2_7 = ((com.layer.sdk.internal.lsdki.d) v1_8.next());
                if (v0_9.length() > 0) {
                    v0_9.append(",");
                }
                v0_9.append(v2_7.a());
            }
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("change_identifier IN (");
            v1_1.append(v0_9.toString());
            v1_1.append(")");
            String v4_1 = p4.delete("synced_changes", v1_1.toString(), 0);
            if (v4_1 == p5.size()) {
                return;
            } else {
                if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                    StringBuilder v1_4 = new StringBuilder();
                    v1_4.append("Could not delete all synced changes! Tried ");
                    v1_4.append(p5.size());
                    v1_4.append(". Deleted: ");
                    v1_4.append(v4_1);
                    com.layer.sdk.internal.lsdkk.k.e(ark>com.layer.sdk.internal.lsdke.lsdkc.aark>.a, v1_4.toString());
                }
                StringBuilder v1_7 = new StringBuilder();
                v1_7.append("Could not delete all synced changes! : ");
                v1_7.append(v4_1);
                v1_7.append(". Tried to delete : ");
                v1_7.append(p5.size());
                throw new IllegalArgumentException(v1_7.toString());
            }
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p6, String p7, Boolean p8)
    {
        if (!p8.booleanValue()) {
            String[] v8_8 = new String[1];
            v8_8[0] = p7;
            if (p6.delete("block_list", "user_id=? AND synced_at IS NULL", v8_8) == 0) {
                String[] v8_5 = Long.valueOf(new java.util.Date().getTime());
                android.content.ContentValues v4_2 = new android.content.ContentValues();
                v4_2.put("user_id", p7);
                v4_2.put("unblocked_at", v8_5);
                String[] v8_6 = new String[1];
                v8_6[0] = p7;
                p6.update("block_list", v4_2, "user_id=?", v8_6);
            }
            return;
        } else {
            String[] v8_7 = new String[1];
            v8_7[0] = p7;
            p6.delete("block_list", "user_id=?", v8_7);
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p2, Long p3, String p4)
    {
        String[] v0_1 = new String[2];
        v0_1[0] = p3.toString();
        v0_1[1] = p4;
        if (p2.delete("conversation_participants", "conversation_database_identifier=? AND member_id=?", v0_1) != 1) {
            throw new IllegalArgumentException("Could not delete conversation participant");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdki.d p4)
    {
        String[] v1 = new String[1];
        v1[0] = p4.a().toString();
        if (p3.delete("synced_changes", "change_identifier=?", v1) != 1) {
            throw new IllegalArgumentException("Could not delete synced change!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p3, com.layer.sdk.internal.lsdki.c p4)
    {
        String[] v1 = new String[1];
        v1[0] = p4.a().toString();
        if (p3.delete("syncable_changes", "change_identifier=?", v1) != 1) {
            throw new IllegalArgumentException("Could not delete syncable change!");
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public static void a(android.database.sqlite.SQLiteDatabase p2, com.layer.sdk.internal.lsdkd.lsdka.h$b p3, Long p4, String p5)
    {
        String[] v0_1 = new String[3];
        v0_1[0] = p3.a();
        v0_1[1] = p4.toString();
        v0_1[2] = p5;
        p2.delete("local_keyed_values", "object_type=? AND object_id=? AND key=?", v0_1);
        return;
    }

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


    public final int zzg(String p7, String p8)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p8);
        this.zzq();
        this.zzah();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            String[] v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            Object v7_1 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
            return v7_1;
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzad().zzda().zza("Error deleting conditional property", com.google.android.gms.measurement.internal.zzau.zzao(v7_1), this.zzaa().zzan(p8), v1_0);
            return 0;
        }
    }

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


    public final void zzd(String p6, String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p6);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzq();
        this.zzah();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            String[] v3_1 = new String[2];
            v3_1[0] = p6;
            v3_1[1] = p7;
            this.zzad().zzdi().zza("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_1)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzad().zzda().zza("Error deleting user attribute. appId", com.google.android.gms.measurement.internal.zzau.zzao(p6), this.zzaa().zzan(p7), v0_2);
            return;
        }
    }

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


    final void zzca()
    {
        this.zzq();
        this.zzah();
        if (this.zzcg()) {
            Integer v0_11 = this.zzae().zzle.get();
            String v2_1 = this.zzz().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.measurement.internal.zzal.zzhb.get(0)).longValue()) {
                this.zzae().zzle.set(v2_1);
                this.zzq();
                this.zzah();
                if (this.zzcg()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.measurement.internal.zzaw v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzz().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.measurement.internal.zzt.zzbs());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzad().zzdi().zza("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

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


    public final long zzaf(String p7)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p7);
        this.zzq();
        this.zzah();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzaw v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzaf().zzb(p7, com.google.android.gms.measurement.internal.zzal.zzgs))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            Object v7_1 = v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1);
            return ((long) v7_1);
        } catch (long v0_1) {
            this.zzad().zzda().zza("Error deleting over the limit events. appId", com.google.android.gms.measurement.internal.zzau.zzao(v7_1), v0_1);
            return 0;
        }
    }

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


    final void zza(String p17, com.google.android.gms.internal.measurement.zzbx[] p18)
    {
        this.zzah();
        this.zzq();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p18);
        android.database.sqlite.SQLiteDatabase v7 = this.getWritableDatabase();
        v7.beginTransaction();
        try {
            this.zzah();
            this.zzq();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            int v8_1 = this.getWritableDatabase();
            String[] v10_4 = new String[1];
            int v11 = 0;
            v10_4[0] = p17;
            v8_1.delete("property_filters", "app_id=?", v10_4);
            String[] v10_5 = new String[1];
            v10_5[0] = p17;
            v8_1.delete("event_filters", "app_id=?", v10_5);
            Integer v5_0 = p18.length;
            int v8_0 = 0;
        } catch (Throwable v0_1) {
            v7.endTransaction();
            throw v0_1;
        }
        while (v8_0 < v5_0) {
            String[] v10_6 = p18[v8_0];
            this.zzah();
            this.zzq();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_6);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_6.zzvw);
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v10_6.zzvv);
            if (v10_6.zzvu != null) {
                String v12_7 = v10_6.zzvu.intValue();
                int v13_3 = v10_6.zzvw;
                boolean v15_2 = 0;
                while (v15_2 < v13_3.length) {
                    if (v13_3[v15_2].zzwa != null) {
                        v15_2++;
                    } else {
                        int v9_1 = this.zzad().zzdd();
                        String v12_1 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        int v13_1 = com.google.android.gms.measurement.internal.zzau.zzao(p17);
                        String[] v10_1 = v10_6.zzvu;
                    }
                    v9_1.zza(v12_1, v13_1, v10_1);
                }
                int v9_6 = v10_6.zzvv;
                int v14_0 = 0;
                while (v14_0 < v9_6.length) {
                    if (v9_6[v14_0].zzwa != null) {
                        v14_0++;
                    } else {
                        v9_1 = this.zzad().zzdd();
                        v12_1 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v13_1 = com.google.android.gms.measurement.internal.zzau.zzao(p17);
                        v10_1 = v10_6.zzvu;
                    }
                }
                int v9_7 = v10_6.zzvw;
                int v14_2 = 0;
                while (v14_2 < v9_7.length) {
                    if (this.zza(p17, v12_7, v9_7[v14_2])) {
                        v14_2++;
                    } else {
                        int v9_8 = 0;
                    }
                    if (v9_8 != 0) {
                        String[] v10_7 = v10_6.zzvv;
                        int v14_3 = 0;
                        while (v14_3 < v10_7.length) {
                            if (this.zza(p17, v12_7, v10_7[v14_3])) {
                                v14_3++;
                            } else {
                                v9_8 = 0;
                                break;
                            }
                        }
                    }
                    if (v9_8 != 0) {
                    } else {
                        this.zzah();
                        this.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p17);
                        int v9_9 = this.getWritableDatabase();
                        int v13_7 = new String[2];
                        v13_7[0] = p17;
                        v13_7[1] = String.valueOf(v12_7);
                        v9_9.delete("property_filters", "app_id=? and audience_id=?", v13_7);
                        String[] v10_0 = new String[2];
                        v10_0[0] = p17;
                        v10_0[1] = String.valueOf(v12_7);
                        v9_9.delete("event_filters", "app_id=? and audience_id=?", v10_0);
                        v8_0++;
                    }
                }
                v9_8 = 1;
            } else {
                this.zzad().zzdd().zza("Audience with no ID. appId", com.google.android.gms.measurement.internal.zzau.zzao(p17));
            }
        }
        java.util.ArrayList v3_2 = new java.util.ArrayList();
        int v4_0 = p18.length;
        while (v11 < v4_0) {
            v3_2.add(p18[v11].zzvu);
            v11++;
        }
        this.zza(p17, v3_2);
        v7.setTransactionSuccessful();
        v7.endTransaction();
        return;
    }

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


    private final boolean zza(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p10);
        this.zzah();
        this.zzq();
        com.google.android.gms.measurement.internal.zzaw v0_2 = this.getWritableDatabase();
        try {
            String[] v4_12 = new String[1];
            v4_12[0] = p10;
            String[] v4_0 = this.zza("select count(1) from audience_filter_values where app_id=?", v4_12);
            String v2_3 = Math.max(0, Math.min(2000, this.zzaf().zzb(p10, com.google.android.gms.measurement.internal.zzal.zzhi)));
        } catch (String v11_1) {
            this.zzad().zzda().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzau.zzao(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_9 = ((Integer) p11.get(v5_0));
                if ((v6_9 != null) && ((v6_9 instanceof Integer))) {
                    v4_2.add(Integer.toString(v6_9.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();
            String v6_7 = new StringBuilder((String.valueOf(v11_5).length() + 140));
            v6_7.append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ");
            v6_7.append(v11_5);
            v6_7.append(" order by rowid desc limit -1 offset ?)");
            String v11_7 = v6_7.toString();
            String[] v4_11 = new String[2];
            v4_11[0] = p10;
            v4_11[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v11_7, v4_11) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

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

Couldn't retrieve source code

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


    public final void resetAnalyticsData()
    {
        this.zzo();
        this.zzq();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzad().zzda().zza("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzad().zzdi().zza("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

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


    private final boolean zza(int p18, byte[] p19)
    {
        this.zzo();
        this.zzq();
        Long v3_9 = 0;
        if (!this.zzjk) {
            android.content.ContentValues v4_1 = new android.content.ContentValues();
            v4_1.put("type", Integer.valueOf(p18));
            v4_1.put("entry", p19);
            com.google.android.gms.measurement.internal.zzaw v5_2 = 5;
            int v6 = 0;
            int v7 = 5;
            while (v6 < v5_2) {
                String v8_0 = 0;
                try {
                    String[] v10 = this.getWritableDatabase();
                    try {
                        if (v10 != null) {
                            try {
                                v10.beginTransaction();
                                Long v11_1 = 0;
                                int v13 = v10.rawQuery("select count(1) from messages", 0);
                                try {
                                    if ((v13 != 0) && (v13.moveToFirst())) {
                                        v11_1 = v13.getLong(v3_9);
                                    }
                                    if (v11_1 >= 100000) {
                                        this.zzad().zzda().zzaq("Data loss, local db full");
                                        long v14_2 = ((100000 - v11_1) + 1);
                                        String v8_2 = new String[1];
                                        v8_2[v3_9] = Long.toString(v14_2);
                                        Long v11_4 = ((long) v10.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v8_2));
                                        if (v11_4 != v14_2) {
                                            this.zzad().zzda().zza("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v14_2), Long.valueOf(v11_4), Long.valueOf((v14_2 - v11_4)));
                                        }
                                    }
                                    v10.insertOrThrow("messages", 0, v4_1);
                                    v10.setTransactionSuccessful();
                                    v10.endTransaction();
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    return 1;
                                } catch (Throwable v0_3) {
                                    if (v13 != 0) {
                                        v13.close();
                                    }
                                    if (v10 != null) {
                                        v10.close();
                                    }
                                    throw v0_3;
                                } catch (Throwable v0_2) {
                                    v8_0 = v13;
                                    this.zzad().zzda().zza("Error writing entry to local database", v0_2);
                                    this.zzjk = 1;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                        v6++;
                                        v3_9 = 0;
                                        v5_2 = 5;
                                    } else {
                                        v10.close();
                                    }
                                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                                    v8_0 = v13;
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                    if (v8_0 != null) {
                                        v8_0.close();
                                    }
                                    if (v10 == null) {
                                    }
                                } catch (Throwable v0_1) {
                                }
                            } catch (Throwable v0_3) {
                                v13 = 0;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                        } else {
                            try {
                                this.zzjk = 1;
                            } catch (Throwable v0_2) {
                            } catch (Throwable v0_1) {
                                v13 = 0;
                            }
                            if (v10 != null) {
                                v10.close();
                            }
                            return v3_9;
                        }
                        v8_0 = v10;
                        if (v8_0 != null) {
                            try {
                                if (v8_0.inTransaction()) {
                                    v8_0.endTransaction();
                                }
                            } catch (Throwable v0_3) {
                                v10 = v8_0;
                            }
                        }
                        this.zzad().zzda().zza("Error writing entry to local database", v0_1);
                        this.zzjk = 1;
                        if (v13 != 0) {
                            v13.close();
                        }
                        if (v8_0 == null) {
                        } else {
                            v8_0.close();
                        }
                    } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                        v8_0 = 0;
                    }
                } catch (Throwable v0_3) {
                    v10 = 0;
                    v13 = 0;
                } catch (Throwable v0_2) {
                    v10 = 0;
                } catch (android.database.sqlite.SQLiteDatabaseLockedException) {
                    v10 = 0;
                } catch (Throwable v0_1) {
                    v13 = 0;
                } catch (Throwable v0_3) {
                    v13 = v8_0;
                }
            }
            this.zzad().zzdd().zzaq("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    int v18;
                    String v9;
                    int v4_0;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            String v8_28;
                            String v8_27;
                            int v0_6;
                            long v3_12;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    String v9;
                    int v18;
                    int v4_0;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            String v8_27;
                            long v3_12;
                            String v8_28;
                            int v0_6;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    int v4_0;
                    int v18;
                    String v9;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            long v3_12;
                            String v8_28;
                            String v8_27;
                            int v0_6;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    int v18;
                    String v9;
                    int v4_0;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            long v3_12;
                            String v8_28;
                            String v8_27;
                            int v0_6;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    int v4_0;
                    String v9;
                    int v18;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            int v0_6;
                            String v8_27;
                            long v3_12;
                            String v8_28;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    String v9;
                    int v4_0;
                    int v18;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            String v8_27;
                            String v8_28;
                            long v3_12;
                            int v0_6;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    int v4_0;
                    int v18;
                    String v9;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            String v8_28;
                            String v8_27;
                            long v3_12;
                            int v0_6;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzf(com.google.android.gms.measurement.internal.zzm p23)
    {
        void v22_1 = this.zzq();
        v22_1.zzfy();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p23);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p23.packageName);
        if ((!android.text.TextUtils.isEmpty(p23.zzch)) || (!android.text.TextUtils.isEmpty(p23.zzcv))) {
            android.os.Bundle v7_6 = v22_1.zzdo().zzae(p23.packageName);
            if ((v7_6 != null) && ((android.text.TextUtils.isEmpty(v7_6.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p23.zzch)))) {
                v7_6.zzl(0);
                v22_1.zzdo().zza(v7_6);
                v22_1.zzdp().zzbb(p23.packageName);
            }
            if (p23.zzcr) {
                long v10_6 = p23.zzdp;
                if (v10_6 == 0) {
                    v10_6 = this.zzl.zzz().currentTimeMillis();
                }
                if (this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                    this.zzl.zzy().zzcr();
                }
                android.os.Bundle v7_25 = p23.zzdq;
                if ((v7_25 != null) && (v7_25 != 1)) {
                    this.zzl.zzad().zzdd().zza("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), Integer.valueOf(v7_25));
                    v7_25 = 0;
                }
                v22_1.zzdo().beginTransaction();
                try {
                    String v9;
                    int v4_0;
                    int v18;
                    if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzin)) {
                        v9 = "_sysu";
                        v18 = "_sys";
                        v4_0 = 1;
                    } else {
                        long v14_34 = v22_1.zzdo().zze(p23.packageName, "_npa");
                        if ((v14_34 != 0) && (!"auto".equals(v14_34.origin))) {
                        } else {
                            if (p23.zzcw == null) {
                                v9 = "_sysu";
                                v18 = "_sys";
                                v4_0 = 1;
                                if (v14_34 != 0) {
                                    long v3_1 = new com.google.android.gms.measurement.internal.zzga;
                                    v3_1("_npa", v10_6, 0, "auto");
                                    this.zzc(v3_1, p23);
                                }
                            } else {
                                Long v20_0;
                                String v13_2 = new com.google.android.gms.measurement.internal.zzga;
                                if (!p23.zzcw.booleanValue()) {
                                    v20_0 = 0;
                                } else {
                                    v20_0 = 1;
                                }
                                v9 = "_sysu";
                                v18 = "_sys";
                                String v8_0 = v13_2;
                                long v3_2 = v14_34;
                                v4_0 = 1;
                                v13_2("_npa", v10_6, Long.valueOf(v20_0), "auto");
                                if ((v3_2 == 0) || (!v3_2.value.equals(v8_0.zzsy))) {
                                    this.zzb(v8_0, p23);
                                }
                            }
                        }
                    }
                } catch (int v0_55) {
                    v22_1.zzdo().endTransaction();
                    throw v0_55;
                }
                long v3_6 = v22_1.zzdo().zzae(p23.packageName);
                if (v3_6 != 0) {
                    this.zzl.zzab();
                    if (com.google.android.gms.measurement.internal.zzgd.zza(p23.zzch, v3_6.getGmpAppId(), p23.zzcv, v3_6.zzao())) {
                        this.zzl.zzad().zzdd().zza("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_6.zzan()));
                        com.google.android.gms.measurement.internal.zzga v12_14 = v22_1.zzdo();
                        long v3_7 = v3_6.zzan();
                        v12_14.zzah();
                        v12_14.zzq();
                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_7);
                        try {
                            String v13_6 = v12_14.getWritableDatabase();
                            long v14_5 = new String[v4_0];
                            v14_5[0] = v3_7;
                            String v8_13 = (((((((((v13_6.delete("events", "app_id=?", v14_5) + 0) + v13_6.delete("user_attributes", "app_id=?", v14_5)) + v13_6.delete("conditional_properties", "app_id=?", v14_5)) + v13_6.delete("apps", "app_id=?", v14_5)) + v13_6.delete("raw_events", "app_id=?", v14_5)) + v13_6.delete("raw_events_metadata", "app_id=?", v14_5)) + v13_6.delete("event_filters", "app_id=?", v14_5)) + v13_6.delete("property_filters", "app_id=?", v14_5)) + v13_6.delete("audience_filter_values", "app_id=?", v14_5));
                        } catch (int v0_1) {
                            v12_14.zzad().zzda().zza("Error deleting application data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v3_7), v0_1);
                            v3_6 = 0;
                        }
                        if (v8_13 <= null) {
                        } else {
                            v12_14.zzad().zzdi().zza("Deleted application data. app, records", v3_7, Integer.valueOf(v8_13));
                        }
                    }
                }
                if (v3_6 != 0) {
                    int v0_5;
                    if (v3_6.zzat() == -2147483648) {
                        if ((v3_6.zzas() == null) || (v3_6.zzas().equals(p23.zzcn))) {
                            int v0_6;
                            String v8_28;
                            String v8_27;
                            long v3_12;
                            v22_1.zzg(p23);
                            if (v7_25 != null) {
                                if (v7_25 != v4_0) {
                                    v8_27 = 0;
                                } else {
                                    v0_6 = v22_1.zzdo();
                                    v3_12 = p23.packageName;
                                    v8_28 = "_v";
                                    v8_27 = v0_6.zzc(v3_12, v8_28);
                                }
                            } else {
                                v0_6 = v22_1.zzdo();
                                v3_12 = p23.packageName;
                                v8_28 = "_f";
                            }
                            long v3_13;
                            if (v8_27 != null) {
                                if (p23.zzdo) {
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_cd", new com.google.android.gms.measurement.internal.zzag(new android.os.Bundle()), "auto", v10_6);
                                    this.zzc(v3_13, p23);
                                }
                            } else {
                                int v0_19;
                                long v14_16 = (((v10_6 / 3600000) + 1) * 3600000);
                                if (v7_25 != null) {
                                    if (v7_25 == v4_0) {
                                        int v4_2 = new com.google.android.gms.measurement.internal.zzga;
                                        v4_2("_fvt", v10_6, Long.valueOf(v14_16), "auto");
                                        this.zzb(v4_2, p23);
                                        v22_1 = v22_1.zzq();
                                        v22_1.zzfy();
                                        int v4_4 = new android.os.Bundle();
                                        v4_4.putLong("_c", 1);
                                        v4_4.putLong("_r", 1);
                                        if (this.zzl.zzaf().zzac(p23.packageName)) {
                                            v4_4.putLong("_et", 1);
                                        }
                                        if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                            v4_4.putLong("_dac", 1);
                                        }
                                        v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                        v0_19("_v", new com.google.android.gms.measurement.internal.zzag(v4_4), "auto", v10_6);
                                        this.zzc(v0_19, p23);
                                    }
                                } else {
                                    android.os.Bundle v7_7 = new com.google.android.gms.measurement.internal.zzga;
                                    v7_7("_fot", v10_6, Long.valueOf(v14_16), "auto");
                                    this.zzb(v7_7, p23);
                                    if (this.zzl.zzaf().zzw(p23.zzch)) {
                                        v22_1 = v22_1.zzq();
                                        this.zzl.zzej().zzaw(p23.packageName);
                                    }
                                    v22_1 = v22_1.zzq();
                                    v22_1.zzfy();
                                    android.os.Bundle v7_14 = new android.os.Bundle();
                                    v7_14.putLong("_c", 1);
                                    v7_14.putLong("_r", 1);
                                    v7_14.putLong("_uwa", 0);
                                    v7_14.putLong("_pfo", 0);
                                    long v3_17 = v18;
                                    v7_14.putLong(v3_17, 0);
                                    v7_14.putLong(v9, 0);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v7_14.putLong("_et", 1);
                                    }
                                    if ((this.zzl.zzaf().zzs(p23.packageName)) && (p23.zzdr)) {
                                        v7_14.putLong("_dac", 1);
                                    }
                                    if (this.zzl.getContext().getPackageManager() != null) {
                                        try {
                                            int v0_34 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getPackageInfo(p23.packageName, 0);
                                        } catch (int v0_35) {
                                            this.zzl.zzad().zzda().zza("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_35);
                                            v0_34 = 0;
                                        }
                                        if ((v0_34 != 0) && (v0_34.firstInstallTime != 0)) {
                                            int v0_37;
                                            if (v0_34.firstInstallTime == v0_34.lastUpdateTime) {
                                                v0_37 = 1;
                                            } else {
                                                v7_14.putLong("_uwa", 1);
                                                v0_37 = 0;
                                            }
                                            long v14_25;
                                            com.google.android.gms.measurement.internal.zzga v6_0 = new com.google.android.gms.measurement.internal.zzga;
                                            if (v0_37 == 0) {
                                                v14_25 = 0;
                                            } else {
                                                v14_25 = 1;
                                            }
                                            v6_0("_fi", v10_6, Long.valueOf(v14_25), "auto");
                                            this.zzb(v6_0, p23);
                                        }
                                        try {
                                            int v0_41 = com.google.android.gms.common.wrappers.Wrappers.packageManager(this.zzl.getContext()).getApplicationInfo(p23.packageName, 0);
                                        } catch (int v0_42) {
                                            this.zzl.zzad().zzda().zza("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName), v0_42);
                                            v0_41 = 0;
                                        }
                                        if (v0_41 != 0) {
                                            if ((v4_0 & v0_41.flags) != 0) {
                                                v7_14.putLong(v3_17, 1);
                                            }
                                            if ((v0_41.flags & 128) != 0) {
                                                v7_14.putLong(v9, 1);
                                            }
                                        }
                                    } else {
                                        this.zzl.zzad().zzda().zza("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.measurement.internal.zzau.zzao(p23.packageName));
                                    }
                                    int v0_48 = v22_1.zzdo();
                                    long v3_20 = p23.packageName;
                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v3_20);
                                    v0_48.zzq();
                                    v0_48.zzah();
                                    long v3_21 = v0_48.zzj(v3_20, "first_open_count");
                                    if (v3_21 >= 0) {
                                        v7_14.putLong("_pfo", v3_21);
                                    }
                                    v0_19 = new com.google.android.gms.measurement.internal.zzaj;
                                    v0_19("_f", new com.google.android.gms.measurement.internal.zzag(v7_14), "auto", v10_6);
                                }
                                if (!this.zzl.zzaf().zze(p23.packageName, com.google.android.gms.measurement.internal.zzal.zzim)) {
                                    int v0_54 = new android.os.Bundle();
                                    v0_54.putLong("_et", 1);
                                    if (this.zzl.zzaf().zzac(p23.packageName)) {
                                        v0_54.putLong("_fr", 1);
                                    }
                                    v3_13 = new com.google.android.gms.measurement.internal.zzaj;
                                    v3_13("_e", new com.google.android.gms.measurement.internal.zzag(v0_54), "auto", v10_6);
                                }
                            }
                            v22_1.zzdo().setTransactionSuccessful();
                            v22_1.zzdo().endTransaction();
                            return;
                        } else {
                            String v8_23 = new android.os.Bundle();
                            v8_23.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_23), "auto", v10_6);
                        }
                    } else {
                        if (v3_6.zzat() == p23.zzco) {
                        } else {
                            String v8_26 = new android.os.Bundle();
                            v8_26.putString("_pv", v3_6.zzas());
                            v0_5 = new com.google.android.gms.measurement.internal.zzaj;
                            v0_5("_au", new com.google.android.gms.measurement.internal.zzag(v8_26), "auto", v10_6);
                        }
                    }
                    this.zzc(v0_5, p23);
                }
            } else {
                v22_1.zzg(p23);
                return;
            }
        } else {
            return;
        }
    }

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


    final void zzd(com.google.android.gms.measurement.internal.zzm p12)
    {
        if (this.zzsn != null) {
            this.zzso = new java.util.ArrayList();
            this.zzso.addAll(this.zzsn);
        }
        boolean v1_1 = this.zzdo();
        String v2_0 = p12.packageName;
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_0);
        v1_1.zzq();
        v1_1.zzah();
        try {
            String v3_0 = v1_1.getWritableDatabase();
            String v4_1 = new String[1];
            v4_1[0] = v2_0;
            boolean v6_10 = (((((((((v3_0.delete("apps", "app_id=?", v4_1) + 0) + v3_0.delete("events", "app_id=?", v4_1)) + v3_0.delete("user_attributes", "app_id=?", v4_1)) + v3_0.delete("conditional_properties", "app_id=?", v4_1)) + v3_0.delete("raw_events", "app_id=?", v4_1)) + v3_0.delete("raw_events_metadata", "app_id=?", v4_1)) + v3_0.delete("queue", "app_id=?", v4_1)) + v3_0.delete("audience_filter_values", "app_id=?", v4_1)) + v3_0.delete("main_event_params", "app_id=?", v4_1));
        } catch (com.google.android.gms.measurement.internal.zzm v0_2) {
            v1_1.zzad().zzda().zza("Error resetting analytics data. appId, error", com.google.android.gms.measurement.internal.zzau.zzao(v2_0), v0_2);
            com.google.android.gms.measurement.internal.zzm v0_6 = this.zza(this.zzl.getContext(), p12.packageName, p12.zzch, p12.zzcr, p12.zzct, p12.zzcu, p12.zzdp, p12.zzcv);
            if ((!this.zzl.zzaf().zzs(p12.packageName)) || (p12.zzcr)) {
                this.zzf(v0_6);
            }
            return;
        }
        if (v6_10) {
        } else {
            v1_1.zzad().zzdi().zza("Reset analytics data. app, records", v2_0, Integer.valueOf(v6_10));
        }
    }

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


    final void zza(int p10, Throwable p11, byte[] p12, String p13)
    {
        this.zzq();
        this.zzfy();
        try {
            if (p12 == null) {
                p12 = new byte[0];
            }
        } catch (long v10_14) {
            this.zzsj = 0;
            this.zzgd();
            throw v10_14;
        }
        String v1_3 = this.zzsn;
        this.zzsn = 0;
        int v4 = 1;
        if (((p10 != 200) && (p10 != 204)) || (p11)) {
            this.zzl.zzad().zzdi().zza("Network upload failed. Will retry later. code, error", Integer.valueOf(p10), p11);
            this.zzl.zzae().zzlc.set(this.zzl.zzz().currentTimeMillis());
            if (p10 != 503) {
                if (p10 != 429) {
                    v4 = 0;
                } else {
                }
            }
            if (v4 != 0) {
                this.zzl.zzae().zzld.set(this.zzl.zzz().currentTimeMillis());
            }
            if (this.zzl.zzaf().zzo(p13)) {
                this.zzdo().zza(v1_3);
            }
            this.zzgc();
        } else {
            try {
                this.zzl.zzae().zzlb.set(this.zzl.zzz().currentTimeMillis());
                this.zzl.zzae().zzlc.set(0);
                this.zzgc();
                this.zzl.zzad().zzdi().zza("Successful upload. Got network response. code, size", Integer.valueOf(p10), Integer.valueOf(p12.length));
                this.zzdo().beginTransaction();
            } catch (long v10_7) {
                this.zzl.zzad().zzda().zza("Database error while trying to delete uploaded bundles", v10_7);
                this.zzse = this.zzl.zzz().elapsedRealtime();
                this.zzl.zzad().zzdi().zza("Disable upload, time", Long.valueOf(this.zzse));
            }
            long v10_24 = v1_3.iterator();
            while (v10_24.hasNext()) {
                boolean v11_2 = ((Long) v10_24.next());
                try {
                    com.google.android.gms.measurement.internal.zzaw v12_1 = this.zzdo();
                    String v7_0 = v11_2.longValue();
                    v12_1.zzq();
                    v12_1.zzah();
                    java.util.List v13_1 = v12_1.getWritableDatabase();
                    String v1_0 = new String[1];
                    v1_0[0] = String.valueOf(v7_0);
                    try {
                        if (v13_1.delete("queue", "rowid=?", v1_0) != 1) {
                            throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                        } else {
                        }
                    } catch (java.util.List v13_5) {
                        v12_1.zzad().zzda().zza("Failed to delete a bundle in a queue table", v13_5);
                        throw v13_5;
                    }
                } catch (com.google.android.gms.measurement.internal.zzaw v12_5) {
                    if (this.zzso != null) {
                        if (this.zzso.contains(v11_2)) {
                        }
                    }
                    throw v12_5;
                }
            }
            this.zzdo().setTransactionSuccessful();
            this.zzdo().endTransaction();
            this.zzso = 0;
            if ((!this.zzfu().zzdl()) || (!this.zzgb())) {
                this.zzsp = -1;
                this.zzgc();
            } else {
                this.zzga();
            }
            this.zzse = 0;
        }
        this.zzsj = 0;
        this.zzgd();
        return;
    }

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


    private final boolean zzd(String p44, long p45)
    {
        String v1_0 = this;
        int v2_0 = "_lte";
        this.zzdo().beginTransaction();
        try {
            com.google.android.gms.measurement.internal.zzaw v4_0 = 0;
            android.database.sqlite.SQLiteException v3_2 = new com.google.android.gms.measurement.internal.zzft$zza(this, 0);
            com.google.android.gms.measurement.internal.zzaf v5_90 = this.zzdo();
            com.google.android.gms.measurement.internal.zzaf v6_0 = this.zzsp;
            com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_2);
            v5_90.zzq();
            v5_90.zzah();
            try {
                boolean v11_0;
                Long v15_10 = v5_90.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        boolean v11_21;
                        com.google.android.gms.measurement.internal.zzaw v4_99 = v6_0 cmp -1;
                        if (v4_99 == null) {
                            v11_21 = new String[] {0});
                        } else {
                            v11_21 = new String[2];
                            v11_21[0] = 0;
                            v11_21[1] = String.valueOf(v6_0);
                        }
                        com.google.android.gms.measurement.internal.zzaw v4_106;
                        if (v4_99 == null) {
                            v4_106 = "";
                        } else {
                            v4_106 = " and rowid <= ?";
                        }
                        long v14_19 = new StringBuilder((v4_106.length() + 84));
                        v14_19.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_19.append(v4_106);
                        v14_19.append(" order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v14_19.toString(), v11_21);
                        if (v4_0.moveToFirst()) {
                            v11_0 = v4_0.getString(0);
                            v4_0.close();
                            v4_0 = 0;
                            try {
                                Object v9_7 = new String[2];
                                v9_7[0] = v4_0;
                                v9_7[1] = v11_0;
                                boolean v10_7 = v15_10;
                                Boolean v8_0 = v15_10.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v9_7, 0, 0, "rowid", "2");
                            } catch (android.database.sqlite.SQLiteException v0_1) {
                                String v1_15 = v0_1;
                                if (v8_0 != null) {
                                    v8_0.close();
                                }
                                throw v1_15;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                com.google.android.gms.measurement.internal.zzaf v6_1 = v8_0;
                                Boolean v8_3 = v4_0;
                                com.google.android.gms.measurement.internal.zzaw v4_100 = v0_0;
                                try {
                                    v5_90.zzad().zzda().zza("Data loss. Error selecting raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v8_3), v4_100);
                                } catch (android.database.sqlite.SQLiteException v0_5) {
                                    v1_15 = v0_5;
                                    v8_0 = v6_1;
                                }
                                if (v6_1 == null) {
                                    com.google.android.gms.measurement.internal.zzaw v4_104;
                                    if (v3_2.zzsv == null) {
                                        v4_104 = 1;
                                    } else {
                                        if (!v3_2.zzsv.isEmpty()) {
                                            v4_104 = 0;
                                        } else {
                                        }
                                    }
                                    if (v4_104 != null) {
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 0;
                                    } else {
                                        com.google.android.gms.measurement.internal.zzaw v4_98 = v3_2.zzst;
                                        com.google.android.gms.measurement.internal.zzaf v5_52 = new com.google.android.gms.internal.measurement.zzcf[v3_2.zzsv.size()];
                                        v4_98.zzxo = v5_52;
                                        com.google.android.gms.measurement.internal.zzaf v5_47 = this.zzl.zzaf().zzm(v4_98.zzcf);
                                        com.google.android.gms.measurement.internal.zzaf v6_84 = this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzim);
                                        long v7_44 = 0;
                                        Object v9_36 = 0;
                                        boolean v10_33 = 0;
                                        boolean v11_11 = 0;
                                        int v13_7 = 0;
                                        long v14_14 = 0;
                                        while(true) {
                                            Boolean v12_16 = "_et";
                                            int v17_2 = v13_7;
                                            int v18_5 = v14_14;
                                            if (v9_36 >= v3_2.zzsv.size()) {
                                                break;
                                            }
                                            long v23_2;
                                            com.google.android.gms.measurement.internal.zzaf v27_0;
                                            String v28_0;
                                            int v2_23;
                                            com.google.android.gms.measurement.internal.zzaf v6_72;
                                            Boolean v8_18 = ((com.google.android.gms.internal.measurement.zzcf) v3_2.zzsv.get(v9_36));
                                            long v22_1 = v2_0;
                                            if (!this.zzdp().zzk(v3_2.zzst.zzcf, v8_18.name)) {
                                                Boolean v12_14;
                                                long v25_0;
                                                String v29_0;
                                                com.google.android.gms.internal.measurement.zzbt$zzd[] v26_1;
                                                long v30_0;
                                                v23_2 = v9_36;
                                                int v2_12 = this.zzdp().zzl(v3_2.zzst.zzcf, v8_18.name);
                                                if (v2_12 != 0) {
                                                    v26_1 = v4_98;
                                                    v25_0 = v10_33;
                                                    if (v8_18.zzxi == null) {
                                                        boolean v10_5 = new com.google.android.gms.internal.measurement.zzbt$zzd[0];
                                                        v8_18.zzxi = v10_5;
                                                    }
                                                    v27_0 = v6_84;
                                                    com.google.android.gms.measurement.internal.zzaw v4_14 = 0;
                                                    boolean v10_6 = 0;
                                                    Long v15_5 = 0;
                                                    while(true) {
                                                        v28_0 = v5_47;
                                                        if (v4_14 >= v8_18.zzxi.length) {
                                                            break;
                                                        }
                                                        long v30_1;
                                                        com.google.android.gms.measurement.internal.zzaf v6_79 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v8_18.zzxi[v4_14].zzmh()));
                                                        String v29_1 = v11_11;
                                                        if (!"_c".equals(v6_79.getName())) {
                                                            v30_1 = v12_16;
                                                            if ("_r".equals(v6_79.getName())) {
                                                                v6_79.zzaj(1);
                                                                v15_5 = 1;
                                                            }
                                                        } else {
                                                            v30_1 = v12_16;
                                                            v6_79.zzaj(1);
                                                            v10_6 = 1;
                                                        }
                                                        v8_18.zzxi[v4_14] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_79.zzmr()));
                                                        v4_14++;
                                                        v5_47 = v28_0;
                                                        v11_11 = v29_1;
                                                        v12_16 = v30_1;
                                                    }
                                                    v29_0 = v11_11;
                                                    v30_0 = v12_16;
                                                    if ((!v10_6) && (v2_12 != 0)) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as conversion", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_20 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_20[(v4_20.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_c").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_20;
                                                    }
                                                    if (v15_5 == null) {
                                                        this.zzl.zzad().zzdi().zza("Marking event as real-time", this.zzl.zzaa().zzal(v8_18.name));
                                                        com.google.android.gms.measurement.internal.zzaw v4_26 = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) java.util.Arrays.copyOf(v8_18.zzxi, (v8_18.zzxi.length + 1)));
                                                        v4_26[(v4_26.length - 1)] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzd.zzht().zzbw("_r").zzaj(1).zzmr()));
                                                        v8_18.zzxi = v4_26;
                                                    }
                                                    v12_14 = v7_44;
                                                    if (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 0, 0, 1).zzep <= ((long) this.zzl.zzaf().zzi(v3_2.zzst.zzcf))) {
                                                        v17_2 = 1;
                                                    } else {
                                                        com.google.android.gms.measurement.internal.zzaw v4_34 = 0;
                                                        while (v4_34 < v8_18.zzxi.length) {
                                                            if (!"_r".equals(v8_18.zzxi[v4_34].getName())) {
                                                                v4_34++;
                                                            } else {
                                                                com.google.android.gms.measurement.internal.zzaf v5_26 = new com.google.android.gms.internal.measurement.zzbt$zzd[(v8_18.zzxi.length - 1)];
                                                                if (v4_34 > null) {
                                                                    System.arraycopy(v8_18.zzxi, 0, v5_26, 0, v4_34);
                                                                }
                                                                if (v4_34 < v5_26.length) {
                                                                    System.arraycopy(v8_18.zzxi, (v4_34 + 1), v5_26, v4_34, (v5_26.length - v4_34));
                                                                }
                                                                v8_18.zzxi = v5_26;
                                                                break;
                                                            }
                                                        }
                                                    }
                                                    if ((com.google.android.gms.measurement.internal.zzgd.zzbm(v8_18.name)) && ((v2_12 != 0) && (this.zzdo().zza(this.zzfz(), v3_2.zzst.zzcf, 0, 0, 1, 0, 0).zzen > ((long) this.zzl.zzaf().zzb(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzgq))))) {
                                                        this.zzl.zzad().zzdd().zza("Too many conversions. Not logging as conversion. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                        com.google.android.gms.measurement.internal.zzaw v4_44 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v5_28 = 0;
                                                        com.google.android.gms.measurement.internal.zzaf v6_53 = 0;
                                                        long v7_33 = -1;
                                                        while (v4_44 < v8_18.zzxi.length) {
                                                            boolean v10_39 = v8_18.zzxi[v4_44];
                                                            if (!"_c".equals(v10_39.getName())) {
                                                                if ("_err".equals(v10_39.getName())) {
                                                                    v5_28 = 1;
                                                                }
                                                            } else {
                                                                v6_53 = ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v10_39.zzmh()));
                                                                v7_33 = v4_44;
                                                            }
                                                            v4_44++;
                                                        }
                                                        if ((v5_28 == null) || (v6_53 == null)) {
                                                            if (v6_53 == null) {
                                                                this.zzl.zzad().zzda().zza("Did not find conversion parameter. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                            } else {
                                                                v8_18.zzxi[v7_33] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) ((com.google.android.gms.internal.measurement.zzbt$zzd$zza) ((com.google.android.gms.internal.measurement.zzez$zza) v6_53.clone())).zzbw("_err").zzaj(10).zzmr()));
                                                            }
                                                        } else {
                                                            com.google.android.gms.measurement.internal.zzaw v4_56 = v8_18.zzxi;
                                                            long v7_35 = new com.google.android.gms.internal.measurement.zzbt$zzd[1];
                                                            v7_35[0] = ((com.google.android.gms.internal.measurement.zzbt$zzd) ((com.google.android.gms.internal.measurement.zzez) v6_53.zzmr()));
                                                            v8_18.zzxi = ((com.google.android.gms.internal.measurement.zzbt$zzd[]) com.google.android.gms.common.util.ArrayUtils.removeAll(v4_56, v7_35));
                                                        }
                                                    }
                                                } else {
                                                    com.google.android.gms.measurement.internal.zzaw v4_4;
                                                    this.zzdm();
                                                    Long v15_4 = v8_18.name;
                                                    com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v15_4);
                                                    v25_0 = v10_33;
                                                    boolean v10_2 = v15_4.hashCode();
                                                    v26_1 = v4_98;
                                                    if (v10_2 == 94660) {
                                                        if (!v15_4.equals("_in")) {
                                                            v4_4 = -1;
                                                        } else {
                                                            v4_4 = 0;
                                                        }
                                                    } else {
                                                        if (v10_2 == 95025) {
                                                            if (!v15_4.equals("_ug")) {
                                                            } else {
                                                                v4_4 = 2;
                                                            }
                                                        } else {
                                                            if (v10_2 == 95027) {
                                                                if (!v15_4.equals("_ui")) {
                                                                } else {
                                                                    v4_4 = 1;
                                                                }
                                                            } else {
                                                            }
                                                        }
                                                    }
                                                    if ((v4_4 == null) || ((v4_4 == 1) || (v4_4 == 2))) {
                                                        com.google.android.gms.measurement.internal.zzaw v4_11 = 1;
                                                    } else {
                                                        v4_11 = 0;
                                                    }
                                                    if (v4_11 == null) {
                                                        v28_0 = v5_47;
                                                        v27_0 = v6_84;
                                                        v29_0 = v11_11;
                                                        v30_0 = "_et";
                                                        v12_14 = v7_44;
                                                    } else {
                                                    }
                                                }
                                                if ((!this.zzl.zzaf().zzv(v3_2.zzst.zzcf)) || (v2_12 == 0)) {
                                                } else {
                                                    int v2_13 = v8_18.zzxi;
                                                    com.google.android.gms.measurement.internal.zzaw v4_62 = 0;
                                                    com.google.android.gms.measurement.internal.zzaf v5_38 = -1;
                                                    com.google.android.gms.measurement.internal.zzaf v6_58 = -1;
                                                    while (v4_62 < v2_13.length) {
                                                        if (!"value".equals(v2_13[v4_62].getName())) {
                                                            if ("currency".equals(v2_13[v4_62].getName())) {
                                                                v6_58 = v4_62;
                                                            }
                                                        } else {
                                                            v5_38 = v4_62;
                                                        }
                                                        v4_62++;
                                                    }
                                                    if (v5_38 == -1) {
                                                    } else {
                                                        if ((v2_13[v5_38].zzhn()) || (v2_13[v5_38].zzhq())) {
                                                            com.google.android.gms.measurement.internal.zzaw v4_71;
                                                            if (v6_58 != -1) {
                                                                com.google.android.gms.measurement.internal.zzaw v4_70 = v2_13[v6_58].zzhl();
                                                                if (v4_70.length() == 3) {
                                                                    com.google.android.gms.measurement.internal.zzaf v6_60 = 0;
                                                                    while (v6_60 < v4_70.length()) {
                                                                        boolean v10_31 = v4_70.codePointAt(v6_60);
                                                                        if (Character.isLetter(v10_31)) {
                                                                            v6_60 += Character.charCount(v10_31);
                                                                        } else {
                                                                        }
                                                                    }
                                                                    v4_71 = 0;
                                                                    if (v4_71 != null) {
                                                                        this.zzl.zzad().zzdf().zzaq("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter.");
                                                                        v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 19, "currency");
                                                                    }
                                                                    v8_18.zzxi = v2_13;
                                                                    com.google.android.gms.measurement.internal.zzaw v4_84;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_44;
                                                                    if (!this.zzl.zzaf().zze(v3_2.zzst.zzcf, com.google.android.gms.measurement.internal.zzal.zzil)) {
                                                                        v2_23 = v12_14;
                                                                        v5_44 = v29_0;
                                                                        v4_84 = v30_0;
                                                                    } else {
                                                                        if (!"_e".equals(v8_18.name)) {
                                                                            v2_23 = v12_14;
                                                                            if (!"_vs".equals(v8_18.name)) {
                                                                            } else {
                                                                                this.zzdm();
                                                                                v4_84 = v30_0;
                                                                                if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, v4_84) != null) {
                                                                                    v5_44 = v29_0;
                                                                                    if ((v28_0 == null) || ((v27_0 != null) || (!"_e".equals(v8_18.name)))) {
                                                                                        v14_14 = v18_5;
                                                                                    } else {
                                                                                        com.google.android.gms.measurement.internal.zzaf v6_71;
                                                                                        com.google.android.gms.measurement.internal.zzaw v4_94;
                                                                                        Object v9_25;
                                                                                        if (v8_18.zzxi == null) {
                                                                                            v4_94 = this.zzl.zzad().zzdd();
                                                                                            v6_71 = "Engagement event does not contain any parameters. appId";
                                                                                            v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                        } else {
                                                                                            if (v8_18.zzxi.length != 0) {
                                                                                                this.zzdm();
                                                                                                com.google.android.gms.measurement.internal.zzaw v4_91 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v8_18, v4_84));
                                                                                                if (v4_91 != null) {
                                                                                                    v14_14 = (v18_5 + v4_91.longValue());
                                                                                                    v6_72 = v26_1;
                                                                                                    v10_33 = (v25_0 + 1);
                                                                                                    v6_72.zzxo[v25_0] = v8_18;
                                                                                                    v11_11 = v5_44;
                                                                                                    v13_7 = v17_2;
                                                                                                    v9_36 = (v23_2 + 1);
                                                                                                    v7_44 = v2_23;
                                                                                                    v4_98 = v6_72;
                                                                                                    v2_0 = v22_1;
                                                                                                    v6_84 = v27_0;
                                                                                                    v5_47 = v28_0;
                                                                                                } else {
                                                                                                    v4_94 = this.zzl.zzad().zzdd();
                                                                                                    v6_71 = "Engagement event does not include duration. appId";
                                                                                                    v9_25 = com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf);
                                                                                                }
                                                                                            } else {
                                                                                            }
                                                                                        }
                                                                                        v4_94.zza(v6_71, v9_25);
                                                                                    }
                                                                                } else {
                                                                                    if (v29_0 == null) {
                                                                                        v5_44 = v29_0;
                                                                                    } else {
                                                                                        v5_44 = v29_0;
                                                                                        if ((Math.abs((v5_44.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v5_44, v8_18))) {
                                                                                            v2_23 = 0;
                                                                                            v5_44 = 0;
                                                                                        }
                                                                                    }
                                                                                    v2_23 = v8_18;
                                                                                }
                                                                            }
                                                                        } else {
                                                                            this.zzdm();
                                                                            if (com.google.android.gms.measurement.internal.zzfz.zza(v8_18, "_fr") != null) {
                                                                            } else {
                                                                                if (v12_14 == null) {
                                                                                    v2_23 = v12_14;
                                                                                } else {
                                                                                    v2_23 = v12_14;
                                                                                    if ((Math.abs((v2_23.zzxj.longValue() - v8_18.zzxj.longValue())) <= 1000) && (this.zza(v8_18, v2_23))) {
                                                                                        v4_84 = v30_0;
                                                                                    }
                                                                                }
                                                                                v5_44 = v8_18;
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                                v4_71 = 1;
                                                            } else {
                                                                v4_71 = 1;
                                                            }
                                                        } else {
                                                            this.zzl.zzad().zzdf().zzaq("Value must be specified with a numeric type.");
                                                            v2_13 = com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(com.google.android.gms.measurement.internal.zzft.zza(v2_13, v5_38), "_c"), 18, "value");
                                                        }
                                                    }
                                                }
                                            } else {
                                                int v2_37;
                                                v23_2 = v9_36;
                                                this.zzl.zzad().zzdd().zza("Dropping blacklisted raw event. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf), this.zzl.zzaa().zzal(v8_18.name));
                                                if (this.zzdp().zzbe(v3_2.zzst.zzcf)) {
                                                    v2_37 = 1;
                                                } else {
                                                    if (!this.zzdp().zzbf(v3_2.zzst.zzcf)) {
                                                        v2_37 = 0;
                                                    } else {
                                                    }
                                                }
                                                if ((v2_37 == 0) && (!"_err".equals(v8_18.name))) {
                                                    this.zzl.zzab().zza(v3_2.zzst.zzcf, 11, "_ev", v8_18.name, 0);
                                                }
                                                v28_0 = v5_47;
                                                v27_0 = v6_84;
                                                v2_23 = v7_44;
                                                v13_7 = v17_2;
                                                v14_14 = v18_5;
                                                v6_72 = v4_98;
                                            }
                                        }
                                        long v14_6;
                                        boolean v10_1;
                                        long v22_4 = v2_0;
                                        String v28_2 = v5_47;
                                        long v25_2 = v10_33;
                                        com.google.android.gms.measurement.internal.zzaf v6_9 = v4_98;
                                        if (v6_84 == null) {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                        } else {
                                            v14_6 = v18_5;
                                            v10_1 = v25_2;
                                            int v2_8 = 0;
                                            while (v2_8 < v10_1) {
                                                com.google.android.gms.measurement.internal.zzaf v5_17 = v6_9.zzxo[v2_8];
                                                if (!"_e".equals(v5_17.name)) {
                                                    if (v28_2 != null) {
                                                        this.zzdm();
                                                        com.google.android.gms.measurement.internal.zzaf v5_18 = com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_et");
                                                        if (v5_18 != null) {
                                                            com.google.android.gms.measurement.internal.zzaf v5_19;
                                                            if (!v5_18.zzhn()) {
                                                                v5_19 = 0;
                                                            } else {
                                                                v5_19 = Long.valueOf(v5_18.zzho());
                                                            }
                                                            if ((v5_19 != null) && (v5_19.longValue() > 0)) {
                                                                v14_6 += v5_19.longValue();
                                                            }
                                                        }
                                                    }
                                                } else {
                                                    this.zzdm();
                                                    if (com.google.android.gms.measurement.internal.zzfz.zza(v5_17, "_fr") == null) {
                                                    } else {
                                                        System.arraycopy(v6_9.zzxo, (v2_8 + 1), v6_9.zzxo, v2_8, ((v10_1 - v2_8) - 1));
                                                        v10_1--;
                                                        v2_8--;
                                                    }
                                                }
                                                v2_8++;
                                            }
                                        }
                                        if (v10_1 < v3_2.zzsv.size()) {
                                            v6_9.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v6_9.zzxo, v10_1));
                                        }
                                        if (v28_2 != null) {
                                            int v2_53;
                                            com.google.android.gms.measurement.internal.zzaf v5_55 = v22_4;
                                            int v2_50 = this.zzdo().zze(v6_9.zzcf, v5_55);
                                            if (v2_50 == 0) {
                                                v2_53 = new com.google.android.gms.measurement.internal.zzgc;
                                                v2_53(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf(v14_6));
                                            } else {
                                                if (v2_50.value != null) {
                                                    com.google.android.gms.measurement.internal.zzaw v4_109 = new com.google.android.gms.measurement.internal.zzgc;
                                                    v4_109(v6_9.zzcf, "auto", "_lte", this.zzl.zzz().currentTimeMillis(), Long.valueOf((((Long) v2_50.value).longValue() + v14_6)));
                                                    v2_53 = v4_109;
                                                } else {
                                                }
                                            }
                                            com.google.android.gms.measurement.internal.zzaw v4_117 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby(v5_55).zzan(this.zzl.zzz().currentTimeMillis()).zzao(((Long) v2_53.value).longValue()).zzmr()));
                                            long v7_69 = 0;
                                            while (v7_69 < v6_9.zzxp.length) {
                                                if (!v5_55.equals(v6_9.zzxp[v7_69].getName())) {
                                                    v7_69++;
                                                } else {
                                                    v6_9.zzxp[v7_69] = v4_117;
                                                    com.google.android.gms.measurement.internal.zzaf v5_56 = 1;
                                                }
                                                if (v5_56 == null) {
                                                    v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                    v6_9.zzxp[(v3_2.zzst.zzxp.length - 1)] = v4_117;
                                                }
                                                if (v14_6 > 0) {
                                                    this.zzdo().zza(v2_53);
                                                    this.zzl.zzad().zzdh().zza("Updated lifetime engagement user property with value. Value", v2_53.value);
                                                }
                                            }
                                            v5_56 = 0;
                                        }
                                        if (this.zzl.zzaf().zze(v6_9.zzcf, com.google.android.gms.measurement.internal.zzal.zzin)) {
                                            int v2_58 = this.zzdm();
                                            v2_58.zzad().zzdi().zzaq("Checking account type status for ad personalization signals");
                                            if (v2_58.zzdp().zzbc(v6_9.zzcf)) {
                                                com.google.android.gms.measurement.internal.zzaw v4_131 = v2_58.zzdo().zzae(v6_9.zzcf);
                                                if ((v4_131 != null) && ((v4_131.zzbl()) && (v2_58.zzy().zzcs()))) {
                                                    v2_58.zzad().zzdh().zzaq("Turning off ad personalization due to account type");
                                                    int v2_64 = ((com.google.android.gms.internal.measurement.zzbt$zzh) ((com.google.android.gms.internal.measurement.zzez) com.google.android.gms.internal.measurement.zzbt$zzh.zziu().zzby("_npa").zzan(v2_58.zzy().zzcq()).zzao(1).zzmr()));
                                                    com.google.android.gms.measurement.internal.zzaw v4_140 = 0;
                                                    while (v4_140 < v6_9.zzxp.length) {
                                                        if (!"_npa".equals(v6_9.zzxp[v4_140].getName())) {
                                                            v4_140++;
                                                        } else {
                                                            v6_9.zzxp[v4_140] = v2_64;
                                                            com.google.android.gms.measurement.internal.zzaw v4_141 = 1;
                                                        }
                                                        if (v4_141 == null) {
                                                            v6_9.zzxp = ((com.google.android.gms.internal.measurement.zzbt$zzh[]) java.util.Arrays.copyOf(v6_9.zzxp, (v6_9.zzxp.length + 1)));
                                                            v6_9.zzxp[(v6_9.zzxp.length - 1)] = v2_64;
                                                        }
                                                    }
                                                    v4_141 = 0;
                                                }
                                            }
                                        }
                                        String v1_19;
                                        int v2_65 = v6_9.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_146 = v6_9.zzxp;
                                        com.google.android.gms.measurement.internal.zzaf v5_80 = v6_9.zzxo;
                                        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v2_65);
                                        v6_9.zzyg = this.zzdn().zza(v2_65, v5_80, v4_146);
                                        try {
                                            if (!this.zzl.zzaf().zzl(v3_2.zzst.zzcf)) {
                                                v1_19 = v6_9;
                                            } else {
                                                int v2_7 = new java.util.HashMap();
                                                com.google.android.gms.measurement.internal.zzaw v4_151 = new com.google.android.gms.internal.measurement.zzcf[v6_9.zzxo.length];
                                                com.google.android.gms.measurement.internal.zzaf v5_15 = this.zzl.zzab().zzgl();
                                                long v7_18 = v6_9.zzxo;
                                                Boolean v8_14 = v7_18.length;
                                                Object v9_3 = 0;
                                                boolean v10_0 = 0;
                                                while (v9_3 < v8_14) {
                                                    Object v9_0;
                                                    int v19_0;
                                                    com.google.android.gms.internal.measurement.zzbt$zzd[] v26_0;
                                                    int v18_0;
                                                    long v22_0;
                                                    boolean v11_25 = v7_18[v9_3];
                                                    if (!v11_25.name.equals("_ep")) {
                                                        v18_0 = v7_18;
                                                        com.google.android.gms.measurement.internal.zzaf v6_131;
                                                        long v23_4;
                                                        Boolean v12_24 = this.zzdp().zzbd(v3_2.zzst.zzcf);
                                                        v1_0.zzl.zzab();
                                                        long v14_23 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxj.longValue(), v12_24);
                                                        v22_0 = v8_14;
                                                        Boolean v8_50 = Long.valueOf(1);
                                                        if ((!android.text.TextUtils.isEmpty("_dbg")) && (v8_50 != null)) {
                                                            v26_0 = v6_9;
                                                            com.google.android.gms.measurement.internal.zzaf v6_117 = v11_25.zzxi;
                                                            v19_0 = v9_3;
                                                            Object v9_47 = v6_117.length;
                                                            v23_4 = v12_24;
                                                            Boolean v12_25 = 0;
                                                            while (v12_25 < v9_47) {
                                                                int v13_17 = v6_117[v12_25];
                                                                if (!"_dbg".equals(v13_17.getName())) {
                                                                    v12_25++;
                                                                } else {
                                                                    if (((!(v8_50 instanceof Long)) || (!v8_50.equals(Long.valueOf(v13_17.zzho())))) && (((!(v8_50 instanceof String)) || (!v8_50.equals(v13_17.zzhl()))) && ((!(v8_50 instanceof Double)) || (!v8_50.equals(Double.valueOf(v13_17.zzhr())))))) {
                                                                        break;
                                                                    }
                                                                    v6_131 = 1;
                                                                }
                                                            }
                                                            v6_131 = 0;
                                                        } else {
                                                            v26_0 = v6_9;
                                                            v19_0 = v9_3;
                                                            v23_4 = v12_24;
                                                        }
                                                        int v13_18;
                                                        if (v6_131 != null) {
                                                            v13_18 = 1;
                                                        } else {
                                                            v13_18 = this.zzdp().zzm(v3_2.zzst.zzcf, v11_25.name);
                                                        }
                                                        if (v13_18 > 0) {
                                                            com.google.android.gms.measurement.internal.zzaf v6_2 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v11_25.name));
                                                            if (v6_2 == null) {
                                                                v6_2 = this.zzdo().zzc(v3_2.zzst.zzcf, v11_25.name);
                                                                if (v6_2 == null) {
                                                                    v1_0.zzl.zzad().zzdd().zza("Event being bundled has no eventAggregate. appId, eventName", v3_2.zzst.zzcf, v11_25.name);
                                                                    v6_2 = new com.google.android.gms.measurement.internal.zzaf;
                                                                    v6_2(v3_2.zzst.zzcf, v11_25.name, 1, 1, v11_25.zzxj.longValue(), 0, 0, 0, 0, 0);
                                                                }
                                                            }
                                                            Boolean v8_56;
                                                            this.zzdm();
                                                            long v7_117 = ((Long) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_eid"));
                                                            if (v7_117 == 0) {
                                                                v8_56 = 0;
                                                            } else {
                                                                v8_56 = 1;
                                                            }
                                                            Boolean v8_57 = Boolean.valueOf(v8_56);
                                                            if (v13_18 != 1) {
                                                                if (v5_15.nextInt(v13_18) != 0) {
                                                                    p44 = v5_15;
                                                                    com.google.android.gms.measurement.internal.zzaf v5_0;
                                                                    Boolean v12_0;
                                                                    String v1_5;
                                                                    if (!v1_0.zzl.zzaf().zzx(v3_2.zzst.zzcf)) {
                                                                        v9_0 = v2_7;
                                                                        v5_0 = v7_117;
                                                                        v12_0 = v8_57;
                                                                        if (Math.abs((v11_25.zzxj.longValue() - v6_2.zzfh)) < 86400000) {
                                                                            v1_5 = 0;
                                                                        } else {
                                                                            v1_5 = 1;
                                                                        }
                                                                    } else {
                                                                        long v23_1;
                                                                        if (v6_2.zzfi == null) {
                                                                            v1_0.zzl.zzab();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                            v23_1 = com.google.android.gms.measurement.internal.zzgd.zzc(v11_25.zzxk.longValue(), v23_4);
                                                                        } else {
                                                                            v23_1 = v6_2.zzfi.longValue();
                                                                            v9_0 = v2_7;
                                                                            v5_0 = v7_117;
                                                                            v12_0 = v8_57;
                                                                        }
                                                                        if (v23_1 == v14_23) {
                                                                        }
                                                                    }
                                                                    if (v1_5 == null) {
                                                                        if (v12_0.booleanValue()) {
                                                                            v9_0.put(v11_25.name, v6_2.zza(v5_0, 0, 0));
                                                                        }
                                                                    } else {
                                                                        this.zzdm();
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                                        this.zzdm();
                                                                        long v7_6 = ((long) v13_18);
                                                                        v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v7_6));
                                                                        String v1_12 = (v10_0 + 1);
                                                                        v4_151[v10_0] = v11_25;
                                                                        if (v12_0.booleanValue()) {
                                                                            v6_2 = v6_2.zza(0, Long.valueOf(v7_6), Boolean.valueOf(1));
                                                                        }
                                                                        v9_0.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                        v10_0 = v1_12;
                                                                    }
                                                                } else {
                                                                    this.zzdm();
                                                                    Boolean v12_1 = ((long) v13_18);
                                                                    p44 = v5_15;
                                                                    v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", Long.valueOf(v12_1));
                                                                    com.google.android.gms.measurement.internal.zzaf v5_14 = (v10_0 + 1);
                                                                    v4_151[v10_0] = v11_25;
                                                                    if (v8_57.booleanValue()) {
                                                                        v6_2 = v6_2.zza(0, Long.valueOf(v12_1), 0);
                                                                    }
                                                                    v2_7.put(v11_25.name, v6_2.zza(v11_25.zzxj.longValue(), v14_23));
                                                                    v9_0 = v2_7;
                                                                    v10_0 = v5_14;
                                                                }
                                                            } else {
                                                                long v7_13 = (v10_0 + 1);
                                                                v4_151[v10_0] = v11_25;
                                                                if ((v8_57.booleanValue()) && ((v6_2.zzfj != null) || ((v6_2.zzfk != null) || (v6_2.zzfl != null)))) {
                                                                    v2_7.put(v11_25.name, v6_2.zza(0, 0, 0));
                                                                }
                                                                v9_0 = v2_7;
                                                                p44 = v5_15;
                                                                v10_0 = v7_13;
                                                            }
                                                        } else {
                                                            v1_0.zzl.zzad().zzdd().zza("Sample rate must be positive. event, rate", v11_25.name, Integer.valueOf(v13_18));
                                                            com.google.android.gms.measurement.internal.zzaf v6_8 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            v9_0 = v2_7;
                                                            p44 = v5_15;
                                                            v10_0 = v6_8;
                                                        }
                                                    } else {
                                                        this.zzdm();
                                                        Boolean v12_4 = ((String) com.google.android.gms.measurement.internal.zzfz.zzb(v11_25, "_en"));
                                                        int v13_1 = ((com.google.android.gms.measurement.internal.zzaf) v2_7.get(v12_4));
                                                        if (v13_1 == 0) {
                                                            v13_1 = this.zzdo().zzc(v3_2.zzst.zzcf, v12_4);
                                                            v2_7.put(v12_4, v13_1);
                                                        }
                                                        if (v13_1.zzfj != null) {
                                                            v18_0 = v7_18;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                        } else {
                                                            if (v13_1.zzfk.longValue() > 1) {
                                                                this.zzdm();
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_sr", v13_1.zzfk);
                                                            }
                                                            if ((v13_1.zzfl == null) || (!v13_1.zzfl.booleanValue())) {
                                                                v18_0 = v7_18;
                                                            } else {
                                                                this.zzdm();
                                                                v18_0 = v7_18;
                                                                v11_25.zzxi = com.google.android.gms.measurement.internal.zzfz.zza(v11_25.zzxi, "_efs", Long.valueOf(1));
                                                            }
                                                            long v7_17 = (v10_0 + 1);
                                                            v4_151[v10_0] = v11_25;
                                                            p44 = v5_15;
                                                            v26_0 = v6_9;
                                                            v10_0 = v7_17;
                                                        }
                                                        v22_0 = v8_14;
                                                        v19_0 = v9_3;
                                                        v9_0 = v2_7;
                                                    }
                                                    v5_15 = p44;
                                                    v2_7 = v9_0;
                                                    v7_18 = v18_0;
                                                    v8_14 = v22_0;
                                                    v6_9 = v26_0;
                                                    v9_3 = (v19_0 + 1);
                                                    v1_0 = this;
                                                }
                                                Object v9_44 = v2_7;
                                                v1_19 = v6_9;
                                                if (v10_0 < v1_19.zzxo.length) {
                                                    v1_19.zzxo = ((com.google.android.gms.internal.measurement.zzcf[]) java.util.Arrays.copyOf(v4_151, v10_0));
                                                }
                                                int v2_76 = v9_44.entrySet().iterator();
                                                while (v2_76.hasNext()) {
                                                    this.zzdo().zza(((com.google.android.gms.measurement.internal.zzaf) ((java.util.Map$Entry) v2_76.next()).getValue()));
                                                }
                                            }
                                        } catch (android.database.sqlite.SQLiteException v0_2) {
                                            String v1_14 = v0_2;
                                            this.zzdo().endTransaction();
                                            throw v1_14;
                                        }
                                        v1_19.zzxr = Long.valueOf(nan);
                                        v1_19.zzxs = Long.valueOf(-0.0);
                                        int v2_79 = 0;
                                        while (v2_79 < v1_19.zzxo.length) {
                                            com.google.android.gms.measurement.internal.zzaw v4_184 = v1_19.zzxo[v2_79];
                                            if (v4_184.zzxj.longValue() < v1_19.zzxr.longValue()) {
                                                v1_19.zzxr = v4_184.zzxj;
                                            }
                                            if (v4_184.zzxj.longValue() > v1_19.zzxs.longValue()) {
                                                v1_19.zzxs = v4_184.zzxj;
                                            }
                                            v2_79++;
                                        }
                                        com.google.android.gms.measurement.internal.zzaf v5_83;
                                        int v2_81 = v3_2.zzst.zzcf;
                                        com.google.android.gms.measurement.internal.zzaw v4_158 = this.zzdo().zzae(v2_81);
                                        if (v4_158 != null) {
                                            v5_83 = this;
                                            if (v1_19.zzxo.length > 0) {
                                                Boolean v8_46;
                                                com.google.android.gms.measurement.internal.zzaf v6_93 = v4_158.zzar();
                                                if (v6_93 == 0) {
                                                    v8_46 = 0;
                                                } else {
                                                    v8_46 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxu = v8_46;
                                                Boolean v8_47 = v4_158.zzaq();
                                                if (v8_47 != 0) {
                                                    v6_93 = v8_47;
                                                } else {
                                                }
                                                com.google.android.gms.measurement.internal.zzaf v6_94;
                                                if (v6_93 == 0) {
                                                    v6_94 = 0;
                                                } else {
                                                    v6_94 = Long.valueOf(v6_93);
                                                }
                                                v1_19.zzxt = v6_94;
                                                v4_158.zzbb();
                                                v1_19.zzye = Integer.valueOf(((int) v4_158.zzay()));
                                                v4_158.zze(v1_19.zzxr.longValue());
                                                v4_158.zzf(v1_19.zzxs.longValue());
                                                v1_19.zzdn = v4_158.zzbj();
                                                this.zzdo().zza(v4_158);
                                            }
                                        } else {
                                            v5_83 = this;
                                            this.zzl.zzad().zzda().zza("Bundling raw events w/o app info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                        }
                                        if (v1_19.zzxo.length > 0) {
                                            com.google.android.gms.measurement.internal.zzaw v4_167;
                                            v5_83.zzl.zzag();
                                            com.google.android.gms.measurement.internal.zzaw v4_166 = this.zzdp().zzay(v3_2.zzst.zzcf);
                                            if (v4_166 == null) {
                                                if (!android.text.TextUtils.isEmpty(v3_2.zzst.zzch)) {
                                                    v5_83.zzl.zzad().zzdd().zza("Did not find measurement config or missing version info. appId", com.google.android.gms.measurement.internal.zzau.zzao(v3_2.zzst.zzcf));
                                                } else {
                                                    v4_167 = Long.valueOf(-1);
                                                    v1_19.zzyl = v4_167;
                                                }
                                            } else {
                                                if (v4_166.zzxa != null) {
                                                    v4_167 = v4_166.zzxa;
                                                } else {
                                                }
                                            }
                                            this.zzdo().zza(v1_19, v17_2);
                                        }
                                        String v1_20 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_3 = v3_2.zzsu;
                                        com.google.android.gms.common.internal.Preconditions.checkNotNull(v3_3);
                                        v1_20.zzq();
                                        v1_20.zzah();
                                        com.google.android.gms.measurement.internal.zzaw v4_176 = new StringBuilder("rowid in (");
                                        com.google.android.gms.measurement.internal.zzaf v6_110 = 0;
                                        while (v6_110 < v3_3.size()) {
                                            if (v6_110 != null) {
                                                v4_176.append(",");
                                            }
                                            v4_176.append(((Long) v3_3.get(v6_110)).longValue());
                                            v6_110++;
                                        }
                                        v4_176.append(")");
                                        com.google.android.gms.measurement.internal.zzaw v4_178 = v1_20.getWritableDatabase().delete("raw_events", v4_176.toString(), 0);
                                        if (v4_178 != v3_3.size()) {
                                            v1_20.zzad().zzda().zza("Deleted fewer rows from raw events table than expected", Integer.valueOf(v4_178), Integer.valueOf(v3_3.size()));
                                        }
                                        String v1_23 = this.zzdo();
                                        android.database.sqlite.SQLiteException v3_6 = v1_23.getWritableDatabase();
                                        try {
                                            com.google.android.gms.measurement.internal.zzaf v6_116 = new String[2];
                                            v6_116[0] = v2_81;
                                            v6_116[1] = v2_81;
                                            v3_6.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_116);
                                        } catch (android.database.sqlite.SQLiteException v0_6) {
                                            v1_23.zzad().zzda().zza("Failed to remove unused event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v2_81), v0_6);
                                        }
                                        this.zzdo().setTransactionSuccessful();
                                        this.zzdo().endTransaction();
                                        return 1;
                                    }
                                } else {
                                    v6_1.close();
                                }
                            }
                            if (v8_0.moveToFirst()) {
                                try {
                                    Object v9_14 = com.google.android.gms.internal.measurement.zzch.zzf(v8_0.getBlob(0));
                                } catch (android.database.sqlite.SQLiteException v0_3) {
                                    v5_90.zzad().zzda().zza("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0), v0_3);
                                    if (v8_0 == null) {
                                    }
                                }
                                if (v8_0.moveToNext()) {
                                    v5_90.zzad().zzdd().zza("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                }
                                int v18_4;
                                int v17_3;
                                v8_0.close();
                                v3_2.zzb(v9_14);
                                if (v6_0 == -1) {
                                    Object v9_28 = new String[2];
                                    v9_28[0] = v4_0;
                                    v9_28[1] = v11_0;
                                    v17_3 = "app_id = ? and metadata_fingerprint = ?";
                                    v18_4 = v9_28;
                                } else {
                                    long v14_15 = new String[3];
                                    v14_15[0] = v4_0;
                                    v14_15[1] = v11_0;
                                    v14_15[2] = String.valueOf(v6_0);
                                    v17_3 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                    v18_4 = v14_15;
                                }
                                v6_1 = v10_7.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v17_3, v18_4, 0, 0, "rowid", 0);
                                try {
                                    if (!v6_1.moveToFirst()) {
                                        v5_90.zzad().zzdd().zza("Raw event data disappeared while in transaction. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                        if (v6_1 == null) {
                                        }
                                    }
                                } catch (android.database.sqlite.SQLiteException v0_1) {
                                    v8_0 = v6_1;
                                } catch (android.database.sqlite.SQLiteException v0_0) {
                                }
                                do {
                                    long v7_48 = v6_1.getLong(0);
                                    Object v9_39 = com.google.android.gms.internal.measurement.zzcf.zze(v6_1.getBlob(3));
                                    v9_39.name = v6_1.getString(1);
                                    v9_39.zzxj = Long.valueOf(v6_1.getLong(2));
                                    if (v3_2.zza(v7_48, v9_39)) {
                                    } else {
                                        if (v6_1 == null) {
                                        } else {
                                        }
                                    }
                                } while(v6_1.moveToNext());
                                if (v6_1 == null) {
                                }
                            } else {
                                v5_90.zzad().zzda().zza("Raw event metadata record is missing. appId", com.google.android.gms.measurement.internal.zzau.zzao(v4_0));
                                if (v8_0 == null) {
                                }
                            }
                            v8_0.close();
                        } else {
                            if (v4_0 == null) {
                            } else {
                            }
                        }
                    } else {
                        Boolean v8_44;
                        long v14_20 = v6_0 cmp -1;
                        try {
                            if (v14_20 == 0) {
                                v8_44 = new String[1];
                                v8_44[0] = String.valueOf(p45);
                            } else {
                                v8_44 = new String[2];
                                v8_44[0] = String.valueOf(v6_0);
                                v8_44[1] = String.valueOf(p45);
                            }
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v6_1 = 0;
                            v8_3 = 0;
                        }
                        long v14_21;
                        if (v14_20 == 0) {
                            v14_21 = "";
                        } else {
                            v14_21 = "rowid <= ? and ";
                        }
                        boolean v11_24 = new StringBuilder((v14_21.length() + 148));
                        v11_24.append("select app_id, metadata_fingerprint from raw_events where ");
                        v11_24.append(v14_21);
                        v11_24.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v4_0 = v15_10.rawQuery(v11_24.toString(), v8_44);
                        if (v4_0.moveToFirst()) {
                            Boolean v8_2 = v4_0.getString(0);
                            try {
                                v11_0 = v4_0.getString(1);
                                v4_0.close();
                                v8_3 = v4_0;
                                v4_0 = v8_2;
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                v6_1 = v4_0;
                            }
                        } else {
                            if (v4_0 == null) {
                            }
                        }
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v8_0 = v4_0;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    v6_1 = v4_0;
                    v8_3 = 0;
                }
                v4_0.close();
            } catch (android.database.sqlite.SQLiteException v0_1) {
                v8_0 = 0;
            } catch (android.database.sqlite.SQLiteException v0_7) {
                v4_100 = v0_7;
                v6_1 = 0;
                v8_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_2) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

Method com.layer.sdk.internal.lsdke.d.a() calling method android.database.sqlite.SQLiteDatabase.create()


    public ark>com.layer.sdk.internal.lsdke.dark> a()
    {
        if (this.f == null) {
            if (this.e != null) {
                this.f = this.a(this.a, this.b);
                try {
                    this.a(this.f);
                    return this;
                } catch (IllegalStateException v0_1) {
                    if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                        String v3_1 = new StringBuilder();
                        v3_1.append("Filesystem schema management failed: ");
                        v3_1.append(v0_1.getMessage());
                        com.layer.sdk.internal.lsdkk.k.d(ark>com.layer.sdk.internal.lsdke.dark>.h, v3_1.toString(), v0_1);
                    }
                    try {
                        if (this.f != null) {
                            if (this.f.isOpen()) {
                                this.f.close();
                            }
                        }
                    } catch (IllegalStateException v0_6) {
                        if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                            String v2_3 = new StringBuilder();
                            v2_3.append("Failed to close database while retrying schema management: ");
                            v2_3.append(v0_6.getMessage());
                            com.layer.sdk.internal.lsdkk.k.d(ark>com.layer.sdk.internal.lsdke.dark>.h, v2_3.toString(), v0_6);
                        }
                    }
                    if (!ark>com.layer.sdk.internal.lsdke.dark>.a(this.a, this.e)) {
                        String v1_6 = new StringBuilder();
                        v1_6.append("Failed to delete database file \'");
                        v1_6.append(this.e);
                        v1_6.append("\' while recovering from bad schema management");
                        throw new IllegalStateException(v1_6.toString());
                    } else {
                        IllegalStateException v0_15 = this.a(this.a, this.b);
                    }
                }
            } else {
                v0_15 = android.database.sqlite.SQLiteDatabase.create(0);
            }
            this.f = v0_15;
            this.a(this.f);
            return this;
        } else {
            return this;
        }
    }

Method com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.<init>() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    SqlNormalizedCache(com.apollographql.apollo.cache.normalized.RecordFieldJsonAdapter p4, com.apollographql.apollo.cache.normalized.sql.ApolloSqlHelper p5)
    {
        this.allColumns = new String[] {"_id", "key", "record"});
        this.recordFieldAdapter = p4;
        this.dbHelper = p5;
        this.a = p5.getWritableDatabase();
        this.insertStatement = this.a.compileStatement(com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.INSERT_STATEMENT);
        this.updateStatement = this.a.compileStatement(com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.UPDATE_STATEMENT);
        this.deleteStatement = this.a.compileStatement(com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.DELETE_STATEMENT);
        this.deleteAllRecordsStatement = this.a.compileStatement(com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.DELETE_ALL_RECORD_STATEMENT);
        return;
    }

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


    public androidx.sqlite.db.SupportSQLiteStatement compileStatement(String p3)
    {
        return new androidx.sqlite.db.framework.FrameworkSQLiteStatement(this.mDelegate.compileStatement(p3));
    }

Method com.layer.sdk.internal.lsdke.lsdkc.a.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public static Long a(android.database.sqlite.SQLiteDatabase p11, String p12, String p13, String p14, String[] p15)
    {
        Long v1 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = p13;
            int v11_1 = p11.query(p12, v4, p14, p15, 0, 0, 0, 0);
            try {
                if (v11_1.moveToNext()) {
                    v1 = Long.valueOf(v11_1.getLong(0));
                }
            } catch (long v12_1) {
                if (v11_1 != 0) {
                    v11_1.close();
                }
                throw v12_1;
            }
            if (v11_1 != 0) {
                v11_1.close();
            }
            return v1;
        } catch (long v12_1) {
            v11_1 = 0;
        }
    }

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


    final java.util.Map zzi(String p13, String p14)
    {
        this.zzah();
        this.zzq();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new androidx.collection.ArrayMap();
        boolean v1_7 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_7.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzad().zzda().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzau.zzao(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                boolean v1_3 = ((com.google.android.gms.internal.measurement.zzcb) com.google.android.gms.internal.measurement.zziv.zza(new com.google.android.gms.internal.measurement.zzcb(), v14_1.getBlob(1)));
                Integer v2_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v2_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v2_4), v3_5);
                }
                v3_5.add(v1_3);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


    final java.util.Map zzh(String p13, String p14)
    {
        this.zzah();
        this.zzq();
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p13);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p14);
        android.database.sqlite.SQLiteException v0_2 = new androidx.collection.ArrayMap();
        boolean v1_7 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_7.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzad().zzda().zza("Database error querying filters. appId", com.google.android.gms.measurement.internal.zzau.zzao(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                boolean v1_3 = ((com.google.android.gms.internal.measurement.zzby) com.google.android.gms.internal.measurement.zziv.zza(new com.google.android.gms.internal.measurement.zzby(), v14_1.getBlob(1)));
                Integer v2_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v2_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v2_4), v3_5);
                }
                v3_5.add(v1_3);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

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


    public final com.google.android.gms.measurement.internal.zzr zzf(String p30, String p31)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p30);
        com.google.android.gms.common.internal.Preconditions.checkNotEmpty(p31);
        this.zzq();
        this.zzah();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.measurement.internal.zzga v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p30;
            v13[1] = p31;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        Object v5 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.measurement.internal.zzr v0_1) {
                        this.zzad().zzda().zza("Error querying conditional property", com.google.android.gms.measurement.internal.zzau.zzao(p30), this.zzaa().zzan(p31), v0_1);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.measurement.internal.zzaj v22_1 = ((com.google.android.gms.measurement.internal.zzaj) this.zzdm().zza(v9_0.getBlob(5), com.google.android.gms.measurement.internal.zzaj.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.measurement.internal.zzaj v25_1 = ((com.google.android.gms.measurement.internal.zzaj) this.zzdm().zza(v9_0.getBlob(7), com.google.android.gms.measurement.internal.zzaj.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.measurement.internal.zzaj v28_1 = ((com.google.android.gms.measurement.internal.zzaj) this.zzdm().zza(v9_0.getBlob(10), com.google.android.gms.measurement.internal.zzaj.CREATOR));
                    v17 = new com.google.android.gms.measurement.internal.zzga;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.measurement.internal.zzr v0_0 = new com.google.android.gms.measurement.internal.zzr;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzad().zzda().zza("Got multiple records for conditional property, expected one", com.google.android.gms.measurement.internal.zzau.zzao(p30), this.zzaa().zzan(p31));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_0;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.measurement.internal.zzr v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.measurement.internal.zzr v0_1) {
            }
        } catch (com.google.android.gms.measurement.internal.zzr v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzr v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.measurement.internal.zzr v0_2) {
        }
    }

Method androidx.sqlite.db.framework.FrameworkSQLiteDatabase$2.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


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

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


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

Method com.layer.sdk.internal.lsdke.lsdkc.c.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void b(android.database.sqlite.SQLiteDatabase p6, java.util.Collection p7)
    {
        int v0 = p7.size();
        String[] v1 = new String[v0];
        String v7_3 = p7.iterator();
        String v3_4 = 0;
        while (v7_3.hasNext()) {
            String v4_2 = ((com.layer.sdk.internal.lsdkd.lsdka.e) v7_3.next());
            v4_2.c(0);
            int v5 = (v3_4 + 1);
            v1[v3_4] = v4_2.e().toString();
            v3_4 = v5;
        }
        String v7_1 = com.layer.sdk.internal.lsdke.lsdkc.c$b.a(0);
        String v2_2 = android.text.TextUtils.join(",", java.util.Collections.nCopies(v0, "?"));
        String v3_2 = new StringBuilder();
        v3_2.append("database_identifier IN (");
        v3_2.append(v2_2);
        v3_2.append(")");
        if (p6.update("identities", v7_1, v3_2.toString(), v1) == v0) {
            return;
        } else {
            if (com.layer.sdk.internal.lsdkk.k.a(6)) {
                com.layer.sdk.internal.lsdkk.k.e(com.layer.sdk.internal.lsdke.lsdkc.c.a, "Could not update identities");
            }
            throw new IllegalArgumentException("Could not update identities");
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void b(android.database.sqlite.SQLiteDatabase p7, com.layer.transport.lsdkc.c p8)
    {
        if (p8.v()) {
            int v1 = 0;
            while (v1 < p8.u().size()) {
                int v2_0 = com.layer.sdk.internal.lsdke.lsdkc.c$b.a(p8, v1);
                if (com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8, v1)) {
                    String[] v3_2 = new String[2];
                    String v5_1 = new StringBuilder();
                    v5_1.append("");
                    v5_1.append(v1);
                    v3_2[0] = v5_1.toString();
                    v3_2[1] = p8.a().toString();
                    if (p7.update("event_content_parts", v2_0, "event_content_part_id=? AND event_database_identifier=?", v3_2) != 1) {
                        throw new IllegalArgumentException("Could not update event content part!");
                    }
                } else {
                    if (Long.valueOf(p7.insert("event_content_parts", 0, v2_0)).longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert event content part");
                    }
                }
                v1++;
            }
            return;
        } else {
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p7, Iterable p8)
    {
        String v8_1 = p8.iterator();
        while (v8_1.hasNext()) {
            com.layer.sdk.internal.lsdkd.lsdka.i v0_3 = ((com.layer.sdk.internal.lsdkd.lsdka.i) ((com.layer.sdk.messaging.Message) v8_1.next()));
            java.util.Iterator v1_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(v0_3);
            if (v0_3.h() != null) {
                long v4_0 = new String[1];
                v4_0[0] = v0_3.h().toString();
                if (p7.update("messages", v1_0, "database_identifier=?", v4_0) != 1) {
                    throw new IllegalArgumentException("Could not update message!");
                }
            } else {
                if (v0_3.q() == null) {
                    throw new IllegalArgumentException("Message has no conversation database ID");
                } else {
                    java.util.Iterator v1_3 = Long.valueOf(p7.insert("messages", 0, v1_0));
                    if (v1_3.longValue() == -1) {
                        throw new IllegalArgumentException("Could not insert message");
                    } else {
                        v0_3.b(v1_3);
                        if (v0_3.o() != null) {
                            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, v0_3.o(), v0_3.n());
                        }
                    }
                }
            }
            if (v0_3.k() == null) {
                throw new IllegalArgumentException("Message has no message parts!");
            } else {
                java.util.Iterator v1_7 = v0_3.j();
                if (v1_7 != null) {
                    java.util.Iterator v1_8 = v1_7.iterator();
                    while (v1_8.hasNext()) {
                        ((com.layer.sdk.internal.lsdkd.lsdka.j) v1_8.next()).b(v0_3.h());
                    }
                }
                ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, v0_3);
                ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p7, v0_3);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p5, com.layer.transport.lsdkc.i p6)
    {
        long v0_0 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6);
        if ((p6.a() == null) && ((p6.f() != null) && (p6.q()))) {
            Long v1_1 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p5, p6.f(), p6.p());
            if (v1_1 != null) {
                p6.a(v1_1.a());
            }
        }
        if (p6.a() != null) {
            String[] v3 = new String[1];
            v3[0] = p6.a().toString();
            if (p5.update("mutations", v0_0, "database_identifier=?", v3) != 1) {
                throw new IllegalArgumentException("Could not update mutation!");
            }
        } else {
            IllegalArgumentException v5_4 = Long.valueOf(p5.insert("mutations", 0, v0_0));
            if (v5_4.longValue() == -1) {
                throw new IllegalArgumentException("Could not insert mutation");
            } else {
                p6.a(v5_4);
            }
        }
        return;
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p7, com.layer.transport.lsdkc.h p8, ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$a p9)
    {
        if (p8.A()) {
            throw new IllegalArgumentException("Use distinctStream() to persist distinct streams");
        } else {
            if ((p8.a() == null) && (p8.b() != null)) {
                int v0_3 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8.b());
                if (v0_3 != 0) {
                    p8.a(v0_3);
                }
            }
            if (p8.a() != null) {
                int v0_5 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p8, 0);
                String[] v4_0 = new String[1];
                v4_0[0] = p8.a().toString();
                if (p7.update("streams", v0_5, "database_identifier=?", v4_0) != 1) {
                    throw new IllegalArgumentException("Could not update stream!");
                } else {
                    com.layer.sdk.internal.lsdke.lsdkc.a.a(p7, p8);
                }
            } else {
                int v0_9 = Long.valueOf(p7.insert("streams", "database_identifier", ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p8, 1)));
                if (v0_9.longValue() == -1) {
                    throw new IllegalArgumentException("Could not insert stream");
                } else {
                    p8.a(v0_9);
                }
            }
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.b(p7, p8, p9, 0);
            ark>com.layer.sdk.internal.lsdke.lsdkc.cark>.a(p7, p8);
            return;
        }
    }

Method com.layer.sdk.internal.lsdke.lsdkc.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public static void a(android.database.sqlite.SQLiteDatabase p6, com.layer.transport.lsdkc.c p7)
    {
        Long v0_0 = p7.b();
        StringBuilder v1_9 = p7.c();
        if ((v1_9 == null) && (v0_0 == null)) {
            throw new IllegalArgumentException("No stream ID set");
        } else {
            if (v1_9 != null) {
                if (v0_0 == null) {
                    v0_0 = com.layer.sdk.internal.lsdke.lsdkc.a.a(p6, v1_9);
                    p7.b(v0_0);
                }
            } else {
                p7.a(com.layer.sdk.internal.lsdke.lsdkc.a.a(p6, v0_0));
            }
            StringBuilder v1_8;
            if (p7.a() == null) {
                v1_8 = 0;
            } else {
                v1_8 = 1;
            }
            java.util.UUID v4_1 = p7.l();
            if ((v1_8 != null) || (v4_1 != null)) {
                if ((v1_8 == null) || (v4_1 == null)) {
                    if (v1_8 != null) {
                        Long v0_6 = new StringBuilder();
                        v0_6.append("Cannot update an unsynchronized event: ");
                        v0_6.append(p7);
                        throw new IllegalArgumentException(v0_6.toString());
                    } else {
                        Long v0_7 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p6, v0_0, p7.k());
                        if (v0_7 != null) {
                            if (!v0_7.d().equals(p7.d())) {
                                StringBuilder v1_15 = new StringBuilder();
                                v1_15.append("New event conflicts with existing client_id: ");
                                v1_15.append(p7);
                                v1_15.append("; existing: ");
                                v1_15.append(v0_7);
                                throw new IllegalArgumentException(v1_15.toString());
                            } else {
                                p7.a(v0_7.a());
                            }
                        }
                    }
                } else {
                    Long v0_9 = com.layer.sdk.internal.lsdke.lsdkc.b.a(p6, v0_0, p7.k());
                    if (v0_9 != null) {
                        if (!p7.d().equals(v0_9.d())) {
                            StringBuilder v1_19 = new StringBuilder();
                            v1_19.append("Cannot update an event if there is already an event with its stream and seq: ");
                            v1_19.append(p7);
                            v1_19.append("; existing: ");
                            v1_19.append(v0_9);
                            throw new IllegalArgumentException(v1_19.toString());
                        } else {
                            return;
                        }
                    }
                }
            } else {
                Long v0_11 = com.layer.sdk.internal.lsdke.lsdkc.b.b(p6, p7.d());
                if (v0_11 != null) {
                    StringBuilder v1_1 = new StringBuilder();
                    v1_1.append("New OutboundRecon event conflicts with existing client_id: ");
                    v1_1.append(p7);
                    v1_1.append("; existing: ");
                    v1_1.append(v0_11);
                    throw new IllegalArgumentException(v1_1.toString());
                }
            }
            Long v0_1 = ark>com.layer.sdk.internal.lsdke.lsdkc.cark>$b.a(p6, p7);
            if (p7.a() != null) {
                StringBuilder v1_3 = new String[1];
                v1_3[0] = p7.a().toString();
                if (p6.update("events", v0_1, "database_identifier=?", v1_3) != 1) {
                    throw new IllegalArgumentException("Could not update event!");
                }
            } else {
                Long v