//
// ColorChannelSprite::updateValues from 0x5c2470 to 0x5c2520 (176 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x57e784
// > GJColorSetupLayer::updateSpriteColor @ 0x5c16de
// > LevelSettingsLayer::updateColorSprite @ 0x6a95f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:50 +0000
//
int __fastcall ColorChannelSprite::updateValues(ColorChannelSprite *this, ColorAction *a2)
{
char v4; // r1
char v5; // r2
int v6; // r3
_DWORD v8[2]; // [sp+0h] [bp-8h] BYREF
v8[0] = this;
v8[1] = a2;
if ( a2 )
{
ColorChannelSprite::updateCopyLabel((int)this, *((GJSpecialColorSelect **)a2 + 29), *((unsigned __int8 *)a2 + 122));
ColorChannelSprite::updateOpacity((int)this, *((const char **)a2 + 23));
ColorChannelSprite::updateBlending((int)this, *((unsigned __int8 *)a2 + 80));
v4 = *((_BYTE *)a2 + 68);
v5 = *((_BYTE *)a2 + 69);
BYTE2(v8[0]) = *((_BYTE *)a2 + 70);
v6 = *((_DWORD *)a2 + 29);
LOBYTE(v8[0]) = v4;
BYTE1(v8[0]) = v5;
if ( v6 )
{
if ( !*((_BYTE *)a2 + 122) )
{
LOWORD(v8[0]) = -22874;
BYTE2(v8[0]) = -90;
}
}
return (*(int (__fastcall **)(ColorChannelSprite *, _DWORD *))(*(_DWORD *)this + 480))(this, v8);
}
else
{
(*(void (__fastcall **)(ColorChannelSprite *, __int16 *))(*(_DWORD *)this + 480))(this, &word_BEE137);
ColorChannelSprite::updateCopyLabel((int)this, nullptr, 0);
ColorChannelSprite::updateOpacity((int)this, (const char *)0x3F800000);
return ColorChannelSprite::updateBlending((int)this, 0);
}
}