//
// LevelSearchLayer::onSearchMode from 0x10062a220 to 0x10062a261 (65 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::init @ 0x100627f28
//
// 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 __fastcall LevelSearchLayer::onSearchMode(LevelSearchLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 v2; // ebx
cocos2d::CCDirector *v3; // r14
cocos2d::CCScene *v4; // rax
cocos2d::CCTransitionFade *v5; // rax
v2 = a1->m_type == 0;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSearchLayer::scene(v2);
v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}