//
// GJEffectManager::toggleItemPersistent from 0xa07cdc to 0xa07d68 (140 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x9ecee8
// > ??> @ 0xd8670
//
// 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
//
_DWORD *__fastcall GJEffectManager::toggleItemPersistent(GJEffectManager *this, int a2, char a3)
{
char *v4; // x21
int v5; // w21
_DWORD *result; // x0
int v7; // [xsp+3Ch] [xbp+3Ch] BYREF
v7 = a2;
if ( !a3 )
return (_DWORD *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique(
(__int64 *)this + 94,
&v7);
v4 = (char *)this + 712;
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 89,
&v7) )
{
v5 = *(_DWORD *)std::unordered_map::operator[]((__int64)v4, &v7);
}
else
{
v5 = 0;
}
result = (_DWORD *)std::unordered_map::operator[]((__int64)this + 752, &v7);
*result = v5;
return result;
}