//
// cocos2d::CCLayerGradient::initWithColor from 0xaea3c0 to 0xaea478 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0xb8db8
// > ??> @ 0x11911f0
// > ??> @ 0x1204ef0
//
// 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; // x3
float v4; // s0
float v5; // s1
float *v8; // x1
__int64 v9; // x3
GLubyte g; // w3
GLubyte r; // w4
_BYTE v13[8]; // [xsp+30h] [xbp+30h] BYREF
__int64 v14; // [xsp+38h] [xbp+38h]
v8 = v3;
a1->m_endColor.r = a3->r;
a1->m_endColor.g = a3->g;
v9 = _stack_chk_guard;
a1->m_endColor.b = a3->b;
v14 = v9;
a1->m_cEndOpacity = a3->a;
a1->m_cStartOpacity = a2->a;
cocos2d::CCPoint::operator=(&a1->m_AlongVector, v4, v5, v8);
a1->m_bShouldPremultiply = 0;
a1->m_bCompressedInterpolation = 1;
g = a2->g;
r = a2->r;
v13[2] = a2->b;
v13[0] = r;
v13[3] = -1;
v13[1] = g;
return cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)v13);
}