//
// GJBaseGameLayer::moveObjectsSilent from 0x100137c90 to 0x100137dda (330 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x100137b3c
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJBaseGameLayer::moveObjectsSilent(GJBaseGameLayer *a1, int a2, double a3, double a4)
{
int v4; // eax
intptr_t v5; // r15
cocos2d::CCArray *v6; // r12
cocos2d::ccArray *data; // rax
cocos2d::CCObject **arr; // r12
unsigned __int64 v9; // r13
cocos2d::CCObject *v10; // r15
v4 = 9999;
if ( a2 < 9999 )
v4 = a2;
v5 = 0;
if ( v4 > 0 )
v5 = (unsigned int)v4;
v6 = a1->m_groups.__begin_[v5];
if ( v6
|| (v6 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2),
cocos2d::CCDictionary::setObject(a1->m_groupDict, v6, v5),
(a1->m_groups.__begin_[v5] = v6) != nullptr) )
{
data = v6->data;
if ( data->num )
{
arr = data->arr;
v9 = (unsigned __int64)&arr[data->num - 1];
do
{
v10 = *arr;
if ( !*arr )
break;
if ( !LOBYTE(v10[12].m_uUnknown) )
*(double *)&v10[16].m_uOrderOfArrival = *(double *)&v10[16].m_uOrderOfArrival + a3;
*(double *)&v10[17].__vftable = *(double *)&v10[17].__vftable + a4;
GameObject::dirtifyObjectRect((GameObject *)v10);
GameObject::dirtifyObjectPos((GameObject *)v10);
((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->updateObjectSection)(a1, v10);
*(_QWORD *)&v10[21].m_uOrderOfArrival = *(_QWORD *)&v10[16].m_uOrderOfArrival;
++arr;
}
while ( (unsigned __int64)arr <= v9 );
}
}
GJEffectManager::saveCompletedMove(a1->m_effectManager, a2, a3, a4);
}