//
// LevelSearchLayer::onSearchMode from 0x3af12e to 0x3af15c (46 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::onSearchMode(LevelSearchLayer *a1, cocos2d::CCObject *a2)
{
int m_type; // r4
cocos2d::CCDirector *v3; // r5
cocos2d::CCScene *v4; // r0
cocos2d::CCTransitionFade *v5; // r1
m_type = a1->m_type;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSearchLayer::scene(m_type == 0);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}