//
// ColorChannelSprite::updateValues from 0x9f8b4c to 0x9f8c58 (268 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x983768
// > CustomizeObjectLayer::updateColorSprite @ 0x9837c0
// > GJColorSetupLayer::updateSpriteColor @ 0x9f743c
// > GJColorSetupLayer::updateSpriteColor @ 0x9f7464
// > LevelSettingsLayer::updateColorSprite @ 0xb62a84
// > ??> @ 0xf8098
//
// This function is hookable on this platform (idp: arm, 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:59:15 +0000
//
__int64 __fastcall ColorChannelSprite::updateValues(ColorChannelSprite *this, ColorAction *a2)
{
__int64 v4; // x1
const char *v5; // x2
const char *v6; // x2
char v7; // w2
char v8; // w1
int v9; // w0
__int64 v11; // x1
const char *v12; // x2
const char *v13; // x2
char v14; // [xsp+30h] [xbp+30h] BYREF
char v15; // [xsp+31h] [xbp+31h]
char v16; // [xsp+32h] [xbp+32h]
if ( a2 )
{
ColorChannelSprite::updateCopyLabel(
this,
(char *)*((unsigned int *)a2 + 30),
(const char *)*((unsigned __int8 *)a2 + 126));
ColorChannelSprite::updateOpacity(this, *((float *)a2 + 24), v4, v5);
ColorChannelSprite::updateBlending(this, *((_BYTE *)a2 + 84), v6);
v7 = *((_BYTE *)a2 + 73);
v8 = *((_BYTE *)a2 + 74);
v9 = *((_DWORD *)a2 + 30);
v14 = *((_BYTE *)a2 + 72);
v15 = v7;
v16 = v8;
if ( v9 && !*((_BYTE *)a2 + 126) )
{
v14 = -90;
v15 = -90;
v16 = -90;
}
(*(void (__fastcall **)(ColorChannelSprite *, char *))(*(_QWORD *)this + 960LL))(this, &v14);
}
else
{
(*(void (__fastcall **)(ColorChannelSprite *, __int64 *))(*(_QWORD *)this + 960LL))(this, &qword_116D740);
ColorChannelSprite::updateCopyLabel(this, nullptr, nullptr);
ColorChannelSprite::updateOpacity(this, 1.0, v11, v12);
ColorChannelSprite::updateBlending(this, 0, v13);
}
return _stack_chk_guard;
}