//
// cocos2d::CCDrawNode::create from 0x100045bd4 to 0x100045c34 (96 bytes)
//
// 7 xrefs:
// > PlayLayer::init @ 0x10013e6d0
// > PlayLayer::init @ 0x10013e718
// > LevelEditorLayer::init @ 0x1003f6e9c
// > LevelEditorLayer::init @ 0x1003f6ee4
// > sub_1004AC310 @ 0x1004ac37c
// > sub_1004AE0D4 @ 0x1004ae118
// > sub_1004AE3D8 @ 0x1004ae7b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:57:38 +0000
//
void *cocos2d::CCDrawNode::create()
{
void *v0; // x19
v0 = operator new(0x1A0u);
cocos2d::CCDrawNode::CCDrawNode((__int64)v0);
if ( (*(unsigned int (__fastcall **)(void *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}