//
// EditorUI::repositionObjectsToCenter from 0x6f2954 to 0x6f29c6 (114 bytes)
//
// 7 xrefs:
// > EditorUI::createPrefab @ 0x487200
// > EditorUI::onCreateObject @ 0x487628
// > EditorUI::createSmartObjectsFromTemplate @ 0x48816a
// > EditorUI::createSmartObjectsFromTemplate @ 0x4881c8
// > SetupSmartBlockLayer::onPasteTemplate @ 0x673acc
// > EditorUI::doPasteObjects @ 0x6f3342
// > EditorUI::spriteFromObjectString @ 0x6f4f9e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:36 +0000
//
unsigned int __fastcall EditorUI::repositionObjectsToCenter(cocos2d::CCArray *a1, cocos2d::CCArray *a2, int a3)
{
unsigned int v6; // r5
unsigned int result; // r0
int v8; // r0
int v9; // r10
_BYTE v10[8]; // [sp+4h] [bp-1Ch] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-14h] BYREF
_BYTE v12[8]; // [sp+14h] [bp-Ch] BYREF
EditorUI::getGroupCenter((EditorUI *)v10, a1, a2);
cocos2d::CCPoint::operator-(v11, a3, v10);
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(a2);
if ( v6 >= result )
break;
v8 = cocos2d::CCArray::objectAtIndex(a2, v6++);
v9 = v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11);
EditorUI::moveObject(a1, v9, v12);
}
return result;
}