//
// GameOptionsTrigger::create from 0x10037fd28 to 0x10037fddc (180 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10025495c
//
// 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
//
GameOptionsTrigger *__fastcall GameOptionsTrigger::create(const char *a1)
{
char *v2; // x19
v2 = (char *)operator new(0x768u);
EffectGameObject::EffectGameObject((EffectGameObject *)v2);
*(_QWORD *)v2 = &off_100800AB8;
*((_QWORD *)v2 + 40) = off_100801200;
*((_QWORD *)v2 + 43) = off_100801280;
*(_OWORD *)(v2 + 1836) = 0u;
*(_OWORD *)(v2 + 1852) = 0u;
*(_OWORD *)(v2 + 1868) = 0u;
*(_QWORD *)(v2 + 1884) = 0;
if ( EnhancedGameObject::init((EnhancedGameObject *)v2, a1) )
{
*((_DWORD *)v2 + 312) = 1;
v2[1450] = -1;
*((_WORD *)v2 + 724) = -1;
*((_DWORD *)v2 + 363) = 1056964608;
v2[1636] = 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GameOptionsTrigger *)v2;
}