//
// LevelSearchLayer::onSearchMode from 0x100706cf0 to 0x100706d31 (65 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::init @ 0x1007048b7
//
// 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 12:36:01 +0000
//
__int64 __fastcall LevelSearchLayer::onSearchMode(__int64 a1, __int64 a2)
{
_BOOL4 v2; // ebx
__int64 v3; // r14
_BYTE *v4; // rax
char *v5; // rax
v2 = *(_DWORD *)(a1 + 432) == 0;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSearchLayer::scene(v2, a2);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
return cocos2d::CCDirector::replaceScene(v3, v5);
}