//
// ColorChannelSprite::updateValues from 0x8a3620 to 0x8a372c (268 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x840fec
// > CustomizeObjectLayer::updateColorSprite @ 0x841044
// > GJColorSetupLayer::updateSpriteColor @ 0x8a1a38
// > GJColorSetupLayer::updateSpriteColor @ 0x8a1a60
// > LevelSettingsLayer::updateColorSprite @ 0xa35878
// > ??> @ 0xbe428
//
// 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 ColorChannelSprite::updateValues(ColorChannelSprite *a1, ColorAction *a2)
{
GLubyte g; // w2
GLubyte b; // w1
int m_copyID; // w0
GLubyte r; // [xsp+30h] [xbp+30h] BYREF
char v8; // [xsp+31h] [xbp+31h]
char v9; // [xsp+32h] [xbp+32h]
if ( a2 )
{
ColorChannelSprite::updateCopyLabel(a1, a2->m_copyID, a2->m_copyColorLoop);
ColorChannelSprite::updateOpacity(a1, a2->m_fromOpacity);
ColorChannelSprite::updateBlending(a1, a2->m_blending);
g = a2->m_fromColor.g;
b = a2->m_fromColor.b;
m_copyID = a2->m_copyID;
r = a2->m_fromColor.r;
v8 = g;
v9 = b;
if ( m_copyID )
{
if ( !a2->m_copyColorLoop )
{
r = -90;
v8 = -90;
v9 = -90;
}
}
a1->setColor(a1, (const cocos2d::ccColor3B *)&r);
}
else
{
a1->setColor(a1, (const cocos2d::ccColor3B *)&off_EEDDB0);
ColorChannelSprite::updateCopyLabel(a1, 0, 0);
ColorChannelSprite::updateOpacity(a1, 1.0);
ColorChannelSprite::updateBlending(a1, 0);
}
}