//
// SFXFolderObject::create from 0x56e1d8 to 0x56e260 (136 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::getCustomSFXRoot @ 0x56e2a6
// > MusicDownloadManager::createCustomSFXFolder @ 0x56e52a
// > MusicDownloadManager::parseSFXLibrary @ 0x571f4c
//
// 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 SFXFolderObject::create(int a1, int a2, int a3)
{
SFXInfoObject *v6; // r4
int v7; // r7
int v8; // r3
SFXInfoObject *v9; // r0
int v11[3]; // [sp+0h] [bp-14h] BYREF
v6 = (SFXInfoObject *)operator new(0x74u);
SFXInfoObject::SFXInfoObject(v6);
*(_DWORD *)v6 = &off_CB1348;
*((_DWORD *)v6 + 28) = 0;
std::string::basic_string(v11, a2);
v7 = SFXFolderObject::init((int)v6, a1, (int)v11, a3);
std::string::~string((int)v11);
if ( v7 )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v8 = *(_DWORD *)v6;
v9 = v6;
v6 = nullptr;
(*(void (__fastcall **)(SFXInfoObject *))(v8 + 8))(v9);
}
return v6;
}