//
// GameObject::updateSecondaryColor from 0x771da4 to 0x771e0c (104 bytes)
//
// 2 xrefs:
// > PlayLayer::updateVisibility @ 0x701828
// > ??> @ 0x781a8
//
// 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
//
void __fastcall GameObject::updateSecondaryColor(GameObject *this)
{
int v2; // w1
void (__fastcall *v3)(GameObject *, unsigned __int8 *); // x20
unsigned __int8 *v4; // x0
if ( GameObject::hasSecondaryColor(this) )
{
v2 = *((_DWORD *)this + 165);
if ( v2 || *((_WORD *)this + 584) )
{
v3 = *(void (__fastcall **)(GameObject *, unsigned __int8 *))(*(_QWORD *)this + 1592LL);
v4 = GameObject::colorForMode(this, v2, 0);
v3(this, v4);
GameObject::updateSecondaryOpacity(this);
}
}
}