//
// SetupSpawnPopup::onDeleteRemap from 0x1000f8524 to 0x1000f85d0 (172 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::init @ 0x1000f8114
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupSpawnPopup::onDeleteRemap(SetupSpawnPopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x20
__int64 v5; // x21
SpawnTriggerGameObject *v6; // x0
if ( !a1->m_isBusy && (a1->m_remapOriginalID || a1->m_remapNewID) )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)sub_10024A1B8(m_gameObject, a2);
else
m_gameObjects = a1->m_gameObjects;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v5 = 0;
do
{
v6 = (SpawnTriggerGameObject *)sub_10024A388(m_gameObjects, v5);
SpawnTriggerGameObject::removeRemap(v6, a1->m_remapOriginalID, a1->m_remapNewID);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(m_gameObjects) );
}
*(_QWORD *)&a1->m_remapOriginalID = 0;
SetupSpawnPopup::queueUpdateButtons(a1);
}
}