//
// SpawnTriggerGameObject::removeRemap from 0x10038edb8 to 0x10038ee48 (144 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::onDeleteRemap @ 0x1000f859c
//
// 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; // x20
std::__vector_base::pointer end; // x8
unsigned __int64 v6; // x9
size_t i; // x21
begin = a1->m_remapObjects.__begin_;
end = a1->m_remapObjects.__end_;
if ( begin != end )
{
v6 = end - begin;
if ( v6 <= 1 )
v6 = 1;
for ( i = (char *)end - (char *)begin - 16; begin->m_groupID != a2 || begin->m_chance != a3; i -= 16LL )
{
++begin;
if ( !--v6 )
return;
}
if ( &begin[1] != end )
memmove(begin, &begin[1], i);
a1->m_remapObjects.__end_ = (std::__vector_base::pointer)((char *)begin + i);
}
}