//
// EnhancedTriggerObject::create from 0x1001bc9b0 to 0x1001bca56 (166 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d586
//
// 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
//
EnhancedTriggerObject *__fastcall EnhancedTriggerObject::create(const char *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x740u);
EffectGameObject::EffectGameObject((EffectGameObject *)v1);
*(_QWORD *)v1 = off_1008CA100;
*((_QWORD *)v1 + 40) = off_1008CA848;
*((_QWORD *)v1 + 43) = off_1008CA8C8;
*(_OWORD *)(v1 + 1836) = 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 (EnhancedTriggerObject *)v1;
}