//
// ColorChannelSprite::updateValues from 0x1002c3b10 to 0x1002c3bf6 (230 bytes)
//
// 10 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x1001daaa3
// > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1e5
// > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3fe
// > LevelSettingsLayer::updateColorSprites @ 0x100257bf2
// > LevelSettingsLayer::updateColorSprites @ 0x100257c7e
// > LevelSettingsLayer::updateColorSprites @ 0x100257d0a
// > LevelSettingsLayer::updateColorSprites @ 0x100257d96
// > LevelSettingsLayer::updateColorSprites @ 0x100257e26
// > LevelSettingsLayer::updateColorSprites @ 0x100257e9a
// > LevelSettingsLayer::updateColorSprite @ 0x100259064
//
// This function is hookable on this platform (idp: pc, 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:28:06 +0000
//
__int64 __fastcall ColorChannelSprite::updateValues(__int64 a1, __int64 a2)
{
__int16 v3; // ax
__int64 result; // rax
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rdi
__int16 v8; // [rsp+Ch] [rbp-14h] BYREF
char v9; // [rsp+Eh] [rbp-12h]
if ( a2 )
{
ColorChannelSprite::updateCopyLabel((_QWORD **)a1, *(_DWORD *)(a2 + 120), *(_BYTE *)(a2 + 126));
ColorChannelSprite::updateOpacity((_QWORD **)a1, (__m128)*(unsigned int *)(a2 + 96));
ColorChannelSprite::updateBlending((_QWORD **)a1, *(unsigned __int8 *)(a2 + 84));
v3 = *(_WORD *)(a2 + 72);
v9 = *(_BYTE *)(a2 + 74);
v8 = v3;
if ( *(_DWORD *)(a2 + 120) )
{
if ( !*(_BYTE *)(a2 + 126) )
{
v9 = -90;
v8 = -22874;
}
}
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v8);
}
else
{
result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 960LL))(a1, &unk_100A079B3);
v5 = *(_QWORD *)(a1 + 600);
if ( v5 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
v6 = *(_QWORD *)(a1 + 608);
if ( v6 )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
v7 = *(_QWORD *)(a1 + 616);
if ( v7 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
}
return result;
}