//
// LevelBrowserLayer::onLocalMode from 0x7fb2b8 to 0x7fb378 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0xdfdf8
// > LevelBrowserLayer::init @ 0x7fac50
// > ??> @ 0x1546b98
//
// 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::onLocalMode(_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 == 98 )
{
*(_DWORD *)(GameManager::sharedState(v3) + 1304) = 102;
v5 = (LevelBrowserLayer *)GJSearchObject::create(102);
v4 = (cocos2d::CCDirector *)(&dword_0 + 1);
*((_DWORD *)v5 + 108) = 1;
}
else
{
*(_DWORD *)(GameManager::sharedState(v3) + 1304) = 98;
v4 = (cocos2d::CCDirector *)GJSearchObject::create(98);
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;
}