//
// TriggerControlGameObject::create from 0x1001eef10 to 0x1001eefcf (191 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d6d9
//
// 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
//
TriggerControlGameObject *__fastcall TriggerControlGameObject::create(const char *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x750u);
EffectGameObject::EffectGameObject((EffectGameObject *)v1);
*(_QWORD *)v1 = off_1008D7360;
*((_QWORD *)v1 + 40) = off_1008D7AA8;
*((_QWORD *)v1 + 43) = off_1008D7B28;
*((_OWORD *)v1 + 115) = 0;
*(_OWORD *)(v1 + 1852) = 0;
std::string::assign((std::string *)(v1 + 1840), a1);
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 (TriggerControlGameObject *)v1;
}