//
// LevelSearchLayer::onSearchMode from 0x100053160 to 0x1000531a4 (68 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::init @ 0x1000518c0
//
// 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; // w19
cocos2d::CCDirector *v3; // x20
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x1
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);
}