//
// sub_5750B0 from 0x5750b0 to 0x5751b0 (256 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::dataLoaded @ 0x57a1f2
// > MusicDownloadManager::dataLoaded @ 0x57a216
//
// 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:41 +0000
//
int __fastcall sub_5750B0(int result, int **a2)
{
unsigned __int8 *v2; // r7
unsigned int v4; // r5
int v5; // r4
unsigned int v6; // r3
int v7; // r8
size_t v8; // r5
const char *v9; // r0
const char *v10; // r0
int v11; // r5
int v12; // [sp+Ch] [bp-30h] BYREF
int v13[3]; // [sp+10h] [bp-2Ch] BYREF
int v14[3]; // [sp+1Ch] [bp-20h] BYREF
int v15[3]; // [sp+28h] [bp-14h] BYREF
v2 = (unsigned __int8 *)result;
v4 = 0;
while ( 1 )
{
v5 = *v2;
v6 = (v5 & 1) != 0 ? *((_DWORD *)v2 + 1) : v5 >> 1;
if ( v4 >= v6 )
break;
v7 = std::string::find(v2, 44, v4);
if ( v7 == -1 )
{
if ( (v5 & 1) != 0 )
v7 = *((_DWORD *)v2 + 1);
else
v7 = v5 >> 1;
}
std::string::basic_string(v13, v2, v4, v7 - v4);
v8 = std::string::find((unsigned __int8 *)v13, 58, 0);
if ( v8 != -1 )
{
std::string::basic_string(v14, (unsigned __int8 *)v13, 0, v8);
if ( (v14[0] & 1) != 0 )
v9 = (const char *)v14[2];
else
v9 = (char *)v14 + 1;
v12 = atoi(v9);
std::string::~string((int)v14);
std::string::basic_string(v15, (unsigned __int8 *)v13, v8 + 1, 0xFFFFFFFF);
if ( (v15[0] & 1) != 0 )
v10 = (const char *)v15[2];
else
v10 = (char *)v15 + 1;
v11 = atoi(v10);
std::string::~string((int)v15);
if ( v12 )
{
if ( v11 > 0 )
*std::map::operator[](a2, &v12) = v11;
}
}
v4 = v7 + 1;
result = std::string::~string((int)v13);
}
return result;
}