//
// GJEffectManager::processPulseActions from 0x1002c92d0 to 0x1002c939c (204 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:28:09 +0000
//
unsigned __int64 __fastcall GJEffectManager::processPulseActions(__int64 a1)
{
unsigned __int64 result; // rax
__int64 v2; // r14
__int64 v3; // r15
unsigned __int64 v4; // r13
char *ColorAction; // rax
__int64 v6; // r12
int v7; // eax
v2 = *(_QWORD *)(a1 + 344);
if ( *(_QWORD *)(a1 + 352) != v2 )
{
v3 = 0;
v4 = 0;
do
{
ColorAction = GJEffectManager::getColorAction(a1, *(_DWORD *)(v2 + v3 + 20));
if ( !*(_DWORD *)(v2 + v3 + 52) && !*((_DWORD *)ColorAction + 30) )
{
v6 = *((_QWORD *)ColorAction + 18);
v7 = GJEffectManager::colorForPulseEffect(a1, v6 + 323, v3 + v2);
*(_WORD *)(v6 + 323) = v7;
*(_BYTE *)(v6 + 325) = BYTE2(v7);
}
++v4;
v2 = *(_QWORD *)(a1 + 344);
result = 0x8E38E38E38E38E39LL * ((*(_QWORD *)(a1 + 352) - v2) >> 3);
v3 += 72;
}
while ( result > v4 );
}
return result;
}