//
// SetupSpawnPopup::addRemap from 0x5eaa60 to 0x5eaab0 (80 bytes)
//
// 2 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0x5eaafa
// > SetupSpawnPopup::onPasteRemap @ 0x5eab1e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:22 +0000
//
unsigned __int8 *__fastcall SetupSpawnPopup::addRemap(unsigned __int8 *this, cocos2d::CCObject *a2, int a3)
{
unsigned __int8 *v3; // r4
cocos2d::CCArray *v6; // r0
cocos2d::CCArray *v7; // r6
unsigned int i; // r5
SpawnTriggerGameObject *v9; // r0
v3 = this;
if ( !*(this + 712) )
{
v6 = *((cocos2d::CCArray **)this + 132);
if ( v6 )
v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v6, a2);
else
v7 = *((cocos2d::CCArray **)v3 + 133);
for ( i = 0; i < cocos2d::CCArray::count(v7); ++i )
{
v9 = (SpawnTriggerGameObject *)cocos2d::CCArray::objectAtIndex(v7, i);
SpawnTriggerGameObject::addRemap(v9, (int)a2, a3);
}
return SetupSpawnPopup::queueUpdateButtons(v3);
}
return this;
}