//
// cocos2d::CCLayerGradient::create from 0xd5dad0 to 0xd5dba0 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x8cbc0
//
// This function is hookable on this platform (idp: arm, 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 13:07:48 +0000
//
_QWORD *__fastcall cocos2d::CCLayerGradient::create(cocos2d::CCLayerGradient *this)
{
_QWORD *v1; // x19
float v2; // s0
v1 = (_QWORD *)operator new(0x238u);
memset(v1, 0, 0x238u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v1);
*v1 = &off_151A3E0;
v1[40] = off_151A978;
v1[41] = &off_151A9E8;
v1[42] = off_151AA00;
v1[43] = off_151AA20;
v1[44] = off_151AA48;
v1[51] = &off_151AA78;
v1[54] = &off_151AAF8;
v2 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 69));
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *, float))(*v1 + 80LL))(v1, v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v1 + 16LL))(v1);
return nullptr;
}
}