//
// SetupRandAdvTriggerPopup::removeGroupIDFromObject from 0x10002f748 to 0x10002f7cc (132 bytes)
//
// 2 xrefs:
// > SetupRandAdvTriggerPopup::removeGroupID @ 0x10002f6f0
// > SetupRandAdvTriggerPopup::removeGroupID @ 0x10002f71c
//
// 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 SetupRandAdvTriggerPopup::removeGroupIDFromObject(
SetupRandAdvTriggerPopup *a1,
RandTriggerGameObject *a2,
int a3)
{
std::__vector_base::pointer end; // x8
std::__vector_base::pointer begin; // x20
__int64 v5; // x10
__int64 v7; // x9
size_t v8; // x21
end = a2->m_chanceObjects.__end_;
begin = a2->m_chanceObjects.__begin_;
v5 = (char *)end - (char *)begin;
if ( end != begin )
{
v7 = v5 >> 4;
if ( (unsigned __int64)(v5 >> 4) <= 1 )
v7 = 1;
v8 = v5 - 16;
while ( begin->m_groupID != a3 )
{
++begin;
v8 -= 16LL;
if ( !--v7 )
return;
}
if ( &begin[1] != end )
memmove(begin, &begin[1], v8);
a2->m_chanceObjects.__end_ = (std::__vector_base::pointer)((char *)begin + v8);
}
}