//
// LevelBrowserLayer::onClearSearch from 0x4a88b4 to 0x4a8920 (108 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:49:56 +0000
//
int __fastcall LevelBrowserLayer::onClearSearch(int this, cocos2d::CCObject *a2)
{
int v2; // r7
GJSearchObject **v3; // r6
int v4[3]; // [sp+0h] [bp-14h] BYREF
v2 = *(_DWORD *)(this + 500);
v3 = (GJSearchObject **)this;
if ( v2 )
{
memset(v4, 0, sizeof(v4));
std::string::__init(v4, &unk_B6B226, 0);
std::string::operator=((unsigned __int8 *)(v2 + 268), (unsigned __int8 *)v4);
std::string::~string((int)v4);
*((_DWORD *)v3[125] + 76) = 0;
return LevelBrowserLayer::loadPage(v3, v3[125]);
}
return this;
}