//
// SetupSpawnPopup::onDeleteRemap from 0xa42cf0 to 0xa42d8c (156 bytes)
//
// 3 xrefs:
// > ??> @ 0xdafc8
// > SetupSpawnPopup::init @ 0xa43d28
// > ??> @ 0x15468e8
//
// 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:57 +0000
//
_BYTE *__fastcall SetupSpawnPopup::onDeleteRemap(_BYTE *this, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v2; // x1
__int64 v3; // x20
cocos2d::CCArray *v4; // x0
cocos2d::CCArray *v5; // x21
unsigned int v6; // w19
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
if ( !*(this + 1012) )
{
v2 = *((cocos2d::CCObject **)this + 131);
if ( v2 )
{
v3 = (__int64)this;
v4 = *((cocos2d::CCArray **)this + 85);
if ( v4 )
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v4, v2);
else
v5 = *(cocos2d::CCArray **)(v3 + 688);
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(v5);
v9 = v6++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(v5, v9);
SpawnTriggerGameObject::removeRemap(v7, *(_DWORD *)(v3 + 1048), *(_DWORD *)(v3 + 1052));
}
*(_DWORD *)(v3 + 1048) = 0;
*(_DWORD *)(v3 + 1052) = 0;
return SetupSpawnPopup::queueUpdateButtons((_BYTE *)v3);
}
}
return this;
}