//
// cocos2d::CCDrawNode::create from 0x1006ed850 to 0x1006ed8ec (156 bytes)
//
// 7 xrefs:
// > PlayLayer::init @ 0x100079b68
// > PlayLayer::init @ 0x100079bc5
// > LevelEditorLayer::init @ 0x1000aaa43
// > LevelEditorLayer::init @ 0x1000aaa9d
// > sub_1008B76E0 @ 0x1008b7744
// > sub_1008B9980 @ 0x1008b99c8
// > sub_1008B9C20 @ 0x1008ba535
//
// This function is hookable on this platform (idp: pc, 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 12:35:50 +0000
//
char *cocos2d::CCDrawNode::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x1A0u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v0);
*(_QWORD *)v0 = off_100B95108;
*((_QWORD *)v0 + 40) = off_100B95508;
*((_QWORD *)v0 + 45) = 0;
*((_WORD *)v0 + 188) = 0;
*(_OWORD *)(v0 + 340) = 0;
sub_1002787A0(v0 + 380);
*((_QWORD *)v0 + 46) = 0x30300000001LL;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}