//
// SetupSpawnPopup::addRemap from 0x8ea2b4 to 0x8ea354 (160 bytes)
//
// 3 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0x8ea3c0
// > SetupSpawnPopup::onPasteRemap @ 0x8ea3f0
// > ??> @ 0xbb308
//
// 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 SetupSpawnPopup::addRemap(SetupSpawnPopup *a1, int a2, int a3)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x20
unsigned int v8; // w19
SpawnTriggerGameObject *v9; // x0
bool v10; // cf
unsigned int v11; // w1
if ( !a1->m_isBusy )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(
(cocos2d::CCArray *)m_gameObject,
*(cocos2d::CCObject **)&a2);
else
m_gameObjects = a1->m_gameObjects;
v8 = 0;
while ( 1 )
{
v10 = v8 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v11 = v8++;
if ( v10 )
break;
v9 = (SpawnTriggerGameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, v11);
SpawnTriggerGameObject::addRemap(v9, a2, a3);
}
SetupSpawnPopup::queueUpdateButtons(a1);
}
}