//
// cocos2d::CCLayerGradient::create from 0x7d8158 to 0x7d81aa (82 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
//
void *__fastcall cocos2d::CCLayerGradient::create(int a1, int a2, int a3)
{
void *v6; // r4
float v7; // r1
float v8; // r2
float v9; // r3
v6 = (void *)operator new(0x1CCu);
memset(v6, 0, 0x1CCu);
cocos2d::CCLayerGradient::CCLayerGradient((cocos2d::CCLayerGradient *)v6, v7, v8, v9);
if ( (*(int (__fastcall **)(void *, int, int, int))(*(_DWORD *)v6 + 656))(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(void *))(*(_DWORD *)v6 + 8))(v6);
return nullptr;
}
}