//
// GJEffectManager::processPulseActions from 0xa19e38 to 0xa19f1c (228 bytes)
//
// 2 xrefs:
// > GJEffectManager::processColors @ 0xa1be4c
// > ??> @ 0xe41c0
//
// 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:59:36 +0000
//
unsigned __int64 __fastcall GJEffectManager::processPulseActions(GJEffectManager *this)
{
__int64 v2; // x19
__int64 v3; // x22
unsigned __int64 v4; // x21
unsigned __int64 result; // x0
__int64 v6; // x19
ColorAction *ColorAction; // x0
__int64 v8; // x23
unsigned __int64 v9; // x0
v2 = *((_QWORD *)this + 43);
v3 = 0;
v4 = 1;
result = 0x8E38E38E38E38E39LL * ((*((_QWORD *)this + 44) - v2) >> 3);
if ( result )
{
do
{
v6 = v2 + v3;
ColorAction = GJEffectManager::getColorAction(this, *(_DWORD *)(v6 + 20));
v8 = *((_QWORD *)ColorAction + 18);
if ( !*(_DWORD *)(v6 + 52) && !*((_DWORD *)ColorAction + 30) )
{
v9 = GJEffectManager::colorForPulseEffect(this, (__int16 *)(v8 + 323), v6);
*(_WORD *)(v8 + 323) = v9;
*(_BYTE *)(v8 + 325) = BYTE2(v9);
}
v2 = *((_QWORD *)this + 43);
v3 += 72;
result = 0x8E38E38E38E38E39LL * ((*((_QWORD *)this + 44) - v2) >> 3);
}
while ( result > v4++ );
}
return result;
}