//
// sub_1001D6D7C from 0x1001d6d7c to 0x1001d6e5c (224 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::createCustomSFXPlacement @ 0x1001d6cf8
// > sub_1001D6E84 @ 0x1001d6f58
// > sub_1001DF084 @ 0x1001df3e8
//
// 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_1001D6D7C(int a1, __int64 a2)
{
char *v4; // x19
std::string __p; // [xsp+0h] [xbp-50h] BYREF
v4 = (char *)operator new(0x98u);
cocos2d::CCObject::CCObject((__int64)v4);
*(_QWORD *)v4 = off_1008F0430;
*((_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;
if ( *(char *)(a2 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a2, *(_QWORD *)(a2 + 8));
else
__p = *(std::string *)a2;
sub_1001E3974((int)v4, a1, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}