//
// GJBaseGameLayer::resetMoveOptimizedValue from 0x475670 to 0x47569e (46 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x36e754
//
// 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::resetMoveOptimizedValue(GJBaseGameLayer *a1)
{
cocos2d::CCArray *m_objects; // r3
cocos2d::ccArray *data; // r2
int v3; // r3
cocos2d::CCObject **arr; // r2
cocos2d::CCObject **v5; // r3
int v6; // r1
int v7; // t1
m_objects = a1->m_objects;
if ( m_objects )
{
data = m_objects->data;
if ( data->num )
{
v3 = data->num + 0x40000000;
arr = data->arr;
v5 = &arr[v3 - 1];
while ( arr <= v5 )
{
v7 = (int)*arr++;
v6 = v7;
if ( !v7 )
break;
*(_BYTE *)(v6 + 1102) = *(_BYTE *)(v6 + 1101);
}
}
}
}