//
// SongInfoObject::setSongLinks from 0x57362c to 0x573660 (52 bytes)
//
// 3 xrefs:
// > SongInfoObject::copyValues @ 0x5736b2
// > SongInfoObject::create @ 0x577c3e
// > SongInfoObject::createWithCoder @ 0x57848e
//
// 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:39 +0000
//
unsigned __int8 *__fastcall SongInfoObject::setSongLinks(int a1, unsigned __int8 *a2)
{
int v4; // r6
int v5; // r0
GJLinkObject *v6; // r0
std::string::operator=((unsigned __int8 *)(a1 + 388), a2);
v4 = *(_DWORD *)(a1 + 412);
while ( 1 )
{
v5 = *(_DWORD *)(a1 + 416);
if ( v4 == v5 )
break;
v6 = (GJLinkObject *)(v5 - 32);
*(_DWORD *)(a1 + 416) = v6;
GJLinkObject::~GJLinkObject(v6);
}
return MusicDownloadManager::parseLinkRows(a2, (unsigned int *)(a1 + 412));
}