//
// GJBaseGameLayer::modifyGroupPhysics from 0x1001f9760 to 0x1001f97e8 (136 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9608
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9670
//
// 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 __fastcall GJBaseGameLayer::modifyGroupPhysics(
GJBaseGameLayer *a1,
AdvancedFollowEditObject *a2,
cocos2d::CCArray *a3)
{
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x21
unsigned __int64 v8; // x22
__int64 *v9; // x0
unsigned int m_uReference; // [xsp+Ch] [xbp-24h] BYREF
if ( a3 )
{
data = a3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
m_uReference = (*arr)[16].m_uReference;
v9 = sub_100018814(
&a1->m_gameState.m_gameObjectPhysics.__table_.__bucket_list_.__ptr_.__value_,
(int *)&m_uReference);
if ( v9 )
GJBaseGameLayer::modifyObjectPhysics(a1, a2, (GameObjectPhysics *)(v9 + 3));
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
}