//
// cocos2d::CCAtlasNode::setColor from 0x100316660 to 0x1003166e2 (130 bytes)
//
// 3 xrefs:
// > ??> @ 0x100ae56e0
// > ??> @ 0x100b1cc50
// > ??> @ 0x100ba2b08
//
// 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:28:40 +0000
//
__int64 __fastcall cocos2d::CCAtlasNode::setColor(__int64 a1, __int64 a2)
{
int v2; // ecx
unsigned __int16 v4; // [rsp+Ch] [rbp-4h] BYREF
unsigned __int8 v5; // [rsp+Eh] [rbp-2h]
v5 = *(_BYTE *)(a2 + 2);
v4 = *(_WORD *)a2;
*(_BYTE *)(a1 + 370) = *(_BYTE *)(a2 + 2);
*(_WORD *)(a1 + 368) = *(_WORD *)a2;
if ( *(_BYTE *)(a1 + 384) == 1 )
{
v2 = *(unsigned __int8 *)(a1 + 328);
LOBYTE(v4) = (32897 * v2 * (unsigned int)(unsigned __int8)v4) >> 23;
HIBYTE(v4) = (32897 * v2 * (unsigned int)HIBYTE(v4)) >> 23;
v5 = (32897 * v2 * (unsigned int)v5) >> 23;
}
return cocos2d::CCNodeRGBA::setColor(a1, &v4);
}