//
// FRequestProfilePage::onClearSearch from 0xa4ef00 to 0xa4eff4 (244 bytes)
//
// 3 xrefs:
// > ??> @ 0xb1fd0
// > FRequestProfilePage::init @ 0xa4e78c
// > ??> @ 0x1545128
//
// 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:04 +0000
//
__int64 __fastcall FRequestProfilePage::onClearSearch(FRequestProfilePage *this, cocos2d::CCObject *a2)
{
_QWORD *v3; // x0
int v4; // w21
__int64 *v5; // x0
__int64 v7; // x2
_QWORD v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD **)this + 108);
if ( v3 )
{
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
CCTextInputNode::setString(v3, (char *)v8);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
v4 = *((unsigned __int8 *)this + 880);
FRequestProfilePage::exitGlobalMode((__int64)this);
cocos2d::CCNode::unschedule(this, FRequestProfilePage::doSearch, 0);
v5 = (__int64 *)((char *)this + 736);
if ( v4 )
goto LABEL_5;
v5 = (__int64 *)((char *)this + 736);
v7 = *((_BYTE *)this + 736) >> 1;
if ( (*((_BYTE *)this + 736) & 1) != 0 )
v7 = *((_QWORD *)this + 93);
if ( v7 )
{
LABEL_5:
std::string::assign(v5, &byte_11B8890);
FRequestProfilePage::loadPage(this, 0);
}
return _stack_chk_guard;
}