//
// MusicDownloadManager::onGetSongInfoCompleted from 0x577eb4 to 0x577f90 (220 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::handleIt @ 0x577fe4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:44 +0000
//
unsigned int __fastcall MusicDownloadManager::onGetSongInfoCompleted(
MusicDownloadManager *a1,
unsigned __int8 *a2,
int a3)
{
const char *v5; // r0
const char *v6; // r6
const char *SongInfoKey; // r0
_BOOL4 v8; // r7
int v9; // r0
_BOOL4 v10; // r7
int v11; // r1
int v12; // r2
int v13; // r2
int v14; // r3
SongInfoObject *v15; // r7
int v17; // [sp+0h] [bp-14h] BYREF
int v18; // [sp+4h] [bp-10h]
int v19; // [sp+8h] [bp-Ch]
if ( (*(_BYTE *)a3 & 1) != 0 )
v5 = *(const char **)(a3 + 8);
else
v5 = (const char *)(a3 + 1);
v6 = (const char *)atoi(v5);
SongInfoKey = (const char *)MusicDownloadManager::getSongInfoKey(a1, v6);
MusicDownloadManager::removeDLFromActive(a1, SongInfoKey);
v17 = 0;
v18 = 0;
v19 = 0;
std::string::__init(&v17, "-1", 2u);
v8 = sub_56B0BE(a2, (unsigned __int8 *)&v17);
std::string::~string((int)&v17);
if ( v8 )
{
v9 = (int)a1;
goto LABEL_9;
}
v17 = 0;
v18 = 0;
v19 = 0;
std::string::__init(&v17, "-2", 2u);
v10 = sub_56B0BE(a2, (unsigned __int8 *)&v17);
std::string::~string((int)&v17);
if ( v10 )
{
v9 = (int)a1;
v11 = (int)v6;
v12 = 2;
return MusicDownloadManager::loadSongInfoFailed(v9, v11, v12);
}
std::string::basic_string(&v17, (int)a2);
v15 = (SongInfoObject *)MusicDownloadManager::addSongObjectFromString(a1, (int)&v17, v13, v14);
std::string::~string((int)&v17);
v9 = (int)a1;
if ( !v15 )
{
LABEL_9:
v11 = (int)v6;
v12 = 1;
return MusicDownloadManager::loadSongInfoFailed(v9, v11, v12);
}
return MusicDownloadManager::loadSongInfoFinished((cocos2d::CCArray **)a1, v15);
}