//
// HSVLiveOverlay::hsvChanged from 0x100234f04 to 0x100234fe8 (228 bytes)
//
// 2 xrefs:
// > sub_100234FE8 @ 0x100234fec
// > ??> @ 0x1009027c0
//
// 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 11:01:18 +0000
//
__int64 __fastcall HSVLiveOverlay::hsvChanged(__int64 a1, _QWORD *a2)
{
int v4; // w19
__n128 v5; // q0
__int64 v6; // x20
__int64 v7; // x23
__int64 v8; // x24
__int64 result; // x0
__int64 v10; // x21
__int64 v11; // x22
__int64 v12; // x0
int v13; // w8
_QWORD *v14; // x8
__int64 RelativeSpriteColor; // x0
v4 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 64LL))(a2);
if ( v4 == 1 )
v6 = 1;
else
v6 = 2;
v7 = a2[47];
v8 = a2[48];
result = *(_QWORD *)(a1 + 672);
if ( !result )
{
v10 = *(_QWORD *)(a1 + 680);
if ( !v10 )
return result;
goto LABEL_8;
}
result = sub_1002E73C8(v5);
v10 = result;
if ( result )
{
LABEL_8:
result = sub_1002E757C(v10);
if ( !(_DWORD)result )
return result;
v11 = 0;
do
{
v12 = sub_1002E75A0(v10, v11);
v13 = *(_DWORD *)(v12 + 1028);
if ( v13 == 1006 || v13 == 899 )
{
if ( v4 == 1 )
{
*(_QWORD *)(v12 + 1612) = v7;
v14 = (_QWORD *)(v12 + 1620);
LABEL_16:
*v14 = v8;
}
}
else
{
RelativeSpriteColor = GameObject::getRelativeSpriteColor(v12, v6);
if ( RelativeSpriteColor )
{
*(_QWORD *)(RelativeSpriteColor + 16) = v7;
v14 = (_QWORD *)(RelativeSpriteColor + 24);
goto LABEL_16;
}
}
v11 = (unsigned int)(v11 + 1);
result = sub_1002E757C(v10);
}
while ( (unsigned int)v11 < (unsigned int)result );
}
return result;
}