//
// LevelBrowserLayer::onClearSearch from 0x7fbc0c to 0x7fbcc4 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0xad4b8
// > LevelBrowserLayer::init @ 0x7fa2c0
// > ??> @ 0x1544eb0
//
// 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 12:54:41 +0000
//
__int64 __fastcall LevelBrowserLayer::onClearSearch(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x2
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
v3 = *((_QWORD *)this + 83);
if ( v3 )
{
v5[0] = 0;
v5[1] = 0;
v6 = nullptr;
if ( (_QWORD *)(v3 + 320) != v5 )
{
std::string::assign((__int64 *)(v3 + 320), (char *)v5 + 1, 0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
v3 = *((_QWORD *)this + 83);
}
*(_DWORD *)(v3 + 392) = 0;
LevelBrowserLayer::loadPage((GJSearchObject **)this, *((GJSearchObject **)this + 83));
}
return _stack_chk_guard;
}