//
// SetupSpawnPopup::addRemap from 0x1000f8ac8 to 0x1000f8b60 (152 bytes)
//
// 2 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0x1000f8520
// > SetupSpawnPopup::onPasteRemap @ 0x1000f85f8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall SetupSpawnPopup::addRemap(SetupSpawnPopup *a1, int a2, int a3)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x22
__int64 v8; // x23
SpawnTriggerGameObject *v9; // x0
if ( !a1->m_isBusy )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)sub_10024A1B8(m_gameObject, *(_QWORD *)&a2);
else
m_gameObjects = a1->m_gameObjects;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v8 = 0;
do
{
v9 = (SpawnTriggerGameObject *)sub_10024A388(m_gameObjects, v8);
SpawnTriggerGameObject::addRemap(v9, a2, a3);
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_10024A36C(m_gameObjects) );
}
SetupSpawnPopup::queueUpdateButtons(a1);
}
}