//
// GJEffectManager::removeAllPulseActions from 0x8a4cf0 to 0x8a4d7c (140 bytes)
//
// 2 xrefs:
// > GJEffectManager::resetEffects @ 0x8b7918
// > ??> @ 0x6da58
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJEffectManager::removeAllPulseActions(GJEffectManager *a1)
{
PulseEffectAction *m_start; // x1
std::__detail::_Hash_node_base *M_nxt; // x0
std::__detail::_Hash_node_base *v4; // x19
std::uintptr_t *m_bitptr; // x3
unsigned __int64 v6; // x1
unsigned __int64 v7; // x2
__int64 v8; // x0
m_start = a1->m_pulseEffectVector.m_start;
M_nxt = a1->m_pulseEffectMap._M_h._M_before_begin._M_nxt;
a1->m_pulseEffectVector.m_finish = m_start;
if ( M_nxt )
{
do
{
v4 = M_nxt->_M_nxt;
sub_8A272C(M_nxt);
M_nxt = v4;
}
while ( v4 );
}
memset(a1->m_pulseEffectMap._M_h._M_buckets, 0, 8 * a1->m_pulseEffectMap._M_h._M_bucket_count);
a1->m_pulseEffectMap._M_h._M_before_begin._M_nxt = nullptr;
m_bitptr = a1->m_unkVector2f0.m_start.m_bitptr;
v6 = 0;
a1->m_pulseEffectMap._M_h._M_element_count = 0;
do
{
v7 = v6 >> 6;
v8 = 1LL << (v6++ & 0x3F);
m_bitptr[v7] &= ~v8;
}
while ( v6 != 10000 );
}