//
// cocos2d::CCDrawNode::create from 0x100610dc0 to 0x100610e5a (154 bytes)
//
// 2 xrefs:
// > PlayLayer::init @ 0x1000ac738
// > LevelEditorLayer::init @ 0x1000dbb91
//
// 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
//
cocos2d::CCDrawNode *__fastcall cocos2d::CCDrawNode::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v0);
*(_QWORD *)v0 = off_1009815B8;
*((_QWORD *)v0 + 40) = off_1009819A8;
*((_QWORD *)v0 + 45) = 0;
v0[376] = 0;
*(_OWORD *)(v0 + 340) = 0;
sub_10028D130(v0 + 380);
*((_QWORD *)v0 + 46) = 0x30300000001LL;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (cocos2d::CCDrawNode *)v0;
}