//
// SongTriggerGameObject::create from 0x1001d0870 to 0x1001d09d6 (358 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d593
//
// 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
//
SongTriggerGameObject *__fastcall SongTriggerGameObject::create(const char *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x7D0u);
EffectGameObject::EffectGameObject((EffectGameObject *)v1);
*((_OWORD *)v1 + 116) = 0;
*((_OWORD *)v1 + 115) = 0;
*((_QWORD *)v1 + 234) = 0;
*((_DWORD *)v1 + 470) = 1065353216;
*((_DWORD *)v1 + 477) = 0;
*(_OWORD *)(v1 + 1884) = 0;
*(_QWORD *)(v1 + 1899) = 0;
*((_QWORD *)v1 + 239) = 0x3F0000003F800000LL;
*((_DWORD *)v1 + 493) = 0;
v1[1976] = 0;
*((_OWORD *)v1 + 120) = 0;
*(_QWORD *)(v1 + 1935) = 0;
*((_QWORD *)v1 + 243) = 0;
*(_DWORD *)(v1 + 1951) = 0;
*(_QWORD *)(v1 + 1956) = 0;
*(_QWORD *)(v1 + 1961) = 0;
*(_QWORD *)(v1 + 1980) = 0;
*(_QWORD *)(v1 + 1985) = 0;
*(_QWORD *)v1 = off_1008D0268;
*((_QWORD *)v1 + 40) = off_1008D09B0;
*((_QWORD *)v1 + 43) = off_1008D0A30;
*(_DWORD *)(v1 + 1993) = 0;
*((_DWORD *)v1 + 499) = 0;
if ( EnhancedGameObject::init((EnhancedGameObject *)v1, a1) )
{
*((_DWORD *)v1 + 312) = 1;
v1[1450] = -1;
*((_WORD *)v1 + 724) = -1;
*((_DWORD *)v1 + 363) = 1056964608;
v1[1636] = 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (SongTriggerGameObject *)v1;
}