//
// GJEffectManager::removeAllPulseActions from 0x5c449e to 0x5c4510 (114 bytes)
//
// 1 xrefs:
// > GJEffectManager::resetEffects @ 0x5cc4d0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:52 +0000
//
unsigned int __fastcall GJEffectManager::removeAllPulseActions(GJEffectManager *this)
{
int v2; // r2
int v3; // r3
int v4; // r2
int v5; // r3
unsigned int i; // r3
unsigned int result; // r0
char v8; // r2
v2 = *((_DWORD *)this + 69);
while ( 1 )
{
v3 = *((_DWORD *)this + 70);
if ( v2 == v3 )
break;
*((_DWORD *)this + 70) = v3 - 72;
}
if ( *((_DWORD *)this + 75) )
{
sub_5C4482(*((char ***)this + 74));
v4 = *((_DWORD *)this + 73);
v5 = 0;
*((_DWORD *)this + 74) = 0;
while ( v5 != v4 )
*(_DWORD *)(*((_DWORD *)this + 72) + 4 * v5++) = 0;
*((_DWORD *)this + 75) = 0;
}
for ( i = 0; i != 10000; ++i )
{
result = i >> 5;
v8 = i & 0x1F;
*(_DWORD *)(*((_DWORD *)this + 112) + 4 * result) &= ~(1 << v8);
}
return result;
}