//
// GJBaseGameLayer::moveObjectsSilent from 0x8631a0 to 0x86328c (236 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x874fc0
// > ??> @ 0x8d6f0
//
// 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::moveObjectsSilent(GJBaseGameLayer *a1, int a2, double a3, double a4)
{
cocos2d::CCArray *Group; // x0
cocos2d::ccArray *data; // x1
GameObject **arr; // x20
GameObject **i; // x22
GameObject *v12; // x19
float m_positionX; // s3
float m_positionY; // s2
Group = GJBaseGameLayer::getGroup(a1, a2);
if ( Group )
{
data = Group->data;
if ( data->num )
{
arr = (GameObject **)data->arr;
for ( i = &arr[data->num - 1]; i >= arr; v12->m_lastPosition.y = m_positionY )
{
v12 = *arr;
if ( !*arr )
break;
if ( !v12->m_tempOffsetXRelated )
v12->m_positionX = v12->m_positionX + a3;
++arr;
v12->m_positionY = v12->m_positionY + a4;
GameObject::dirtifyObjectRect(v12);
GameObject::dirtifyObjectPos(v12);
a1->updateObjectSection(a1, v12);
m_positionX = v12->m_positionX;
m_positionY = v12->m_positionY;
v12->m_lastPosition.x = m_positionX;
}
}
}
GJEffectManager::saveCompletedMove(a1->m_effectManager, a2, a3, a4);
}