//
// GameObject::groupColor from 0x44ed9a to 0x44ede8 (78 bytes)
//
// 1 xrefs:
// > GameObject::colorForMode @ 0x44ef3e
//
// 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::groupColor(int a1, int a2, int a3)
{
int v3; // r6
int v6; // r5
int v7; // r0
v3 = a1 + 537;
v6 = 0;
*(_WORD *)(a1 + 537) = *(_WORD *)a2;
*(_BYTE *)(a1 + 539) = *(_BYTE *)(a2 + 2);
while ( v6 < *(__int16 *)(a1 + 1028) )
{
v7 = GJEffectManager::colorForGroupID(
*(_DWORD *)(a1 + 1104),
*(__int16 *)(*(_DWORD *)(a1 + 1024) + 2 * v6++),
v3,
a3);
*(_WORD *)(a1 + 537) = v7;
*(_BYTE *)(a1 + 539) = BYTE2(v7);
}
return v3;
}