//
// cocos2d::CCLayerGradient::create from 0x5d001a to 0x5d0058 (62 bytes)
//
// 0 xrefs:
//
// 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::CCLayerGradient *cocos2d::CCLayerGradient::create()
{
cocos2d::CCLayerGradient *v0; // r4
float v1; // r1
float v2; // r2
int v3; // r3
cocos2d::CCLayerGradient_vtbl *v4; // r3
cocos2d::CCLayerGradient *v5; // r0
v0 = (cocos2d::CCLayerGradient *)operator new(0x1CCu);
memset(v0, 0, sizeof(cocos2d::CCLayerGradient));
cocos2d::CCLayerGradient::CCLayerGradient(v0, v1, v2, v3);
if ( ((int (__fastcall *)(cocos2d::CCLayerGradient *))v0->init)(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
v4 = v0->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5 = v0;
v0 = nullptr;
v4->~CCLayerGradient_0(v5);
}
return v0;
}