//
// sub_1001D6418 from 0x1001d6418 to 0x1001d64e4 (204 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::getCustomSFXRoot @ 0x1001d6360
// > MusicDownloadManager::createCustomSFXFolder @ 0x1001d6a50
// > sub_1001DF084 @ 0x1001df3a4
//
// 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:25 +0000
//
char *__fastcall sub_1001D6418(int a1, __int64 a2)
{
char *v4; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v7; // [xsp+10h] [xbp-30h]
v4 = (char *)operator new(0xA0u);
cocos2d::CCObject::CCObject((__int64)v4);
*((_QWORD *)v4 + 7) = 0;
*((_QWORD *)v4 + 8) = 0;
*((_WORD *)v4 + 36) = 0;
*(_OWORD *)(v4 + 76) = 0u;
*(_OWORD *)(v4 + 92) = 0u;
*(_OWORD *)(v4 + 108) = 0u;
*(_OWORD *)(v4 + 124) = 0u;
*(_OWORD *)(v4 + 136) = 0u;
*(_QWORD *)v4 = off_1008F0490;
*((_QWORD *)v4 + 19) = 0;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v7 = *(_QWORD *)(a2 + 16);
}
sub_1001E3A74((int)v4, a1);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}