//
// GameLevelManager::addDLToActive from 0x140221aa0 to 0x140221b6a (202 bytes)
//
// 28 xrefs:
// > GameLevelManager::getDeathData @ 0x140228528
// > GameLevelManager::getOnlineLevels @ 0x14022abe6
// > GameLevelManager::getMapPacks @ 0x14022c742
// > GameLevelManager::getLevelLists @ 0x14022db57
// > GameLevelManager::getEditorSoundConfigs @ 0x14022eb74
// > GameLevelManager::downloadEditorSoundConfig @ 0x14022f496
// > GameLevelManager::getGauntletLevels @ 0x140231995
// > GameLevelManager::downloadLevel @ 0x140231c6e
// > GameLevelManager::updateLevel @ 0x140233be1
// > GameLevelManager::getLeaderboardScores @ 0x1402381a1
// > GameLevelManager::getLevelLeaderboard @ 0x1402388a3
// > GameLevelManager::getTopArtists @ 0x1402397d9
// > GameLevelManager::getUsers @ 0x140239f69
// > GameLevelManager::getGJUserInfo @ 0x14023a66f
// > GameLevelManager::getUserMessages @ 0x14023ab23
// > GameLevelManager::downloadUserMessage @ 0x14023b403
// > GameLevelManager::getLevelComments @ 0x14023c3b6
// > GameLevelManager::getAccountComments @ 0x14023cf40
// > GameLevelManager::getNotifications @ 0x14024f373
// > GameLevelManager::muteUser @ 0x14024f764
// > GameLevelManager::followUserOnline @ 0x140250e14
// > GameLevelManager::claimNotificationReward @ 0x140251e52
// > GameLevelManager::getLevelRateInfo @ 0x140253976
// > GameLevelManager::getSongUsage @ 0x140253de6
// > GameLevelManager::getFriendRequests @ 0x140254128
// > GameLevelManager::getUserList @ 0x1402572c3
// > GameLevelManager::getGJDailyLevelState @ 0x14025f780
// > ??> @ 0x14091bbe4
//
// 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 11:28:24 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GameLevelManager::addDLToActive(__int64 a1, _BYTE *a2)
{
size_t v3; // r8
__int64 v4; // rbx
__int64 v5; // rax
void *v6; // rcx
void *Block[2]; // [rsp+30h] [rbp-38h] BYREF
__int128 v8; // [rsp+40h] [rbp-28h]
*(_OWORD *)Block = 0;
v8 = 0;
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_14003D230(Block, a2, v3);
v4 = *(_QWORD *)(a1 + 1192);
v5 = cocos2d::CCNode::create();
cocos2d::CCDictionary::setObject(v4, v5, Block);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
}