//
// GameObject::updateSecondaryColorOnly from 0x771e0c to 0x771e64 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x62050
//
// 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:53:13 +0000
//
__int64 __fastcall GameObject::updateSecondaryColorOnly(GameObject *this)
{
__int64 result; // x0
int v3; // w1
__int64 (__fastcall *v4)(GameObject *, unsigned __int8 *); // x20
unsigned __int8 *v5; // x0
result = GameObject::hasSecondaryColor(this);
if ( (_BYTE)result )
{
v3 = *((_DWORD *)this + 165);
if ( v3 || (result = (unsigned int)*((__int16 *)this + 584), *((_WORD *)this + 584)) )
{
v4 = *(__int64 (__fastcall **)(GameObject *, unsigned __int8 *))(*(_QWORD *)this + 1592LL);
v5 = GameObject::colorForMode(this, v3, 0);
return v4(this, v5);
}
}
return result;
}