//
// SFXTriggerGameObject::create from 0x87c8c4 to 0x87ca38 (372 bytes)
//
// 3 xrefs:
// > GameObject::createWithKey @ 0x7801b4
// > EditorSFXManager::createNewSound @ 0xcbf650
// > ??> @ 0x98a88
//
// This function is hookable on this platform (idp: arm, 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:55:53 +0000
//
__int64 __fastcall SFXTriggerGameObject::create(SFXTriggerGameObject *this, const char *a2)
{
__int64 v3; // x19
float v4; // s0
char v5; // w0
v3 = operator new(0x7E8u);
EffectGameObject::EffectGameObject((EffectGameObject *)v3);
*(float *)(v3 + 1884) = 1.0;
*(_QWORD *)(v3 + 1840) = 0;
*(float *)(v3 + 1916) = 1.0;
*(_QWORD *)v3 = &off_144E560;
*(_QWORD *)(v3 + 320) = &off_144ECB8;
*(_QWORD *)(v3 + 344) = &off_144ED38;
*(_DWORD *)(v3 + 1872) = 0;
*(_QWORD *)(v3 + 1848) = 0;
*(float *)(v3 + 1920) = 0.5;
*(_QWORD *)(v3 + 1856) = 0;
*(_DWORD *)(v3 + 1924) = 0;
*(_DWORD *)(v3 + 1864) = 0;
*(_DWORD *)(v3 + 1868) = 0;
*(_DWORD *)(v3 + 1876) = 0;
*(_DWORD *)(v3 + 1880) = 0;
*(_DWORD *)(v3 + 1888) = 0;
*(_DWORD *)(v3 + 1892) = 0;
*(_DWORD *)(v3 + 1896) = 0;
*(_DWORD *)(v3 + 1900) = 0;
*(_BYTE *)(v3 + 1904) = 0;
*(_BYTE *)(v3 + 1905) = 0;
*(_BYTE *)(v3 + 1906) = 0;
*(_BYTE *)(v3 + 1907) = 0;
*(_BYTE *)(v3 + 1908) = 0;
*(_BYTE *)(v3 + 1909) = 0;
*(_BYTE *)(v3 + 1910) = 0;
*(_DWORD *)(v3 + 1912) = 0;
*(_DWORD *)(v3 + 1928) = 0;
*(_DWORD *)(v3 + 1932) = 0;
*(_DWORD *)(v3 + 1936) = 0;
*(_DWORD *)(v3 + 1940) = 0;
*(_BYTE *)(v3 + 1944) = 0;
*(_BYTE *)(v3 + 1945) = 0;
*(_BYTE *)(v3 + 1946) = 0;
*(_DWORD *)(v3 + 1952) = 0;
*(_BYTE *)(v3 + 1956) = 0;
*(_BYTE *)(v3 + 1957) = 0;
*(_BYTE *)(v3 + 1958) = 0;
*(_DWORD *)(v3 + 1960) = 0;
*(_DWORD *)(v3 + 1964) = 0;
*(_DWORD *)(v3 + 1968) = 0;
*(_BYTE *)(v3 + 1972) = 0;
*(_BYTE *)(v3 + 1980) = 0;
*(_DWORD *)(v3 + 1984) = 0;
*(_DWORD *)(v3 + 1988) = 0;
*(_BYTE *)(v3 + 1996) = 0;
*(_QWORD *)(v3 + 2000) = 0;
*(_QWORD *)(v3 + 2008) = 0;
*(_QWORD *)(v3 + 2016) = 0;
*(_DWORD *)(v3 + 1948) = 0;
*(_DWORD *)(v3 + 1976) = 0;
*(_DWORD *)(v3 + 1992) = 0;
v4 = SFXTriggerGameObject::init((EffectGameObject *)v3, (const char *)this);
if ( v5 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 16LL))(v3, v4);
return 0;
}
}