//
// PlayLayer::removeFromGroupOld from 0x1000846f0 to 0x10008474f (95 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:20:03 +0000
//
__int64 __fastcall PlayLayer::removeFromGroupOld(__int64 a1, __int64 a2)
{
int v2; // r15d
unsigned int GroupID; // eax
__int64 Group; // rax
__int64 result; // rax
if ( *(__int16 *)(a2 + 1168) > 0 )
{
v2 = 0;
do
{
GroupID = GameObject::getGroupID(a2, (unsigned int)v2);
Group = GJBaseGameLayer::getGroup(a1, GroupID);
sub_1007FF140(Group, a2, 1);
++v2;
result = (unsigned int)*(__int16 *)(a2 + 1168);
}
while ( v2 < (int)result );
}
return result;
}