//
// GameObject::updateSecondaryColor from 0x44efea to 0x44f020 (54 bytes)
//
// 1 xrefs:
// > PlayLayer::updateVisibility @ 0x406f28
//
// 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::updateSecondaryColor(GameObject *this)
{
int result; // r0
int v3; // r1
void (__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 = *(void (__fastcall **)(GameObject *, unsigned __int8 *))(*(_DWORD *)this + 796);
v5 = GameObject::colorForMode(this, v3, 0);
v4(this, v5);
return GameObject::updateSecondaryOpacity(this);
}
}
return result;
}