//
// LevelSearchLayer::onSearchMode from 0x10005b9d8 to 0x10005ba1c (68 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::init @ 0x10005a0f0
//
// This function is hookable on this platform (idp: arm, 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 10:57:48 +0000
//
__int64 __fastcall LevelSearchLayer::onSearchMode(__int64 a1)
{
_BOOL8 v1; // x19
int v2; // w20
__int64 v3; // x0
void *v4; // x1
v1 = *(_DWORD *)(a1 + 432) == 0;
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = LevelSearchLayer::scene(v1);
v4 = (void *)cocos2d::CCTransitionFade::create_1(v3, 0.5);
return cocos2d::CCDirector::replaceScene(v2, v4);
}