//
// cocos2d::CCLayerGradient::initWithColor from 0x1004acdd0 to 0x1004ace77 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x100ac5e60
// > ??> @ 0x100b55910
//
// This function is hookable on this platform (idp: pc, 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 12:30:57 +0000
//
char __fastcall cocos2d::CCLayerGradient::initWithColor(__int64 a1, unsigned __int8 *a2, _BYTE *a3, _QWORD *a4)
{
__int64 v4; // rax
__int64 v6; // [rsp+4h] [rbp-1Ch] BYREF
unsigned int v7[5]; // [rsp+Ch] [rbp-14h] BYREF
*(_BYTE *)(a1 + 547) = *a3;
*(_BYTE *)(a1 + 548) = a3[1];
*(_BYTE *)(a1 + 549) = a3[2];
*(_BYTE *)(a1 + 551) = a3[3];
*(_BYTE *)(a1 + 550) = a2[3];
sub_100278300((_QWORD *)(a1 + 552), a4);
*(_WORD *)(a1 + 560) = 1;
v7[0] = *a2 | (*(unsigned __int16 *)(a2 + 1) << 8) | 0xFF000000;
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v6, v4);
(*(void (__fastcall **)(__int64, unsigned int *, float, float))(*(_QWORD *)a1 + 1264LL))(
a1,
v7,
*(float *)&v6,
*((float *)&v6 + 1));
return 1;
}