//
// FriendsProfilePage::textChanged from 0x140216300 to 0x140216439 (313 bytes)
//
// 2 xrefs:
// > ??> @ 0x140756b58
// > ??> @ 0x14091b74c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:21 +0000
//
void __fastcall FriendsProfilePage::textChanged(__int64 a1, __int64 a2)
{
__int64 v3; // rcx
_BYTE *v5; // rax
size_t v6; // r8
void *v7; // rcx
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int128 v9; // [rsp+48h] [rbp-20h]
*(_BYTE *)(a1 + 384) = 0;
v3 = *(_QWORD *)(a1 + 216);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
*(_QWORD *)(a1 + 216) = 0;
}
v5 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 592) + 600LL) + 8LL))(*(_QWORD *)(a2 + 592) + 600LL);
*(_OWORD *)Block = 0;
v6 = -1;
v9 = 0;
do
++v6;
while ( v5[v6] );
sub_14003D230(Block, v5, v6);
sub_140059C40(a1 + 336, (__int64)Block);
if ( *((_QWORD *)&v9 + 1) > 0xFu )
{
v7 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
FriendsProfilePage::filterUsersWithQuery(a1 - 544);
FriendsProfilePage::updateCountLabel(a1 - 544);
}