//
// GJEffectManager::transferPersistentItems from 0xa07d68 to 0xa07e28 (192 bytes)
//
// 4 xrefs:
// > GJEffectManager::resetEffects @ 0xa07f8c
// > GJEffectManager::loadPersistentState @ 0xa1362c
// > GJEffectManager::loadFromState @ 0xa1baa0
// > ??> @ 0x82e28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:22 +0000
//
__int64 __fastcall GJEffectManager::transferPersistentItems(GJEffectManager *this)
{
__int64 *v1; // x19
__int64 *v2; // x21
__int64 *v3; // x1
void *v4; // x0
int v5; // w20
int v7; // [xsp+4Ch] [xbp+4Ch] BYREF
void *v8; // [xsp+50h] [xbp+50h] BYREF
v1 = *((__int64 **)this + 96);
if ( v1 )
{
v2 = (__int64 *)((char *)this + 712);
do
{
while ( 1 )
{
v5 = *((_DWORD *)v1 + 5);
v7 = *((_DWORD *)v1 + 4);
if ( !v5 )
break;
*(_DWORD *)std::unordered_map::operator[]((__int64)v2, &v7) = v5;
v1 = (__int64 *)*v1;
if ( !v1 )
return _stack_chk_guard;
}
v3 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v2,
&v7);
if ( v3 )
{
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::remove(
v2,
v3,
(__int64)&v8);
v4 = v8;
v8 = nullptr;
if ( v4 )
operator delete(v4);
}
v1 = (__int64 *)*v1;
}
while ( v1 );
}
return _stack_chk_guard;
}