//
// MusicDownloadManager::onGetAudioFilesizeCompleted from 0x56dd30 to 0x56ddf8 (200 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::handleIt @ 0x578024
//
// 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:35 +0000
//
unsigned int __fastcall MusicDownloadManager::onGetAudioFilesizeCompleted(
MusicDownloadManager *a1,
unsigned __int8 *a2)
{
_BOOL4 v4; // r4
int v6; // r4
unsigned int v7; // r5
const char *v8; // r0
const char *v9; // r0
int v10[3]; // [sp+4h] [bp-20h] BYREF
int v11; // [sp+10h] [bp-14h] BYREF
int v12; // [sp+14h] [bp-10h]
int v13; // [sp+18h] [bp-Ch]
MusicDownloadManager::removeDLFromActive(a1, "get_audio_size");
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "-1", 2u);
v4 = sub_56B0BE(a2, (unsigned __int8 *)v10);
std::string::~string((int)v10);
if ( v4 )
return MusicDownloadManager::musicActionFailed((int)a1, 8);
v11 = 0;
v12 = 0;
v13 = 0;
sub_56DAB4(a2, ":", &v11);
v6 = v11;
v7 = -1431655765 * ((v12 - v11) >> 2);
if ( v7 )
{
v8 = (*(_BYTE *)v11 & 1) != 0 ? *(const char **)(v11 + 8) : (const char *)(v11 + 1);
*((_DWORD *)a1 + 75) = atoi(v8);
if ( v7 > 1 )
{
if ( (*(_BYTE *)(v6 + 12) & 1) != 0 )
v9 = *(const char **)(v6 + 20);
else
v9 = (const char *)(v6 + 13);
*((_DWORD *)a1 + 76) = atoi(v9);
}
}
MusicDownloadManager::musicActionFinished((int)a1, 8);
return std::__vector_base::~__vector_base((int)&v11);
}