//
// LocalLevelManager::firstLoad from 0x1006cad20 to 0x1006cada1 (129 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b8f720
//
// 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:35:36 +0000
//
void __fastcall LocalLevelManager::firstLoad(__int64 a1)
{
__int64 v2; // rax
_DWORD *v3; // rdi
__int64 v4; // r14
__int64 v5; // rax
_DWORD *v6; // rdi
__int64 v7; // r14
v2 = sub_1007FE900(a1);
v3 = *(_DWORD **)(a1 + 360);
if ( v3 != (_DWORD *)v2 )
{
v4 = v2;
if ( v2 )
{
cocos2d::CCObject::retain(v2);
v3 = *(_DWORD **)(a1 + 360);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 360) = v4;
}
v5 = sub_1007FE900(v3);
v6 = *(_DWORD **)(a1 + 368);
if ( v6 != (_DWORD *)v5 )
{
v7 = v5;
if ( v5 )
{
cocos2d::CCObject::retain(v5);
v6 = *(_DWORD **)(a1 + 368);
}
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 368) = v7;
}
}