//
// FriendsProfilePage::onClearSearch from 0x140216b80 to 0x140216c52 (210 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::init @ 0x140213eec
// > ??> @ 0x1408a55f8
// > ??> @ 0x1408a5608
// > ??> @ 0x14091b764
//
// 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::onClearSearch(__int64 a1)
{
_QWORD *v2; // rcx
cocos2d::CCObject *v3; // rcx
__int64 v4; // rcx
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
v2 = *(_QWORD **)(a1 + 920);
if ( v2 )
{
v6 = 0;
v5 = 0;
LOBYTE(v5) = 0;
v7 = 15;
CCTextInputNode::setString(v2, &v5);
}
if ( *(_BYTE *)(a1 + 928) || *(_QWORD *)(a1 + 896) )
{
v3 = *(cocos2d::CCObject **)(a1 + 872);
*(_BYTE *)(a1 + 928) = 0;
if ( v3 )
{
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 872) = 0;
}
v4 = *(_QWORD *)(a1 + 760);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 512LL))(v4);
*(_QWORD *)(a1 + 760) = 0;
}
sub_1400405A0((void **)(a1 + 880), &byte_1406ED6E0, 0);
FriendsProfilePage::filterUsersWithQuery(a1);
FriendsProfilePage::updateCountLabel(a1);
}
}