//
// sub_1001D833C from 0x1001d833c to 0x1001d8378 (60 bytes)
//
// 5 xrefs:
// > MusicDownloadManager::importCustomSFXSetup @ 0x1001d7f00
// > MusicDownloadManager::importCustomSFXSetup @ 0x1001d80c4
// > sub_1001D852C @ 0x1001d87f4
// > sub_1001D8A78 @ 0x1001d8c70
// > sub_1001D8A78 @ 0x1001d8d3c
//
// 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:26 +0000
//
__int64 __fastcall sub_1001D833C(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_1001E7678();
}
else
{
sub_1001E760C();
result = v2 + 40;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}