//
// GameObject::groupColor from 0x771a24 to 0x771ac4 (160 bytes)
//
// 2 xrefs:
// > GameObject::colorForMode @ 0x771c64
// > ??> @ 0x67a38
//
// 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
//
__int64 __fastcall GameObject::groupColor(__int64 a1, __int64 a2, unsigned __int8 a3)
{
__int64 v3; // x19
unsigned int v5; // w23
__int64 v6; // x22
int v7; // w21
__int64 v8; // x1
__int64 v9; // x0
v3 = a1 + 637;
v5 = a3;
v6 = 0;
*(_WORD *)(a1 + 637) = *(_WORD *)a2;
v7 = 0;
for ( *(_BYTE *)(a1 + 639) = *(_BYTE *)(a2 + 2); *(__int16 *)(a1 + 1184) > v7; *(_BYTE *)(v3 + 2) = BYTE2(v9) )
{
++v7;
v8 = (unsigned int)*(__int16 *)(*(_QWORD *)(a1 + 1176) + v6);
v6 += 2;
v9 = GJEffectManager::colorForGroupID(*(_QWORD *)(a1 + 1280), v8, v3, v5);
*(_WORD *)v3 = v9;
}
return v3;
}