{"type": "func", "start": 6880144, "end": 6880356, "name": "EditorUI::repositionObjectsToCenter", "pseudocode": "// \n// EditorUI::repositionObjectsToCenter from 0x68fb90 to 0x68fc64 (212 bytes)\n// \n// 8 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x696ccc\n// > EditorUI::onCreateObject @ 0x6c00ac\n// > EditorUI::createPrefab @ 0x6c088c\n// > EditorUI::createSmartObjectsFromTemplate @ 0x6c2458\n// > EditorUI::createSmartObjectsFromTemplate @ 0x6c24c4\n// > EditorUI::doPasteObjects @ 0x6c3948\n// > SetupSmartBlockLayer::onPasteTemplate @ 0x9dc458\n// > <???> @ 0x668b8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nvoid EditorUI::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4)\n{\n  bool v4; // w3\n  _BOOL8 v5; // x26\n  unsigned int v8; // w19\n  unsigned int v9; // w1\n  GameObject *v10; // x22\n  _BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF\n  cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::CCPoint v14; // 0:s0.4,4:s1.4\n\n  v5 = a4;\n  EditorUI::getGroupCenter(a1, a2, v4);\n  v8 = 0;\n  cocos2d::CCPoint::operator-(&v12, v5, v11);\n  while ( v8 < (unsigned int)cocos2d::CCArray::count(a2) )\n  {\n    v9 = v8++;\n    v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v9);\n    cocos2d::CCPoint::CCPoint(&v13, &v12);\n    EditorUI::moveObject(a1, v10, v14);\n  }\n}", "assembly": "; \n; EditorUI::repositionObjectsToCenter from 0x68fb90 to 0x68fc64 (212 bytes)\n; \n; 8 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x696ccc\n; > EditorUI::onCreateObject @ 0x6c00ac\n; > EditorUI::createPrefab @ 0x6c088c\n; > EditorUI::createSmartObjectsFromTemplate @ 0x6c2458\n; > EditorUI::createSmartObjectsFromTemplate @ 0x6c24c4\n; > EditorUI::doPasteObjects @ 0x6c3948\n; > SetupSmartBlockLayer::onPasteTemplate @ 0x9dc458\n; > <???> @ 0x668b8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x68fb90\nMOV             X29, SP                                                ; +0x4, 0x68fb94\nSTP             X25, X26, [SP,#0x70+var_30]                            ; +0x8, 0x68fb98\nADRP            X25, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68fb9c\nMOV             X26, X2                                                ; +0x10, 0x68fba0\nMOV             W2, W3; bool                                           ; +0x14, 0x68fba4\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x18, 0x68fba8\nLDR             X3, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x68fbac\nADD             X22, X29, #0x70+var_20                                 ; +0x20, 0x68fbb0\nMOV             X8, X22                                                ; +0x24, 0x68fbb4\nADD             X21, X29, #0x70+var_10                                 ; +0x28, 0x68fbb8\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x2c, 0x68fbbc\nLDR             X3, [X3]                                               ; +0x30, 0x68fbc0\nMOV             X20, X1                                                ; +0x34, 0x68fbc4\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x38, 0x68fbc8\nSTR             X3, [X29,#0x70+var_8]                                  ; +0x3c, 0x68fbcc\nMOV             X24, X0                                                ; +0x40, 0x68fbd0\nADD             X23, X29, #0x70+var_18                                 ; +0x44, 0x68fbd4\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x48, 0x68fbd8\nMOV             X8, X23                                                ; +0x4c, 0x68fbdc\nMOV             X0, X26                                                ; +0x50, 0x68fbe0\nMOV             X1, X22                                                ; +0x54, 0x68fbe4\nMOV             W19, #0                                                ; +0x58, 0x68fbe8\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x5c, 0x68fbec\nB               loc_68FC24                                             ; +0x60, 0x68fbf0\nMOV             W1, W19; unsigned int                                  ; +0x64, 0x68fbf4\nMOV             X0, X20; this                                          ; +0x68, 0x68fbf8\nADD             W19, W19, #1                                           ; +0x6c, 0x68fbfc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x70, 0x68fc00\nMOV             X22, X0                                                ; +0x74, 0x68fc04\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x78, 0x68fc08\nMOV             X0, X21; this                                          ; +0x7c, 0x68fc0c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x80, 0x68fc10\nMOV             X0, X24                                                ; +0x84, 0x68fc14\nMOV             X1, X22                                                ; +0x88, 0x68fc18\nMOV             X2, X21                                                ; +0x8c, 0x68fc1c\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x90, 0x68fc20\nMOV             X0, X20; this                                          ; +0x94, 0x68fc24\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x98, 0x68fc28\nCMP             W19, W0                                                ; +0x9c, 0x68fc2c\nB.CC            loc_68FBF4                                             ; +0xa0, 0x68fc30\nLDR             X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa4, 0x68fc34\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xa8, 0x68fc38\nLDR             X0, [X25]                                              ; +0xac, 0x68fc3c\nCMP             X1, X0                                                 ; +0xb0, 0x68fc40\nB.NE            loc_68FC60                                             ; +0xb4, 0x68fc44\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xb8, 0x68fc48\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xbc, 0x68fc4c\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0xc0, 0x68fc50\nLDP             X25, X26, [SP,#0x70+var_30]                            ; +0xc4, 0x68fc54\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xc8, 0x68fc58\nRET                                                                    ; +0xcc, 0x68fc5c\nBL              .__stack_chk_fail                                      ; +0xd0, 0x68fc60", "xrefs": ["EditorUI::spriteFromObjectString @ 0x696ccc", "EditorUI::onCreateObject @ 0x6c00ac", "EditorUI::createPrefab @ 0x6c088c", "EditorUI::createSmartObjectsFromTemplate @ 0x6c2458", "EditorUI::createSmartObjectsFromTemplate @ 0x6c24c4", "EditorUI::doPasteObjects @ 0x6c3948", "SetupSmartBlockLayer::onPasteTemplate @ 0x9dc458", "<???> @ 0x668b8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}