//
// SFXFolderObject::create from 0x1006515c0 to 0x10065168d (205 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::getCustomSFXRoot @ 0x100651530
// > MusicDownloadManager::createCustomSFXFolder @ 0x100652126
// > MusicDownloadManager::parseSFXLibrary @ 0x10065fe40
//
// 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:34:49 +0000
//
char *__fastcall SFXFolderObject::create(unsigned int a1, __int128 *a2, unsigned int a3)
{
char *v4; // rbx
__int128 v6; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v4 = (char *)operator new(0xA0u);
cocos2d::CCObject::CCObject((__int64)v4);
*(_OWORD *)(v4 + 56) = 0;
*((_WORD *)v4 + 36) = 0;
*(_OWORD *)(v4 + 76) = 0;
*(_OWORD *)(v4 + 92) = 0;
*(_OWORD *)(v4 + 108) = 0;
*(_OWORD *)(v4 + 124) = 0;
*(_OWORD *)(v4 + 136) = 0;
*(_QWORD *)v4 = off_100B831A8;
*((_QWORD *)v4 + 19) = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v6, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v6 = *a2;
}
sub_100666B90(v4, a1, &v6, a3);
if ( (v6 & 1) != 0 )
operator delete(__p);
cocos2d::CCObject::autorelease((__int64)v4);
return v4;
}