//
// sub_1001DDB20 from 0x1001ddb20 to 0x1001ddbe4 (196 bytes)
//
// 4 xrefs:
// > MusicDownloadManager::parseMusicLibrary @ 0x1001dc550
// > MusicDownloadManager::parseMusicLibrary @ 0x1001dcc30
// > SongInfoObject::createWithCoder @ 0x1001e2754
// > SongInfoObject::createWithCoder @ 0x1001e27ec
//
// This function is hookable on this platform (idp: arm, 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:00:28 +0000
//
void __fastcall sub_1001DDB20(__int64 a1, __int64 a2)
{
__int64 v2; // x8
__int64 v5; // x8
void **v6; // x1
std::string::size_type v7; // x2
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v9; // [xsp+1Fh] [xbp-21h]
v2 = *(unsigned __int8 *)(a2 + 55);
if ( (v2 & 0x80u) != 0LL )
v2 = *(_QWORD *)(a2 + 40);
if ( v2 && (sub_1001E30D8(a1 + 576, a2 + 32) & 1) == 0 )
{
sub_1001DD80C(a1 + 576, a2);
v5 = *(char *)(a1 + 551);
if ( v5 < 0 )
v5 = *(_QWORD *)(a1 + 536);
if ( v5 )
std::string::append((std::string *)(a1 + 528), ";");
sub_1001E31B4(__p, a2);
if ( (v9 & 0x80u) == 0 )
v6 = __p;
else
v6 = (void **)__p[0];
if ( (v9 & 0x80u) == 0 )
v7 = v9;
else
v7 = (std::string::size_type)__p[1];
std::string::append((std::string *)(a1 + 528), (const std::string::value_type *)v6, v7);
if ( (char)v9 < 0 )
operator delete(__p[0]);
}
}