//
// LevelBrowserLayer::onSavedMode from 0x7fb1f8 to 0x7fb2b8 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0x80938
// > LevelBrowserLayer::init @ 0x7fa5a0
// > ??> @ 0x1543568
//
// 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:41 +0000
//
_QWORD *__fastcall LevelBrowserLayer::onSavedMode(_QWORD *this, cocos2d::CCObject *a2)
{
_QWORD *v2; // x19
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x0
LevelBrowserLayer *v5; // x19
cocos2d::CCDirector *v6; // x20
GJSearchObject *v7; // x1
AppDelegate *v8; // x0
cocos2d::CCScene *v9; // x1
cocos2d::CCScene *v10; // x0
v2 = this;
if ( *(this + 83) )
{
(*(void (__fastcall **)(_QWORD *, _QWORD))(*this + 1072LL))(this, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1088LL))(v2, 0);
v3 = (GameManager *)*(unsigned int *)(v2[83] + 316LL);
if ( (_DWORD)v3 == 99 )
{
*(_DWORD *)(GameManager::sharedState(v3) + 1308) = 103;
v5 = (LevelBrowserLayer *)GJSearchObject::create(103);
v4 = (cocos2d::CCDirector *)(&dword_0 + 1);
*((_DWORD *)v5 + 108) = 1;
}
else
{
*(_DWORD *)(GameManager::sharedState(v3) + 1308) = 99;
v4 = (cocos2d::CCDirector *)GJSearchObject::create(99);
v5 = v4;
}
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
v8 = LevelBrowserLayer::scene(v5, v7);
v10 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v8, 0.5, v9);
return (_QWORD *)cocos2d::CCDirector::replaceScene(v6, v10);
}
return this;
}