//
// GJBaseGameLayer::modifyGroupPhysics from 0x9b2570 to 0x9b2648 (216 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x9c6c7c
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x9c6ce4
// > ??> @ 0x55ea0
//
// This function is hookable on this platform (idp: arm, 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:58:18 +0000
//
__int64 __fastcall GJBaseGameLayer::modifyGroupPhysics(GameToolbox *a1, __int64 a2, __int64 a3)
{
unsigned int *v5; // x0
__int64 *v6; // x19
__int64 *v7; // x20
__int64 i; // x2
__int64 *v9; // x2
int v11; // [xsp+54h] [xbp+54h] BYREF
if ( a3 )
{
v5 = *(unsigned int **)(a3 + 56);
if ( *v5 )
{
v6 = *((__int64 **)v5 + 2);
v7 = &v6[*v5 - 1];
if ( v6 <= v7 )
{
for ( i = *v6; *v6; i = *v6 )
{
v11 = *(_DWORD *)(i + 916);
v9 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)a1 + 134,
&v11);
if ( v9 )
GJBaseGameLayer::modifyObjectPhysics(a1, a2, (__int64)(v9 + 3));
if ( v7 < ++v6 )
break;
}
}
}
}
return _stack_chk_guard;
}