//
// SFXInfoObject::create from 0x458ecc to 0x458f76 (170 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::parseSFXLibrary @ 0x45aa72
//
// 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
//
int __fastcall SFXInfoObject::create(int a1, int a2, int a3, int a4, int a5)
{
int v8; // r4
int v9; // r6
int v10; // r3
int v11; // r0
_DWORD v13[2]; // [sp+8h] [bp-8h] BYREF
v13[0] = a3;
v13[1] = a4;
v8 = operator new(0x4Cu);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*(_DWORD *)v8 = &off_A661F0;
*(_DWORD *)(v8 + 52) = 0;
*(_DWORD *)(v8 + 56) = 0;
*(_DWORD *)(v8 + 60) = 0;
*(_DWORD *)(v8 + 64) = 0;
*(_BYTE *)(v8 + 68) = 0;
*(_BYTE *)(v8 + 69) = 0;
*(_DWORD *)(v8 + 72) = &unk_ACDDA8;
sub_775C20(v13);
v9 = SFXInfoObject::init(v8, a1, (int)v13, a3, a4, a5);
sub_774008(v13);
if ( v9 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
v10 = *(_DWORD *)v8;
v11 = v8;
v8 = 0;
(*(void (__fastcall **)(int))(v10 + 8))(v11);
}
return v8;
}