//
// FriendsProfilePage::onClearSearch from 0x5f5558 to 0x5f5618 (192 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:30 +0000
//
void __fastcall FriendsProfilePage::onClearSearch(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
int v2; // r7
int v4; // r3
int v5; // r3
cocos2d::CCObject *v6; // r0
_BYTE *v7; // r3
int v8[3]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 166);
if ( v2 )
{
memset(v8, 0, sizeof(v8));
std::string::__init(v8, &unk_B6B226, 0);
CCTextInputNode::setString(v2, (int)v8);
std::string::~string((int)v8);
}
if ( *((_BYTE *)this + 668)
|| ((v4 = *((unsigned __int8 *)this + 648), (v4 & 1) != 0) ? (v5 = *((_DWORD *)this + 163)) : (v5 = v4 >> 1), v5) )
{
v6 = *((cocos2d::CCObject **)this + 161);
*((_BYTE *)this + 668) = 0;
if ( v6 )
{
cocos2d::CCObject::release(v6);
*((_DWORD *)this + 161) = 0;
}
PagedListPopup::clearStatus(this);
if ( (*((_BYTE *)this + 648) & 1) != 0 )
v7 = *((_BYTE **)this + 164);
else
v7 = (char *)this + 649;
*v7 = 0;
if ( (*((_BYTE *)this + 648) & 1) != 0 )
*((_DWORD *)this + 163) = 0;
else
*((_BYTE *)this + 648) = 0;
FriendsProfilePage::filterUsersWithQuery((int)this, (unsigned __int8 *)this + 648);
FriendsProfilePage::rebuildList((cocos2d::CCArray **)this);
}
}