//
// GameObject::updateSecondaryColorOnly from 0x44f020 to 0x44f052 (50 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:36 +0000
//
int __fastcall GameObject::updateSecondaryColorOnly(GameObject *this)
{
int result; // r0
int v3; // r1
int (__fastcall *v4)(GameObject *, unsigned __int8 *); // r5
unsigned __int8 *v5; // r0
result = GameObject::hasSecondaryColor(this);
if ( result )
{
v3 = *((_DWORD *)this + 140);
if ( v3 || *((_WORD *)this + 510) )
{
v4 = *(int (__fastcall **)(GameObject *, unsigned __int8 *))(*(_DWORD *)this + 796);
v5 = GameObject::colorForMode(this, v3, 0);
return v4(this, v5);
}
}
return result;
}