//
// SetupSpawnPopup::addRemap from 0x4bbefc to 0x4bbf4c (80 bytes)
//
// 2 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0x4bbf96
// > SetupSpawnPopup::onPasteRemap @ 0x4bbfba
//
// 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 SetupSpawnPopup::addRemap(SetupSpawnPopup *a1, int a2, int a3)
{
EffectGameObject *m_gameObject; // r0
cocos2d::CCArray *m_gameObjects; // r6
unsigned int i; // r5
SpawnTriggerGameObject *v9; // r0
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;
for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )
{
v9 = (SpawnTriggerGameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, i);
SpawnTriggerGameObject::addRemap(v9, a2, a3);
}
SetupSpawnPopup::queueUpdateButtons(a1);
}
}