//
// cocos2d::CCLayerGradient::initWithColor from 0xd5c120 to 0xd5c1d8 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0xf1438
// > ??> @ 0x14762b0
// > ??> @ 0x151a900
//
// 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:47 +0000
//
__int64 __fastcall cocos2d::CCLayerGradient::initWithColor(__int64 a1, char *a2, _BYTE *a3, float *a4)
{
__int64 v7; // x3
char v8; // w3
char v9; // w4
_BYTE v11[8]; // [xsp+30h] [xbp+30h] BYREF
__int64 v12; // [xsp+38h] [xbp+38h]
*(_BYTE *)(a1 + 547) = *a3;
*(_BYTE *)(a1 + 548) = a3[1];
v7 = _stack_chk_guard;
*(_BYTE *)(a1 + 549) = a3[2];
v12 = v7;
*(_BYTE *)(a1 + 551) = a3[3];
*(_BYTE *)(a1 + 550) = a2[3];
cocos2d::CCPoint::operator=((float *)(a1 + 552), a4);
*(_BYTE *)(a1 + 561) = 0;
*(_BYTE *)(a1 + 560) = 1;
v8 = a2[1];
v9 = *a2;
v11[2] = a2[2];
v11[0] = v9;
v11[3] = -1;
v11[1] = v8;
return cocos2d::CCLayerColor::initWithColor(a1, (__int64)v11);
}