//
// SpawnTriggerGameObject::addRemap from 0x7711a0 to 0x771218 (120 bytes)
//
// 2 xrefs:
// > SetupSpawnPopup::addRemap @ 0x8ea300
// > ??> @ 0x4d3e8
//
// 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 SpawnTriggerGameObject::addRemap(SpawnTriggerGameObject *a1, int a2, int a3)
{
ChanceObject *m_start; // x1
ChanceObject *m_finish; // x4
int v6; // [xsp+18h] [xbp+18h] BYREF
int v7; // [xsp+1Ch] [xbp+1Ch] BYREF
v7 = a2;
v6 = a3;
if ( a2 != a3 )
{
m_start = a1->m_remapObjects.m_start;
m_finish = a1->m_remapObjects.m_finish;
if ( m_finish == m_start )
{
LABEL_8:
std::vector::emplace_back((char **)&a1->m_remapObjects, &v7, &v6);
}
else
{
while ( a2 != m_start->m_groupID || a3 != m_start->m_chance )
{
if ( m_finish == ++m_start )
goto LABEL_8;
}
}
}
}