//
// SetupRandAdvTriggerPopup::removeGroupIDFromObject from 0x10037a290 to 0x10037a315 (133 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:29:05 +0000
//
char *__fastcall SetupRandAdvTriggerPopup::removeGroupIDFromObject(__int64 a1, __int64 a2, int a3)
{
char *result; // rax
char *v4; // rbx
__int64 v5; // r14
size_t v6; // r14
v4 = *(char **)(a2 + 1840);
v5 = *(_QWORD *)(a2 + 1848) - (_QWORD)v4;
if ( v5 )
{
result = (char *)((v5 >> 4 == 0) + (v5 >> 4));
v6 = v5 - 16;
while ( *(_DWORD *)v4 != a3 )
{
v4 += 16;
v6 -= 16LL;
if ( !--result )
return result;
}
result = v4 + 16;
if ( v4 + 16 != *(char **)(a2 + 1848) )
result = (char *)memmove(v4, v4 + 16, v6);
*(_QWORD *)(a2 + 1848) = &v4[v6];
}
return result;
}