//
// cocos2d::CCLayerGradient::initWithColor from 0x1001c88b8 to 0x1001c8938 (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008ed9e8
// > ??> @ 0x100919d38
//
// 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 11:00:18 +0000
//
__int64 __fastcall cocos2d::CCLayerGradient::initWithColor(__int64 a1, unsigned __int16 *a2, __int64 a3, double *a4)
{
unsigned int v7; // [xsp+Ch] [xbp-14h] BYREF
*(_BYTE *)(a1 + 547) = *(_BYTE *)a3;
*(_WORD *)(a1 + 548) = *(_WORD *)(a3 + 1);
*(_BYTE *)(a1 + 551) = *(_BYTE *)(a3 + 3);
*(_BYTE *)(a1 + 550) = *((_BYTE *)a2 + 3);
sub_10002630C((_QWORD *)(a1 + 552), a4);
*(_WORD *)(a1 + 560) = 1;
v7 = *a2 | (*((unsigned __int8 *)a2 + 2) << 16) | 0xFF000000;
cocos2d::CCLayerColor::initWithColor(a1, (__int64)&v7);
return 1;
}