//
// LevelSearchLayer::onSearchMode from 0x7e416c to 0x7e41b0 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0xc8e30
// > LevelSearchLayer::init @ 0x7e28c4
// > ??> @ 0x1545e28
//
// 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 12:54:28 +0000
//
__int64 __fastcall LevelSearchLayer::onSearchMode(LevelSearchLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // x0
_BOOL4 v3; // w20
cocos2d::CCDirector *v4; // x19
AppDelegate *v5; // x0
cocos2d::CCScene *v6; // x1
cocos2d::CCScene *v7; // x0
v2 = (cocos2d::CCDirector *)*((unsigned int *)this + 108);
v3 = (_DWORD)v2 == 0;
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
v5 = LevelSearchLayer::scene((LevelSearchLayer *)v3);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v5, 0.5, v6);
return cocos2d::CCDirector::replaceScene(v4, v7);
}