//
// GJEffectManager::transferPersistentItems from 0x100010060 to 0x1000100ec (140 bytes)
//
// 2 xrefs:
// > GJEffectManager::resetEffects @ 0x10000ef08
// > GJEffectManager::loadFromState @ 0x1000170ac
//
// 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::transferPersistentItems(GJEffectManager *a1)
{
std::__hash_node_base, void *> *>::__next_pointer i; // x21
int next_high; // w23
int next; // [xsp+0h] [xbp-40h] BYREF
char v5; // [xsp+7h] [xbp-39h] BYREF
int *p_next; // [xsp+8h] [xbp-38h] BYREF
for ( i = a1->m_persistentItemCountMap.__table_.__p1_.__value_.__next_; i; i = i->__next_ )
{
next_high = HIDWORD(i[2].__next_);
next = (int)i[2].__next_;
if ( next_high )
{
p_next = &next;
*(_DWORD *)(sub_10001D150(&a1->m_itemCountMap, &next, &unk_10063553F, &p_next, &v5) + 20) = next_high;
}
else
{
sub_10001B104(&a1->m_itemCountMap, &next);
}
}
}