//
// ColorChannelSprite::updateValues from 0x10000d5d0 to 0x10000d6d0 (256 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x100058a5c
// > sub_10020D628 @ 0x10020d69c
// > sub_100221790 @ 0x100221820
//
// 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 10:57:15 +0000
//
__int64 __fastcall ColorChannelSprite::updateValues(__int64 a1, __int64 a2)
{
__int16 v4; // w8
__int64 result; // x0
__int64 v6; // x0
__int64 v7; // x0
__int16 v8; // [xsp+Ch] [xbp-14h] BYREF
char v9; // [xsp+Eh] [xbp-12h]
if ( a2 )
{
ColorChannelSprite::updateCopyLabel((_QWORD **)a1, *(unsigned int *)(a2 + 120), *(unsigned __int8 *)(a2 + 126));
ColorChannelSprite::updateOpacity(a1, *(float *)(a2 + 96));
ColorChannelSprite::updateBlending((_QWORD **)a1, *(unsigned __int8 *)(a2 + 84));
v4 = *(_WORD *)(a2 + 72);
v9 = *(_BYTE *)(a2 + 74);
v8 = v4;
if ( *(_DWORD *)(a2 + 120) )
{
if ( (*(_BYTE *)(a2 + 126) & 1) == 0 )
{
v9 = -90;
v8 = -22874;
}
}
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v8);
}
else
{
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 960LL))(a1, &unk_10075BE73);
v6 = *(_QWORD *)(a1 + 600);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
v7 = *(_QWORD *)(a1 + 608);
if ( v7 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
result = *(_QWORD *)(a1 + 616);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
return result;
}