//
// LevelBrowserLayer::onLocalMode from 0x100483330 to 0x1004833fd (205 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x1004818bc
//
// This function is hookable on this platform (idp: pc, 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:30:41 +0000
//
__int64 __fastcall LevelBrowserLayer::onLocalMode(_QWORD *a1)
{
__int64 result; // rax
int v2; // r14d
unsigned int v3; // ebx
__int64 v4; // rdi
__int64 v5; // rax
__int64 v6; // rbx
__int64 v7; // r14
_BYTE *v8; // r15
char *v9; // rax
char *v10; // rax
if ( a1[83] )
{
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1088LL))(a1, 0);
v2 = *(_DWORD *)(a1[83] + 316LL);
v3 = 4 * (v2 == 98) + 98;
*(_DWORD *)(GameManager::sharedState() + 1304) = v3;
v4 = v3;
v5 = GJSearchObject::create_2(v3);
v6 = v5;
if ( v2 == 98 )
*(_DWORD *)(v5 + 432) = 1;
v7 = cocos2d::CCDirector::sharedDirector();
v8 = cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(v4, 0) + 72) = v8;
v9 = LevelBrowserLayer::create(v6);
(*(void (__fastcall **)(_BYTE *, char *))(*(_QWORD *)v8 + 456LL))(v8, v9);
v10 = cocos2d::CCTransitionFade::create_1((__int64)v8, 0.5);
return cocos2d::CCDirector::replaceScene(v7, v10);
}
return result;
}