//
// ItemTriggerGameObject::create from 0x100394b60 to 0x100394c30 (208 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10025482c
//
// 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 *v2; // x19
v2 = (char *)operator new(0x768u);
EffectGameObject::EffectGameObject((EffectGameObject *)v2);
*(_QWORD *)v2 = &off_100805378;
*((_QWORD *)v2 + 40) = off_100805AC0;
*((_QWORD *)v2 + 43) = off_100805B40;
*((_DWORD *)v2 + 459) = 0;
*((_QWORD *)v2 + 230) = &_mh_execute_header;
__asm { FMOV V1.2S, #1.0 }
*((_QWORD *)v2 + 231) = _D1;
*((_QWORD *)v2 + 232) = &_mh_execute_header;
*((_DWORD *)v2 + 466) = 3;
*(_QWORD *)(v2 + 1876) = 0;
*(_QWORD *)(v2 + 1884) = 0;
*(_QWORD *)(v2 + 1868) = 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 (ItemTriggerGameObject *)v2;
}