//
// MusicDownloadManager::loadSongInfoFinished from 0x140493e30 to 0x140493ea1 (113 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::getSongInfo @ 0x1404829e8
// > MusicDownloadManager::onGetSongInfoCompleted @ 0x140482d84
// > ??> @ 0x140928f10
//
// 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:32:51 +0000
//
unsigned int __fastcall MusicDownloadManager::loadSongInfoFinished(__int64 a1, __int64 a2)
{
unsigned int v4; // ebx
unsigned int result; // eax
struct cocos2d::CCObject *v6; // rax
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
if ( result )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v4);
(***((void (__fastcall ****)(_QWORD, __int64))v6 + 40))(*((_QWORD *)v6 + 40), a2);
++v4;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
}
while ( v4 < result );
}
return result;
}