//
// GJBaseGameLayer::modifyGroupPhysics from 0x59d028 to 0x59d094 (108 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x5a71a2
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x5a71bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:14 +0000
//
float __fastcall GJBaseGameLayer::modifyGroupPhysics(float result, int a2, int a3)
{
GameToolbox *v4; // r6
_DWORD *v5; // r2
int *v6; // r4
_DWORD *v7; // r9
int *v8; // r5
int v9; // r3
int v10; // t1
unsigned int v11[2]; // [sp+0h] [bp-8h] BYREF
*(float *)v11 = result;
v11[1] = a2;
v4 = (GameToolbox *)LODWORD(result);
if ( a3 )
{
v5 = *(_DWORD **)(a3 + 52);
if ( *v5 )
{
v6 = (int *)v5[3];
v7 = (_DWORD *)(LODWORD(result) + 908);
v8 = &v6[*v5 - 1];
while ( v6 <= v8 )
{
v10 = *v6++;
v9 = v10;
if ( !v10 )
break;
v11[0] = *(_DWORD *)(v9 + 780);
result = COERCE_FLOAT(
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
v7,
v11));
if ( result != 0.0 )
result = GJBaseGameLayer::modifyObjectPhysics(v4, a2, LODWORD(result) + 12);
}
}
}
return result;
}