//
// SpawnTriggerGameObject::addRemap from 0x4f6858 to 0x4f68ae (86 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::addRemap @ 0x5eaa9c
//
// 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:51:17 +0000
//
void __fastcall SpawnTriggerGameObject::addRemap(SpawnTriggerGameObject *this, int a2, int a3)
{
_DWORD *i; // r3
int v4; // [sp+0h] [bp-Ch] BYREF
int v5[2]; // [sp+4h] [bp-8h] BYREF
v5[1] = a3;
v5[0] = a2;
v4 = a3;
if ( a2 != a3 )
{
for ( i = *((_DWORD **)this + 412); i != *((_DWORD **)this + 413); i += 4 )
{
if ( *i == a2 && i[2] == a3 )
return;
}
if ( (unsigned int)i >= *((_DWORD *)this + 414) )
{
std::vector::__emplace_back_slow_path((int *)this + 412, v5, &v4);
}
else
{
if ( i )
{
i[2] = a3;
*i = a2;
i[1] = a2;
i[3] = 0;
}
*((_DWORD *)this + 413) += 16;
}
}
}