//
// cocos2d::CCAtlasNode::setColor from 0x10032af50 to 0x10032afd2 (130 bytes)
//
// 3 xrefs:
// > ??> @ 0x1008e10e0
// > ??> @ 0x100914e20
// > ??> @ 0x10098e510
//
// 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 *a1, const cocos2d::ccColor3B *a2)
{
int displayedOpacity; // ecx
cocos2d::ccColor3B v3; // [rsp+Ch] [rbp-4h] BYREF
v3 = *a2;
a1->m_tColorUnmodified = *a2;
if ( a1->m_bIsOpacityModifyRGB )
{
displayedOpacity = a1->_displayedOpacity;
v3.r = (32897 * displayedOpacity * (unsigned int)v3.r) >> 23;
v3.g = (32897 * displayedOpacity * (unsigned int)v3.g) >> 23;
v3.b = (32897 * displayedOpacity * (unsigned int)v3.b) >> 23;
}
cocos2d::CCNodeRGBA::setColor(a1, &v3);
}