//
// FriendsProfilePage::onClearSearch from 0xa52b3c to 0xa52c7c (320 bytes)
//
// 3 xrefs:
// > ??> @ 0x4c4e0
// > FriendsProfilePage::init @ 0xa50bc4
// > ??> @ 0x15418a8
//
// This function is hookable on this platform (idp: arm, 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 13:00:06 +0000
//
__int64 __fastcall FriendsProfilePage::onClearSearch(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
_QWORD *v3; // x21
char *v4; // x21
__int64 v5; // x1
cocos2d::CCObject *v7; // x0
__int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD **)this + 114);
if ( v3 )
{
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, &byte_11B8890, 0);
CCTextInputNode::setString(v3, (char *)v8);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
v4 = (char *)this + 880;
if ( *((_BYTE *)this + 920) )
goto LABEL_9;
v4 = (char *)this + 880;
v5 = *((_BYTE *)this + 880) >> 1;
if ( (*((_BYTE *)this + 880) & 1) != 0 )
v5 = *((_QWORD *)this + 111);
if ( v5 )
{
LABEL_9:
v7 = *((cocos2d::CCObject **)this + 109);
*((_BYTE *)this + 920) = 0;
if ( v7 )
{
cocos2d::CCObject::release(v7);
*((_QWORD *)this + 109) = 0;
}
PagedListPopup::clearStatus(this);
if ( (*((_BYTE *)this + 880) & 1) != 0 )
{
**((_BYTE **)v4 + 2) = 0;
if ( (*((_BYTE *)this + 880) & 1) == 0 )
goto LABEL_13;
}
else
{
*((_BYTE *)this + 881) = 0;
if ( (*((_BYTE *)this + 880) & 1) == 0 )
{
LABEL_13:
*((_BYTE *)this + 880) = 0;
LABEL_14:
FriendsProfilePage::filterUsersWithQuery((__int64)this, (__int64)v4);
FriendsProfilePage::rebuildList((cocos2d::CCArray **)this);
return _stack_chk_guard;
}
}
*((_QWORD *)v4 + 1) = 0;
goto LABEL_14;
}
return _stack_chk_guard;
}