//
// LevelSearchLayer::onMostRecent from 0x7e0584 to 0x7e0640 (188 bytes)
//
// 3 xrefs:
// > ??> @ 0xdea78
// > LevelSearchLayer::init @ 0x7e31d8
// > ??> @ 0x1546ad0
//
// 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:26 +0000
//
__int64 __fastcall LevelSearchLayer::onMostRecent(LevelSearchLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCDirector *v4; // x21
LevelBrowserLayer *SearchObject; // x0
GJSearchObject *v6; // x1
cocos2d::CCTransitionFade *v7; // x0
cocos2d::CCScene *v8; // x1
cocos2d::CCScene *v9; // x0
_QWORD v11[2]; // [xsp+30h] [xbp+30h] BYREF
void *v12; // [xsp+40h] [xbp+40h]
v3 = (cocos2d::CCDirector *)LevelSearchLayer::onClose(this, nullptr);
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
SearchObject = (LevelBrowserLayer *)LevelSearchLayer::getSearchObject(this, 4u, (__int64)v11);
v7 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(SearchObject, v6);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v8);
cocos2d::CCDirector::pushScene(v4, v9);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}