//
// GJBaseGameLayer::modifyGroupPhysics from 0x100295974 to 0x1002959fc (136 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x10029581c
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x100295884
//
// 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 11:02:05 +0000
//
__int64 *__fastcall GJBaseGameLayer::modifyGroupPhysics(__int64 *result, __int64 a2, __int64 a3)
{
unsigned int *v3; // x9
__int64 v4; // x8
__int64 *v6; // x20
unsigned __int64 v7; // x21
unsigned __int64 v8; // x22
int v9; // [xsp+Ch] [xbp-24h] BYREF
if ( a3 )
{
v3 = *(unsigned int **)(a3 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v6 = result;
v7 = *((_QWORD *)v3 + 2);
v8 = v7 + 8 * v4 - 8;
do
{
if ( !*(_QWORD *)v7 )
break;
v9 = *(_DWORD *)(*(_QWORD *)v7 + 916LL);
result = sub_100019268(v6 + 134, &v9);
if ( result )
result = (__int64 *)GJBaseGameLayer::modifyObjectPhysics(v6, a2, result + 3);
v7 += 8LL;
}
while ( v7 <= v8 );
}
}
return result;
}