//
// FRequestProfilePage::onClearSearch from 0x5f2dcc to 0x5f2e68 (156 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:29 +0000
//
int __fastcall FRequestProfilePage::onClearSearch(FRequestProfilePage *this, cocos2d::CCObject *a2)
{
int v2; // r7
int v4; // r5
int result; // r0
int v6; // r3
int v7; // r3
int v8[3]; // [sp+8h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 155);
if ( v2 )
{
memset(v8, 0, sizeof(v8));
std::string::__init(v8, &unk_B6B226, 0);
CCTextInputNode::setString(v2, (int)v8);
std::string::~string((int)v8);
}
v4 = *((unsigned __int8 *)this + 628);
FRequestProfilePage::exitGlobalMode((int)this);
result = cocos2d::CCNode::unschedule(this, FRequestProfilePage::doSearch, 0);
if ( v4
|| ((v6 = *((unsigned __int8 *)this + 556), (v6 & 1) != 0) ? (v7 = *((_DWORD *)this + 140)) : (v7 = v6 >> 1), v7) )
{
std::string::assign((int *)this + 139, (char *)&unk_B6B226);
return FRequestProfilePage::loadPage(this, nullptr);
}
return result;
}