//
// GJBaseGameLayer::modifyGroupPhysics from 0x47f188 to 0x47f1f4 (108 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fae
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fc8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::modifyGroupPhysics(GJBaseGameLayer *a1, AdvancedFollowEditObject *a2, cocos2d::CCArray *a3)
{
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r4
std::unordered_map *p_m_gameObjectPhysics; // r9
cocos2d::CCObject **v8; // r5
int v9; // r3
int v10; // t1
int v11; // r2
_DWORD v12[2]; // [sp+0h] [bp-8h] BYREF
v12[0] = a1;
v12[1] = a2;
if ( a3 )
{
data = a3->data;
if ( data->num )
{
arr = data->arr;
p_m_gameObjectPhysics = &a1->m_gameState.m_gameObjectPhysics;
v8 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v8 )
{
v10 = (int)*arr++;
v9 = v10;
if ( !v10 )
break;
v12[0] = *(_DWORD *)(v9 + 772);
v11 = std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::find(
p_m_gameObjectPhysics,
v12);
if ( v11 )
GJBaseGameLayer::modifyObjectPhysics(a1, a2, (GameObjectPhysics *)(v11 + 8));
}
}
}
}