//
// LevelBrowserLayer::dLevelBrowserLayer from 0x100480220 to 0x1004803cb (427 bytes)
//
// 7 xrefs:
// > sub_100346F50 @ 0x1003470d8
// > ??> @ 0x100350193
// > ??> @ 0x1003501c4
// > sub_1004803E0 @ 0x1004803e5
// > sub_1004803F0 @ 0x1004803fc
// > sub_100480410 @ 0x100480419
// > sub_100480430 @ 0x100480443
//
// 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:40 +0000
//
__int64 __fastcall LevelBrowserLayer::dLevelBrowserLayer(__int64 a1, double a2)
{
__int64 v3; // rax
__int64 v4; // rax
_DWORD *v5; // rax
_DWORD *v6; // rax
_DWORD *v7; // rdi
_DWORD *v8; // rdi
_DWORD *v9; // rdi
_DWORD *v10; // rdi
*(_QWORD *)a1 = off_100B4C830;
*(_QWORD *)(a1 + 320) = off_100B4CDA8;
*(_QWORD *)(a1 + 328) = &off_100B4CE18;
*(_QWORD *)(a1 + 336) = off_100B4CE30;
*(_QWORD *)(a1 + 344) = off_100B4CE50;
*(_QWORD *)(a1 + 352) = off_100B4CE78;
*(_QWORD *)(a1 + 408) = off_100B4CEA8;
*(_QWORD *)(a1 + 432) = off_100B4CF28;
*(_QWORD *)(a1 + 544) = off_100B4CF48;
*(_QWORD *)(a1 + 552) = &off_100B4CF80;
*(_QWORD *)(a1 + 560) = &off_100B4CF98;
*(_QWORD *)(a1 + 568) = &off_100B4CFB0;
*(_QWORD *)(a1 + 576) = off_100B4CFC8;
*(_QWORD *)(a1 + 584) = &off_100B4D020;
if ( *(_BYTE *)(a1 + 748) == 1 )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
}
v5 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::removeObserver((__int64)v5, (unsigned int *)a1, "LevelSelectionChangedNotification");
v6 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::removeObserver((__int64)v6, (unsigned int *)a1, "LevelsImportedNotification");
v7 = *(_DWORD **)(a1 + 656);
if ( v7 )
cocos2d::CCObject::release(v7);
v8 = *(_DWORD **)(a1 + 736);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = *(_DWORD **)(a1 + 664);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *(_DWORD **)(a1 + 832);
if ( v10 )
cocos2d::CCObject::release(v10);
if ( !*(_BYTE *)(a1 + 748) )
*(_DWORD *)(GameManager::sharedState() + 708) = 7;
if ( *(_QWORD *)(GameLevelManager::sharedState(a2) + 1224) == a1 + 544 )
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1224) = 0;
return sub_1004AB790(a1);
}