//
// SpawnTriggerGameObject::removeRemap from 0x1001d33c0 to 0x1001d3445 (133 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::onDeleteRemap @ 0x1002901da
//
// 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 __fastcall SpawnTriggerGameObject::removeRemap(SpawnTriggerGameObject *a1, int a2, int a3)
{
std::__vector_base::pointer begin; // rbx
std::__vector_base::pointer end; // rax
__int64 v5; // rcx
size_t v6; // r14
begin = a1->m_remapObjects.__begin_;
end = a1->m_remapObjects.__end_;
if ( begin != end )
{
v5 = (end - begin == 0) + end - begin;
v6 = (char *)end - (char *)begin - 16;
while ( begin->m_groupID != a2 || begin->m_chance != a3 )
{
++begin;
v6 -= 16LL;
if ( !--v5 )
return;
}
if ( &begin[1] != end )
memmove(begin, &begin[1], v6);
a1->m_remapObjects.__end_ = (std::__vector_base::pointer)((char *)begin + v6);
}
}