//
// GJEffectManager::removeAllPulseActions from 0x9fa68c to 0x9fa760 (212 bytes)
//
// 2 xrefs:
// > GJEffectManager::resetEffects @ 0xa07e3c
// > ??> @ 0x94048
//
// 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:16 +0000
//
__int64 __fastcall GJEffectManager::removeAllPulseActions(GJEffectManager *this)
{
__int64 v2; // x3
__int64 v3; // x2
unsigned __int64 i; // x1
unsigned __int64 v5; // x3
__int64 v6; // x2
char v7; // w0
__int64 result; // x0
__int64 v9; // x2
__int64 v10; // x0
v2 = *((_QWORD *)this + 43);
v3 = *((_QWORD *)this + 44);
if ( v2 != v3 )
*((_QWORD *)this + 44) = v3
- 72
* (((0xE38E38E38E38E39LL * ((unsigned __int64)(v3 - 72 - v2) >> 3)) & 0x1FFFFFFFFFFFFFFFLL)
+ 1);
if ( *((_QWORD *)this + 49) )
{
sub_9F82F0(*((_QWORD **)this + 48));
*((_QWORD *)this + 48) = 0;
v9 = *((_QWORD *)this + 47);
v10 = 0;
if ( v9 )
{
do
*(_QWORD *)(*((_QWORD *)this + 46) + 8 * v10++) = 0;
while ( v10 != v9 );
}
*((_QWORD *)this + 49) = 0;
}
for ( i = 0; i != 10000; ++i )
{
v5 = i >> 6;
v6 = *((_QWORD *)this + 86);
v7 = i & 0x3F;
result = *(_QWORD *)(v6 + 8 * v5) & ~(1LL << v7);
*(_QWORD *)(v6 + 8 * v5) = result;
}
return result;
}