//
// sub_14049C210 from 0x14049c210 to 0x14049c2d4 (196 bytes)
//
// 9 xrefs:
// > sub_140487D30 @ 0x1404881e0
// > sub_140487D30 @ 0x140488203
// > MusicDownloadManager::importCustomSFXSetup @ 0x140488b52
// > MusicDownloadManager::importCustomSFXMappings @ 0x1404892b5
// > sub_14049BA10 @ 0x14049ba10
// > sub_14049CDD0 @ 0x14049cdd6
// > ??> @ 0x1408d23a0
// > ??> @ 0x1408d23b0
// > ??> @ 0x1409291a4
//
// 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 11:32:55 +0000
//
void __fastcall sub_14049C210(_QWORD *a1)
{
_QWORD *v1; // rbx
_QWORD *i; // rdi
_QWORD *v4; // r8
v1 = (_QWORD *)*a1;
if ( *a1 )
{
for ( i = (_QWORD *)a1[1]; v1 != i; v1 += 6 )
sub_14003D310((__int64)(v1 + 2));
v4 = (_QWORD *)*a1;
if ( (unsigned __int64)(48 * ((a1[2] - *a1) / 48LL)) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}