//
// ItemTriggerGameObject::create from 0x1001e5180 to 0x1001e5271 (241 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d524
//
// 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
//
ItemTriggerGameObject *__fastcall ItemTriggerGameObject::create(const char *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x768u);
EffectGameObject::EffectGameObject((EffectGameObject *)v1);
*(_QWORD *)v1 = off_1008D4300;
*((_QWORD *)v1 + 40) = off_1008D4A48;
*((_QWORD *)v1 + 43) = off_1008D4AC8;
*(_QWORD *)(v1 + 1836) = 0;
*((_DWORD *)v1 + 461) = 1;
*((_QWORD *)v1 + 231) = 0x3F8000003F800000LL;
*((_QWORD *)v1 + 232) = &_mh_execute_header;
*((_DWORD *)v1 + 466) = 3;
*(_OWORD *)(v1 + 1868) = 0;
*(_QWORD *)(v1 + 1884) = 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 (ItemTriggerGameObject *)v1;
}