//
// SetupRandAdvTriggerPopup::removeGroupIDFromObject from 0x10038f520 to 0x10038f5a5 (133 bytes)
//
// 0 xrefs:
//
// 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 begin; // rbx
__int64 v4; // r14
__int64 v5; // rax
size_t v6; // r14
begin = a2->m_chanceObjects.__begin_;
v4 = (char *)a2->m_chanceObjects.__end_ - (char *)begin;
if ( v4 )
{
v5 = (v4 >> 4 == 0) + (v4 >> 4);
v6 = v4 - 16;
while ( begin->m_groupID != a3 )
{
++begin;
v6 -= 16LL;
if ( !--v5 )
return;
}
if ( &begin[1] != a2->m_chanceObjects.__end_ )
memmove(begin, &begin[1], v6);
a2->m_chanceObjects.__end_ = (std::__vector_base::pointer)((char *)begin + v6);
}
}