//
// SetupSpawnPopup::addRemap from 0xa42b9c to 0xa42c3c (160 bytes)
//
// 3 xrefs:
// > SetupSpawnPopup::onAddRemap @ 0xa42ca8
// > SetupSpawnPopup::onPasteRemap @ 0xa42cd8
// > ??> @ 0xf4240
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:57 +0000
//
_BYTE *__fastcall SetupSpawnPopup::addRemap(_BYTE *this, cocos2d::CCObject *a2, int a3)
{
__int64 v3; // x23
cocos2d::CCArray *v4; // x0
int v6; // w21
cocos2d::CCArray *v7; // x20
unsigned int v8; // w19
__int64 v9; // x0
bool v10; // cf
unsigned int v11; // w1
if ( !*(this + 1012) )
{
v3 = (__int64)this;
v4 = *((cocos2d::CCArray **)this + 85);
v6 = (int)a2;
if ( v4 )
v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v4, a2);
else
v7 = *(cocos2d::CCArray **)(v3 + 688);
v8 = 0;
while ( 1 )
{
v10 = v8 >= (unsigned int)cocos2d::CCArray::count(v7);
v11 = v8++;
if ( v10 )
break;
v9 = cocos2d::CCArray::objectAtIndex(v7, v11);
SpawnTriggerGameObject::addRemap(v9, v6, a3);
}
return SetupSpawnPopup::queueUpdateButtons((_BYTE *)v3);
}
return this;
}