//
// LevelListLayer::dLevelListLayer from 0x10035b9c0 to 0x10035bb5a (410 bytes)
//
// 4 xrefs:
// > sub_10035BB70 @ 0x10035bb75
// > sub_10035BB80 @ 0x10035bb8c
// > sub_10035BBA0 @ 0x10035bba9
// > sub_10035BBC0 @ 0x10035bbd3
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall LevelListLayer::dLevelListLayer(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
cocos2d::CCObject *v3; // rdi
*(_QWORD *)a1 = off_100918158;
*(_QWORD *)(a1 + 320) = off_1009186F8;
*(_QWORD *)(a1 + 328) = &off_100918768;
*(_QWORD *)(a1 + 336) = off_100918780;
*(_QWORD *)(a1 + 344) = off_1009187A0;
*(_QWORD *)(a1 + 352) = off_1009187C0;
*(_QWORD *)(a1 + 408) = off_1009187E8;
*(_QWORD *)(a1 + 432) = off_100918868;
*(_QWORD *)(a1 + 544) = off_100918888;
*(_QWORD *)(a1 + 552) = &off_1009188C0;
*(_QWORD *)(a1 + 560) = &off_1009188D8;
*(_QWORD *)(a1 + 568) = &off_1009188F0;
*(_QWORD *)(a1 + 576) = off_100918908;
*(_QWORD *)(a1 + 584) = &off_100918938;
*(_QWORD *)(a1 + 800) = off_100918950;
*(_QWORD *)(a1 + 808) = &off_100918998;
*(_QWORD *)(a1 + 816) = &off_1009189B0;
*(_QWORD *)(a1 + 824) = off_1009189C8;
GameManager::sharedState()->m_sceneEnum = 13;
v2 = *(cocos2d::CCObject **)(a1 + 864);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(cocos2d::CCObject **)(a1 + 928);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( GameLevelManager::sharedState()->m_levelListDeleteDelegate != (LevelListDeleteDelegate *)(a1 + 824) )
{
if ( (*(_BYTE *)(a1 + 872) & 1) == 0 )
goto LABEL_8;
goto LABEL_7;
}
GameLevelManager::sharedState()->m_levelListDeleteDelegate = nullptr;
if ( (*(_BYTE *)(a1 + 872) & 1) != 0 )
LABEL_7:
operator delete(*(void **)(a1 + 888));
LABEL_8:
if ( (*(_BYTE *)(a1 + 840) & 1) != 0 )
operator delete(*(void **)(a1 + 856));
return LevelBrowserLayer::dLevelBrowserLayer(a1);
}