//
// EditorUI::repositionObjectsToCenter from 0x68fb90 to 0x68fc64 (212 bytes)
//
// 8 xrefs:
// > EditorUI::spriteFromObjectString @ 0x696ccc
// > EditorUI::onCreateObject @ 0x6c00ac
// > EditorUI::createPrefab @ 0x6c088c
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c2458
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c24c4
// > EditorUI::doPasteObjects @ 0x6c3948
// > SetupSmartBlockLayer::onPasteTemplate @ 0x9dc458
// > ??> @ 0x668b8
//
// 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 EditorUI::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4)
{
bool v4; // w3
_BOOL8 v5; // x26
unsigned int v8; // w19
unsigned int v9; // w1
GameObject *v10; // x22
_BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v14; // 0:s0.4,4:s1.4
v5 = a4;
EditorUI::getGroupCenter(a1, a2, v4);
v8 = 0;
cocos2d::CCPoint::operator-(&v12, v5, v11);
while ( v8 < (unsigned int)cocos2d::CCArray::count(a2) )
{
v9 = v8++;
v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v9);
cocos2d::CCPoint::CCPoint(&v13, &v12);
EditorUI::moveObject(a1, v10, v14);
}
}