//
// GJEffectManager::removePersistentFromAllItems from 0x5c3f6c to 0x5c3fa8 (60 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x468264
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x5bd4f4
//
// 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:51 +0000
//
_DWORD *__fastcall GJEffectManager::removePersistentFromAllItems(_DWORD *this)
{
_DWORD *v1; // r4
_DWORD *v2; // r5
_DWORD *v3; // r3
v1 = this;
if ( *(this + 123) )
{
for ( this = (_DWORD *)*(this + 122); this; this = v2 )
{
v2 = (_DWORD *)*this;
operator delete(this);
}
v3 = (_DWORD *)v1[121];
v1[122] = 0;
while ( this != v3 )
{
*(_DWORD *)(v1[120] + 4 * (_DWORD)this) = 0;
this = (_DWORD *)((char *)this + 1);
}
v1[123] = 0;
}
return this;
}