//
// SetupSpawnPopup::onDeleteRemap from 0x5eab28 to 0x5eab8a (98 bytes)
//
// 0 xrefs:
//
// 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:54:22 +0000
//
unsigned __int8 *__fastcall SetupSpawnPopup::onDeleteRemap(unsigned __int8 *this, cocos2d::CCObject *a2)
{
unsigned __int8 *v2; // r4
cocos2d::CCArray *v3; // r0
cocos2d::CCArray *v4; // r6
unsigned int i; // r5
int v6; // r0
v2 = this;
if ( !*(this + 712) && (*((_DWORD *)this + 183) || *((_DWORD *)this + 184)) )
{
v3 = *((cocos2d::CCArray **)this + 132);
if ( v3 )
v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v3, a2);
else
v4 = *((cocos2d::CCArray **)v2 + 133);
for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, i);
SpawnTriggerGameObject::removeRemap(v6, *((_DWORD *)v2 + 183), *((_DWORD *)v2 + 184));
}
*((_DWORD *)v2 + 183) = 0;
*((_DWORD *)v2 + 184) = 0;
return SetupSpawnPopup::queueUpdateButtons(v2);
}
return this;
}