//
// GJEffectManager::updateColors from 0x1002c8ce0 to 0x1002c8d36 (86 bytes)
//
// 1 xrefs:
// > PlayLayer::prepareCreateObjectsFromSetup @ 0x10007a70b
//
// 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:28:09 +0000
//
_QWORD *__fastcall GJEffectManager::updateColors(__int64 a1, int a2, int a3)
{
_QWORD *result; // rax
int v4; // edi
__int64 v5; // rcx
int v6; // r8d
result = *(_QWORD **)(a1 + 328);
if ( result )
{
result = (_QWORD *)result[7];
while ( 1 )
{
while ( 1 )
{
if ( !result )
return result;
v5 = result[33];
result = (_QWORD *)result[36];
v6 = *(_DWORD *)(v5 + 88);
v4 = a2;
if ( v6 != 1 )
break;
LABEL_4:
*(_WORD *)(v5 + 72) = v4;
*(_BYTE *)(v5 + 74) = BYTE2(v4);
}
if ( v6 == 2 )
{
v4 = a3;
goto LABEL_4;
}
}
}
return result;
}