//
// LevelSearchLayer::onSearchMode from 0x6d316c to 0x6d31b0 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0x98268
// > LevelSearchLayer::init @ 0x6d183c
// > ??> @ 0x122d330
//
// 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::onSearchMode(LevelSearchLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 v2; // w20
cocos2d::CCDirector *v3; // x19
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
v2 = a1->m_type == 0;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSearchLayer::scene(v2);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}