//
// TriggerControlGameObject::create from 0x100397bf0 to 0x100397c7c (140 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x100254994
//
// 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)
{
TriggerControlGameObject *v2; // x19
v2 = (TriggerControlGameObject *)operator new(0x750u);
EffectGameObject::EffectGameObject(v2);
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TriggerControlGameObject_vtbl *)off_1008083D8;
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100808B20;
v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100808BA0;
v2->m_triggerControlFrame.m_data.m_long.capacitym1 = 0;
v2->m_triggerControlFrame.m_data.m_long.longStorage = nullptr;
v2->m_triggerControlFrame.m_data.m_long.size = 0;
v2->m_customTriggerValue = Stop;
if ( TriggerControlGameObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(TriggerControlGameObject *))v2->~TriggerControlGameObject_0)(v2);
return nullptr;
}
return v2;
}