//
// LevelBrowserLayer::dLevelBrowserLayer from 0x10048ac00 to 0x10048ad6c (364 bytes)
//
// 7 xrefs:
// > LevelListLayer::dLevelListLayer @ 0x10035bb3a
// > ??> @ 0x1003645be
// > ??> @ 0x1003645ef
// > sub_10048AD80 @ 0x10048ad85
// > sub_10048AD90 @ 0x10048ad9c
// > sub_10048ADB0 @ 0x10048adb9
// > sub_10048ADD0 @ 0x10048ade3
//
// 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 LevelBrowserLayer::dLevelBrowserLayer(__int64 a1)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
cocos2d::CCObject *v4; // rdi
cocos2d::CCObject *v5; // rdi
cocos2d::CCObject *v6; // rdi
*(_QWORD *)a1 = off_100942538;
*(_QWORD *)(a1 + 320) = off_100942AA0;
*(_QWORD *)(a1 + 328) = &off_100942B10;
*(_QWORD *)(a1 + 336) = off_100942B28;
*(_QWORD *)(a1 + 344) = off_100942B48;
*(_QWORD *)(a1 + 352) = off_100942B68;
*(_QWORD *)(a1 + 408) = off_100942B90;
*(_QWORD *)(a1 + 432) = off_100942C10;
*(_QWORD *)(a1 + 544) = off_100942C30;
*(_QWORD *)(a1 + 552) = &off_100942C68;
*(_QWORD *)(a1 + 560) = &off_100942C80;
*(_QWORD *)(a1 + 568) = &off_100942C98;
*(_QWORD *)(a1 + 576) = off_100942CB0;
*(_QWORD *)(a1 + 584) = &off_100942CE0;
if ( *(_BYTE *)(a1 + 748) == 1 )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (cocos2d::CCObject *)a1);
}
v4 = *(cocos2d::CCObject **)(a1 + 656);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(cocos2d::CCObject **)(a1 + 736);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *(cocos2d::CCObject **)(a1 + 664);
if ( v6 )
cocos2d::CCObject::release(v6);
if ( !*(_BYTE *)(a1 + 748) )
GameManager::sharedState()->m_sceneEnum = 7;
if ( GameLevelManager::sharedState()->m_levelManagerDelegate == (LevelManagerDelegate *)(a1 + 544) )
GameLevelManager::sharedState()->m_levelManagerDelegate = nullptr;
return cocos2d::CCLayerColor::dCCLayerColor(a1);
}