//
// SFXTriggerGameObject::create from 0x1001aa540 to 0x1001aa6a0 (352 bytes)
//
// 3 xrefs:
// > GameObject::createWithKey @ 0x10066ecba
// > EditorSFXManager::createNewSound @ 0x1008e3c7f
// > EditorSFXManager::decodeSound @ 0x1008ea39b
//
// 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 12:26:03 +0000
//
char *__fastcall SFXTriggerGameObject::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x7E8u);
EffectGameObject::EffectGameObject(v1);
*(_QWORD *)v1 = off_100AC9708;
*((_QWORD *)v1 + 40) = off_100AC9E60;
*((_QWORD *)v1 + 43) = off_100AC9EE0;
*((_OWORD *)v1 + 115) = 0;
*((_OWORD *)v1 + 116) = 0;
*(_OWORD *)(v1 + 1868) = 0;
*((_DWORD *)v1 + 471) = 1065353216;
*((_DWORD *)v1 + 478) = 0;
*((_OWORD *)v1 + 118) = 0;
*(_QWORD *)(v1 + 1903) = 0;
*(_QWORD *)(v1 + 1916) = 0x3F0000003F800000LL;
*((_DWORD *)v1 + 494) = 0;
v1[1980] = 0;
*((_OWORD *)v1 + 125) = 0;
*((_QWORD *)v1 + 252) = 0;
*(_OWORD *)(v1 + 1924) = 0;
*(_QWORD *)(v1 + 1939) = 0;
*(_QWORD *)(v1 + 1948) = 0;
*(_DWORD *)(v1 + 1955) = 0;
*(_QWORD *)(v1 + 1965) = 0;
*((_QWORD *)v1 + 245) = 0;
*((_QWORD *)v1 + 248) = 0;
*(_QWORD *)(v1 + 1989) = 0;
if ( (unsigned __int8)EnhancedGameObject::init(v1, a1) )
{
*((_DWORD *)v1 + 312) = 1;
v1[1450] = -1;
*((_WORD *)v1 + 724) = -1;
*((_DWORD *)v1 + 363) = 1056964608;
v1[1636] = 1;
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}