//
// cocos2d::CCAtlasNode::setColor from 0x180001de0 to 0x180001e64 (132 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800e5778
// > ??> @ 0x1800eb778
// > ??> @ 0x180105938
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad0fc
//
// 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
//
void __fastcall cocos2d::CCAtlasNode::setColor(cocos2d::CCAtlasNode *this, const struct cocos2d::_ccColor3B *a2)
{
bool v2; // zf
__int16 v3; // ax
int b; // r10d
int m_uID_low; // r8d
struct cocos2d::_ccColor3B v6; // [rsp+30h] [rbp+8h] BYREF
v2 = LOBYTE(this->m_fScaleX) == 0;
v3 = *(_WORD *)&a2->r;
b = a2->b;
LOWORD(this->m_uOrderOfArrival) = *(_WORD *)&a2->r;
*(_WORD *)&v6.r = v3;
BYTE2(this->m_uOrderOfArrival) = a2->b;
v6.b = b;
if ( !v2 )
{
m_uID_low = LOBYTE(this->m_uID);
v6.r = m_uID_low * (unsigned int)v6.r / 0xFF;
v6.g = m_uID_low * (unsigned int)v6.g / 0xFF;
v6.b = m_uID_low * b / 0xFFu;
}
cocos2d::CCNodeRGBA::setColor(this, &v6);
}