//
// GJEffectManager::resetUsedItemState from 0x1002ec260 to 0x1002ec327 (199 bytes)
//
// 1 xrefs:
// > PlayLayer::resetLevel @ 0x1000be993
//
// 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::resetUsedItemState(GJEffectManager *a1)
{
std::__hash_node_base *>::__next_pointer next; // rdi
std::__hash_node_base *> *v3; // r14
unsigned __int64 value; // rsi
std::__hash_node_base *>::__next_pointer v5; // rdi
std::__hash_node_base *> *v6; // r14
unsigned __int64 v7; // rsi
if ( a1->m_unk3f0.__table_.__p2_.__value_ )
{
next = a1->m_unk3f0.__table_.__p1_.__value_.__next_;
if ( next )
{
do
{
v3 = next->__next_;
operator delete(next);
next = v3;
}
while ( v3 );
}
a1->m_unk3f0.__table_.__p1_.__value_.__next_ = nullptr;
value = a1->m_unk3f0.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( value )
__bzero(a1->m_unk3f0.__table_.__bucket_list_.__ptr_.__value_, 8 * value);
a1->m_unk3f0.__table_.__p2_.__value_ = 0;
}
if ( a1->m_unk430.__table_.__p2_.__value_ )
{
v5 = a1->m_unk430.__table_.__p1_.__value_.__next_;
if ( v5 )
{
do
{
v6 = v5->__next_;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
a1->m_unk430.__table_.__p1_.__value_.__next_ = nullptr;
v7 = a1->m_unk430.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( v7 )
__bzero(a1->m_unk430.__table_.__bucket_list_.__ptr_.__value_, 8 * v7);
a1->m_unk430.__table_.__p2_.__value_ = 0;
}
}