//
// SFXInfoObject::create from 0x56e0e0 to 0x56e164 (132 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::createCustomSFXPlacement @ 0x56e432
// > MusicDownloadManager::resolveSFXPlacement @ 0x56f2a2
// > MusicDownloadManager::parseSFXLibrary @ 0x571f1c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:35 +0000
//
SFXInfoObject *__fastcall SFXInfoObject::create(int a1, int a2, int a3, int a4, int a5)
{
SFXInfoObject *v9; // r4
int v10; // r7
int v11; // r3
SFXInfoObject *v12; // r0
int v14[3]; // [sp+8h] [bp-10h] BYREF
v9 = (SFXInfoObject *)operator new(0x70u);
SFXInfoObject::SFXInfoObject(v9);
std::string::basic_string(v14, a2);
v10 = SFXInfoObject::init((int)v9, a1, (unsigned __int8 *)v14, a3, a4, a5);
std::string::~string((int)v14);
if ( v10 )
{
cocos2d::CCObject::autorelease(v9);
}
else
{
v11 = *(_DWORD *)v9;
v12 = v9;
v9 = nullptr;
(*(void (__fastcall **)(SFXInfoObject *))(v11 + 8))(v12);
}
return v9;
}