//
// LevelSearchLayer::onSearchMode from 0x140436ad0 to 0x140436b14 (68 bytes)
//
// 2 xrefs:
// > LevelSearchLayer::init @ 0x140434982
// > ??> @ 0x140926de0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:17 +0000
//
bool __fastcall LevelSearchLayer::onSearchMode(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
struct cocos2d::CCScene *v4; // rax
struct cocos2d::CCScene *v5; // rbx
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
v4 = (struct cocos2d::CCScene *)LevelSearchLayer::scene(*(_DWORD *)(a1 + 432) == 0, a2, a3, a4);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
return cocos2d::CCDirector::replaceScene(v7, v5);
}