//
// sub_10066D480 from 0x10066d480 to 0x10066d55a (218 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::parseNewsFeed @ 0x100662fb2
// > sub_10066D370 @ 0x10066d422
//
// This function is hookable on this platform (idp: pc, 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 12:35:02 +0000
//
void __fastcall sub_10066D480(_QWORD *a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
__int64 v6; // r15
char *v8; // r12
__int64 v9; // rdi
char *v10; // [rsp+40h] [rbp-30h]
if ( a4 )
{
if ( a4 >= 0x2AAAAAAAAAAAAABLL )
sub_10066D100();
v6 = a2;
v8 = (char *)operator new(96 * a4);
*a1 = v8;
a1[1] = v8;
a1[2] = &v8[96 * a4];
v10 = v8;
if ( a2 == a3 )
{
v9 = (__int64)v8;
}
else
{
v9 = (__int64)v8;
do
{
sub_10066CDC0(v9, v6);
v6 += 96;
v9 = (__int64)(v10 + 96);
v10 += 96;
}
while ( v6 != a3 );
}
a1[1] = v9;
}
}