//
// cocos2d::CCLayerGradient::initWithColor from 0x100149fc4 to 0x10014a044 (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x100798688
// > ??> @ 0x1007c18d0
//
// 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
//
bool __fastcall cocos2d::CCLayerGradient::initWithColor(
cocos2d::CCLayerGradient *a1,
const cocos2d::ccColor4B *a2,
const cocos2d::ccColor4B *a3,
const cocos2d::CCPoint *a4)
{
unsigned int v7; // [xsp+Ch] [xbp-14h] BYREF
a1->m_endColor = *(cocos2d::ccColor3B *)&a3->r;
a1->m_cEndOpacity = a3->a;
a1->m_cStartOpacity = a2->a;
sub_1000229D0(&a1->m_AlongVector, (double *)a4);
*(_WORD *)&a1->m_bCompressedInterpolation = 1;
v7 = *(unsigned __int16 *)&a2->r | (a2->b << 16) | 0xFF000000;
cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v7);
return 1;
}