//
// GJEffectManager::removeAllPulseActions from 0x1002dfdc0 to 0x1002dfe9b (219 bytes)
//
// 0 xrefs:
//
// 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 __fastcall GJEffectManager::removeAllPulseActions(GJEffectManager *a1)
{
std::__hash_node_base>, void *> *>::__next_pointer next; // r14
unsigned __int64 value; // rsi
std::__vector_base::pointer begin; // rax
unsigned __int64 i; // rdx
std::__hash_node_base>, void *> *> *v6; // r15
std::__hash_node_base>, void *> *> *v7; // rdi
a1->m_pulseEffectVector.__end_ = a1->m_pulseEffectVector.__begin_;
if ( a1->m_pulseEffectMap.__table_.__p2_.__value_ )
{
next = a1->m_pulseEffectMap.__table_.__p1_.__value_.__next_;
if ( next )
{
do
{
v6 = next->__next_;
v7 = next[3].__next_;
if ( v7 )
{
next[4].__next_ = v7;
operator delete(v7);
}
operator delete(next);
next = v6;
}
while ( v6 );
}
a1->m_pulseEffectMap.__table_.__p1_.__value_.__next_ = nullptr;
value = a1->m_pulseEffectMap.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( value )
__bzero(a1->m_pulseEffectMap.__table_.__bucket_list_.__ptr_.__value_, 8 * value);
a1->m_pulseEffectMap.__table_.__p2_.__value_ = 0;
}
begin = a1->m_unkVector2f0.__begin_;
for ( i = 0; i != 10000; i += 2LL )
*(_QWORD *)&begin[8 * (i >> 6)] &= ~(1LL << (i & 0x3E)) & ~(2LL << (i & 0x3E));
}