//
// GameObject::groupColor from 0x10069c640 to 0x10069c6cc (140 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:35:16 +0000
//
__int64 __fastcall GameObject::groupColor(__int64 a1, __int64 a2, char a3)
{
__int64 v3; // r12
__int64 v5; // rax
*(_BYTE *)(a1 + 639) = *(_BYTE *)(a2 + 2);
*(_WORD *)(a1 + 637) = *(_WORD *)a2;
if ( *(__int16 *)(a1 + 1184) > 0 )
{
v3 = 0;
do
{
v5 = GJEffectManager::colorForGroupID(
*(_QWORD **)(a1 + 1280),
*(__int16 *)(*(_QWORD *)(a1 + 1176) + 2 * v3),
a1 + 637,
a3);
*(_WORD *)(a1 + 637) = v5;
*(_BYTE *)(a1 + 639) = BYTE2(v5);
++v3;
}
while ( v3 < *(__int16 *)(a1 + 1184) );
}
return a1 + 637;
}