//
// cocos2d::CCLayerGradient::create from 0x7d81aa to 0x7d81e8 (62 bytes)
//
// 0 xrefs:
//
// 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:41 +0000
//
int *__fastcall cocos2d::CCLayerGradient::create(cocos2d::CCLayerGradient *this)
{
int *v1; // r4
float v2; // r1
float v3; // r2
float v4; // r3
int v5; // r3
int *v6; // r0
v1 = (int *)operator new(0x1CCu);
memset(v1, 0, 0x1CCu);
cocos2d::CCLayerGradient::CCLayerGradient((cocos2d::CCLayerGradient *)v1, v2, v3, v4);
if ( (*(int (__fastcall **)(int *))(*v1 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v5 = *v1;
v6 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v5 + 8))(v6);
}
return v1;
}