//
// EditorSFXManager::createNewSound from 0x140185e70 to 0x140185f16 (166 bytes)
//
// 3 xrefs:
// > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1401849b4
// > EditorSFXManager::decodeSound @ 0x1401882d5
// > ??> @ 0x140918e3c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:27:38 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall EditorSFXManager::createNewSound(int a1)
{
__int64 v2; // rax
__int64 v3; // rbx
void *v5; // [rsp+38h] [rbp+10h]
v5 = operator new(0x808u);
v2 = SFXTriggerGameObject::SFXTriggerGameObject(v5);
v3 = v2;
if ( v2 )
{
if ( (unsigned __int8)EffectGameObject::init(v2, "GJ_sfxIcon_001.png") )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
*(_DWORD *)(v3 + 1888) = a1;
*(_DWORD *)(v3 + 1908) = 1065353216;
*(_QWORD *)(v3 + 1900) = 0;
*(_QWORD *)(v3 + 1912) = 0;
*(_QWORD *)(v3 + 1920) = 0;
*(_BYTE *)(v3 + 1930) = 0;
*(_BYTE *)(v3 + 1928) = 0;
*(_DWORD *)(v3 + 1972) = 0;
return v3;
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
}
return 0;
}