//
// GameLevelManager::isDLActive from 0x1402219d0 to 0x140221a96 (198 bytes)
//
// 28 xrefs:
// > GameLevelManager::getDeathData @ 0x140228507
// > GameLevelManager::getOnlineLevels @ 0x14022abd3
// > GameLevelManager::getMapPacks @ 0x14022c72f
// > GameLevelManager::getLevelLists @ 0x14022db44
// > GameLevelManager::getEditorSoundConfigs @ 0x14022eb56
// > GameLevelManager::downloadEditorSoundConfig @ 0x14022f478
// > GameLevelManager::getGauntletLevels @ 0x140231977
// > GameLevelManager::downloadLevel @ 0x140231c5b
// > GameLevelManager::updateLevel @ 0x140233bce
// > GameLevelManager::getLeaderboardScores @ 0x140238183
// > GameLevelManager::getLevelLeaderboard @ 0x140238885
// > GameLevelManager::getTopArtists @ 0x1402397bb
// > GameLevelManager::getUsers @ 0x140239f56
// > GameLevelManager::getGJUserInfo @ 0x14023a65c
// > GameLevelManager::getUserMessages @ 0x14023ab10
// > GameLevelManager::downloadUserMessage @ 0x14023b3f0
// > GameLevelManager::getLevelComments @ 0x14023c398
// > GameLevelManager::getAccountComments @ 0x14023cf2d
// > GameLevelManager::getNotifications @ 0x14024f35d
// > GameLevelManager::muteUser @ 0x14024f74e
// > GameLevelManager::followUserOnline @ 0x140250dfe
// > GameLevelManager::claimNotificationReward @ 0x140251e3c
// > GameLevelManager::getLevelRateInfo @ 0x140253958
// > GameLevelManager::getSongUsage @ 0x140253dc8
// > GameLevelManager::getFriendRequests @ 0x140254115
// > GameLevelManager::getUserList @ 0x1402572b0
// > GameLevelManager::getGJDailyLevelState @ 0x14025f754
// > ??> @ 0x14091bbd8
//
// 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
//
_BOOL8 __fastcall GameLevelManager::isDLActive(__int64 a1, _BYTE *a2)
{
size_t v3; // r8
bool v4; // bl
void *v5; // 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 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1192), Block) != 0;
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v5 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v5);
}
return v4;
}