//
// cocos2d::CCDrawNode::create from 0x7cc0a0 to 0x7cc0d2 (50 bytes)
//
// 7 xrefs:
// > PlayLayer::init @ 0x40b0f6
// > PlayLayer::init @ 0x40b13a
// > LevelEditorLayer::init @ 0x476216
// > LevelEditorLayer::init @ 0x476256
// > sub_766930 @ 0x766978
// > DeathHistogram::init @ 0x766bdc
// > DeathHistogram::setAttemptLine @ 0x768688
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:31 +0000
//
cocos2d::CCDrawNode *__fastcall cocos2d::CCDrawNode::create(cocos2d::CCDrawNode *this)
{
cocos2d::CCDrawNode *v1; // r4
int v2; // r3
cocos2d::CCDrawNode *v3; // r0
v1 = (cocos2d::CCDrawNode *)operator new(0x158u);
cocos2d::CCDrawNode::CCDrawNode(v1);
if ( (*(int (__fastcall **)(cocos2d::CCDrawNode *))(*(_DWORD *)v1 + 40))(v1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
v2 = *(_DWORD *)v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(cocos2d::CCDrawNode *))(v2 + 8))(v3);
}
return v1;
}