//
// LevelSearchLayer::onSearch from 0x3ad56c to 0x3ad624 (184 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelSearchLayer::onSearch(LevelSearchLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r9
GJSearchObject *SearchObject; // r7
cocos2d::CCDirector *v5; // r4
cocos2d::CCScene *v6; // r0
cocos2d::CCTransitionFade *v7; // r0
int v8; // [sp+0h] [bp-14h] BYREF
_BYTE v9[4]; // [sp+4h] [bp-10h] BYREF
_BYTE v10[4]; // [sp+8h] [bp-Ch] BYREF
LevelSearchLayer::onClose(a1, nullptr);
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a1->m_searchInput);
sub_776584((int)v9, (char *)&unk_939830);
v3 = sub_774DBC(&v8, v9);
sub_774008(v9);
if ( v3 )
{
sub_775C20(v10, &v8);
SearchObject = (GJSearchObject *)LevelSearchLayer::getSearchObject(a1, nullptr, (int)v10);
sub_774008(v10);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = LevelBrowserLayer::scene(SearchObject);
v7 = cocos2d::CCTransitionFade::create(0.5, v6);
cocos2d::CCDirector::pushScene(v5, v7);
}
else
{
LevelSearchLayer::onMostLikes(a1, nullptr);
}
sub_774008(&v8);
}