//
// GJEffectManager::transferPersistentItems from 0x5ca668 to 0x5ca6ba (82 bytes)
//
// 3 xrefs:
// > GJEffectManager::resetEffects @ 0x5cc56e
// > GJEffectManager::loadPersistentState @ 0x5cfc5a
// > GJEffectManager::loadFromState @ 0x5d22ea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:56 +0000
//
_DWORD *__fastcall GJEffectManager::transferPersistentItems(_DWORD *this, unsigned int a2)
{
_DWORD *v2; // r5
int *v3; // r6
int v4; // r8
unsigned int v5[2]; // [sp+0h] [bp+0h] BYREF
v5[0] = (unsigned int)this;
v5[1] = a2;
v2 = (_DWORD *)*(this + 122);
v3 = this + 115;
while ( v2 )
{
v4 = v2[3];
v5[0] = v2[2];
if ( v4 )
{
this = std::unordered_map::operator[]((int)v3, v5);
*this = v4;
}
else
{
this = (_DWORD *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique(
v3,
v5);
}
v2 = (_DWORD *)*v2;
}
return this;
}