//
// MenuGameLayer::updateColors from 0x4921ec to 0x492240 (84 bytes)
//
// 1 xrefs:
// > MenuGameLayer::update @ 0x492a4e
//
// 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:49:38 +0000
//
int __fastcall MenuGameLayer::updateColors(MenuGameLayer *this)
{
int v2; // r5
unsigned __int8 *v3; // r0
int v4; // r4
int result; // r0
unsigned __int8 *v6; // r0
v2 = *((_DWORD *)this + 87);
v3 = (unsigned __int8 *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 316) + 472))(*(_DWORD *)(v2 + 316));
GJGroundLayer::updateGround01Color(v2, *v3 | (v3[1] << 8) | (v3[2] << 16));
v4 = *((_DWORD *)this + 87);
result = *(_DWORD *)(v4 + 320);
if ( result )
{
v6 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)result + 472))(result);
return GJGroundLayer::updateGround02Color(v4, *v6 | (v6[1] << 8) | (v6[2] << 16));
}
return result;
}