//
// cocos2d::CCLayerColor::create from 0x180051690 to 0x1800516f5 (101 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc0d0
//
// 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 11:21:45 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLayerColor *__fastcall cocos2d::CCLayerColor::create()
{
cocos2d::CCLayerColor *v0; // rax
cocos2d::CCObject *v1; // rbx
v0 = (cocos2d::CCLayerColor *)sub_1800E4AC0(0x220u);
if ( v0 )
v1 = cocos2d::CCLayerColor::CCLayerColor(v0);
else
v1 = nullptr;
if ( v1 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v1 + 72LL))(v1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v1 + 8LL))(v1, 1);
return nullptr;
}
return v1;
}