//
// SFXInfoObject::create from 0x100596460 to 0x10059653c (220 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::parseSFXLibrary @ 0x100595ebb
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall SFXInfoObject::create(int a1, std::string *a2, int a3, int a4, int a5)
{
char *v5; // rbx
std::string __str; // [rsp+0h] [rbp-50h] BYREF
int v8; // [rsp+1Ch] [rbp-34h]
int v9; // [rsp+20h] [rbp-30h]
int v10; // [rsp+24h] [rbp-2Ch]
v8 = a5;
v9 = a4;
v10 = a3;
v5 = (char *)operator new(0x68u);
cocos2d::CCObject::CCObject((__int64)v5);
*(_QWORD *)v5 = off_100970878;
*((_OWORD *)v5 + 5) = 0;
*((_QWORD *)v5 + 12) = 0;
*(_OWORD *)(v5 + 56) = 0;
*((_WORD *)v5 + 36) = 0;
if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )
sub_100006B70(&__str, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_, 0.0);
else
__str = *a2;
*((_DWORD *)v5 + 14) = a1;
std::string::operator=((std::string *)(v5 + 80), &__str);
*((_DWORD *)v5 + 15) = v10;
*((_DWORD *)v5 + 16) = v9;
*((_DWORD *)v5 + 17) = v8;
v5[72] = 0;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}