//
// cocos2d::CCLayerGradient::create from 0xd5d9e0 to 0xd5dad0 (240 bytes)
//
// 1 xrefs:
// > ??> @ 0x8e450
//
// 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(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v5; // x19
float v6; // s0
v5 = (_QWORD *)operator new(0x238u);
memset(v5, 0, 0x238u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v5);
*v5 = &off_151A3E0;
v5[40] = off_151A978;
v5[41] = &off_151A9E8;
v5[42] = off_151AA00;
v5[43] = off_151AA20;
v5[44] = off_151AA48;
v5[51] = &off_151AA78;
v5[54] = &off_151AAF8;
v6 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 69));
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *, __int64, __int64, __int64, float))(*v5 + 1312LL))(
v5,
a1,
a2,
a3,
v6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5);
return nullptr;
}
}