//
// cocos2d::CCNode::create from 0x180003120 to 0x180003182 (98 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad27c
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCNode *__fastcall cocos2d::CCNode::create()
{
cocos2d::CCNode *v0; // rax
cocos2d::CCNode *v1; // rbx
v0 = (cocos2d::CCNode *)operator new(0x140u);
if ( v0 )
v1 = cocos2d::CCNode::CCNode(v0);
else
v1 = nullptr;
if ( v1 )
{
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCNode *))v1->init)(v1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
((void (__fastcall *)(cocos2d::CCNode *, __int64))v1->~CCNode)(v1, 1);
return nullptr;
}
return v1;
}