//
// cocos2d::CCLayerGradient::initWithColor from 0x5cef00 to 0x5cef74 (116 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCLayerGradient::initWithColor(
cocos2d::CCLayerGradient *a1,
const cocos2d::ccColor4B *a2,
const cocos2d::ccColor4B *a3)
{
float *v3; // r3
cocos2d::CCPoint *p_m_AlongVector; // r0
int a; // r2
GLubyte g; // r2
GLubyte b; // r3
_DWORD v11[2]; // [sp+0h] [bp-8h] BYREF
v11[0] = a1;
v11[1] = a2;
p_m_AlongVector = &a1->m_AlongVector;
HIBYTE(p_m_AlongVector[-1].x) = a3->r;
LOBYTE(p_m_AlongVector[-1].y) = a3->g;
BYTE1(p_m_AlongVector[-1].y) = a3->b;
HIBYTE(p_m_AlongVector[-1].y) = a3->a;
a = a2->a;
BYTE2(p_m_AlongVector[-1].y) = a;
cocos2d::CCPoint::operator=(p_m_AlongVector, v3, a, (bool)v3);
a1->m_bCompressedInterpolation = 1;
a1->m_bShouldPremultiply = 0;
g = a2->g;
b = a2->b;
LOBYTE(v11[0]) = a2->r;
BYTE1(v11[0]) = g;
BYTE2(v11[0]) = b;
HIBYTE(v11[0]) = -1;
return cocos2d::CCLayerColor::initWithColor((int)a1, (int)v11);
}