//
// SFXFolderObject::init from 0x10015c544 to 0x10015c5e4 (160 bytes)
//
// 1 xrefs:
// > SFXFolderObject::create @ 0x10015abbc
//
// 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
//
__int64 __fastcall SFXFolderObject::init(__int64 a1, int a2, __int64 a3, int a4)
{
std::string *v7; // x0
cocos2d::CCObject *v8; // x0
std::string __p; // [xsp+0h] [xbp-40h] BYREF
if ( *(char *)(a3 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a3, *(_QWORD *)(a3 + 8));
else
__p = *(std::string *)a3;
*(_DWORD *)(a1 + 56) = a2;
v7 = std::string::operator=((std::string *)(a1 + 80), &__p);
*(_DWORD *)(a1 + 60) = a4;
*(_QWORD *)(a1 + 64) = 0;
*(_BYTE *)(a1 + 72) = 0;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
*(_BYTE *)(a1 + 72) = 1;
v8 = (cocos2d::CCObject *)sub_10024A15C(v7);
*(_QWORD *)(a1 + 104) = v8;
cocos2d::CCObject::retain(v8);
return 1;
}