//
// InheritanceNode::create from 0x4993a4 to 0x499400 (92 bytes)
//
// 2 xrefs:
// > GJEffectManager::processInheritedColors @ 0x49a7e8
// > GJEffectManager::processInheritedColors @ 0x49a810
//
// 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
//
InheritanceNode *InheritanceNode::create(int a1, InheritanceNode *a2)
{
InheritanceNode *v4; // r4
InheritanceNode_vtbl *v5; // r3
InheritanceNode *v6; // r0
v4 = (InheritanceNode *)operator new(0x44u);
cocos2d::CCObject::CCObject(v4);
v4->m_unk050 = 1;
v4->__vftable = (InheritanceNode_vtbl *)&off_A6A310;
v4->m_colorID = 0;
v4->m_inheritanceNode = nullptr;
v4->m_colorAction = nullptr;
v4->m_unk051 = 0;
if ( InheritanceNode::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->__vftable;
v6 = v4;
v4 = nullptr;
v5->~InheritanceNode_0(v6);
}
return v4;
}