{"type": "func", "start": 7285076, "end": 7285190, "name": "EditorUI::repositionObjectsToCenter", "pseudocode": "// \n// EditorUI::repositionObjectsToCenter from 0x6f2954 to 0x6f29c6 (114 bytes)\n// \n// 7 xrefs:\n// > EditorUI::createPrefab @ 0x487200\n// > EditorUI::onCreateObject @ 0x487628\n// > EditorUI::createSmartObjectsFromTemplate @ 0x48816a\n// > EditorUI::createSmartObjectsFromTemplate @ 0x4881c8\n// > SetupSmartBlockLayer::onPasteTemplate @ 0x673acc\n// > EditorUI::doPasteObjects @ 0x6f3342\n// > EditorUI::spriteFromObjectString @ 0x6f4f9e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:36 +0000\n// \n\nunsigned int __fastcall EditorUI::repositionObjectsToCenter(cocos2d::CCArray *a1, cocos2d::CCArray *a2, int a3)\n{\n  unsigned int v6; // r5\n  unsigned int result; // r0\n  int v8; // r0\n  int v9; // r10\n  _BYTE v10[8]; // [sp+4h] [bp-1Ch] BYREF\n  _BYTE v11[8]; // [sp+Ch] [bp-14h] BYREF\n  _BYTE v12[8]; // [sp+14h] [bp-Ch] BYREF\n\n  EditorUI::getGroupCenter((EditorUI *)v10, a1, a2);\n  cocos2d::CCPoint::operator-(v11, a3, v10);\n  v6 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(a2);\n    if ( v6 >= result )\n      break;\n    v8 = cocos2d::CCArray::objectAtIndex(a2, v6++);\n    v9 = v8;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11);\n    EditorUI::moveObject(a1, v9, v12);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::repositionObjectsToCenter from 0x6f2954 to 0x6f29c6 (114 bytes)\n; \n; 7 xrefs:\n; > EditorUI::createPrefab @ 0x487200\n; > EditorUI::onCreateObject @ 0x487628\n; > EditorUI::createSmartObjectsFromTemplate @ 0x48816a\n; > EditorUI::createSmartObjectsFromTemplate @ 0x4881c8\n; > SetupSmartBlockLayer::onPasteTemplate @ 0x673acc\n; > EditorUI::doPasteObjects @ 0x6f3342\n; > EditorUI::spriteFromObjectString @ 0x6f4f9e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:36 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x6f2954\nMOV             R9, R2                                                 ; +0x4, 0x6f2958\nLDR             R4, =(__stack_chk_guard_ptr - 0x6F2966)                ; +0x6, 0x6f295a\nSUB             SP, SP, #0x20                                          ; +0x8, 0x6f295c\nADD             R5, SP, #0x20+var_1C                                   ; +0xa, 0x6f295e\nMOV             R7, R0                                                 ; +0xc, 0x6f2960\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x6f2962\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x6f2964\nMOV             R6, R1                                                 ; +0x12, 0x6f2966\nADD.W           R8, SP, #0x20+var_14                                   ; +0x14, 0x6f2968\nMOV             R0, R5; this                                           ; +0x18, 0x6f296c\nLDR             R2, [R4]                                               ; +0x1a, 0x6f296e\nMOV             R1, R7; cocos2d::CCArray *                             ; +0x1c, 0x6f2970\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x1e, 0x6f2972\nMOV             R2, R6; cocos2d::CCArray *                             ; +0x20, 0x6f2974\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x22, 0x6f2976\nMOV             R1, R9                                                 ; +0x26, 0x6f297a\nMOV             R2, R5                                                 ; +0x28, 0x6f297c\nMOV             R0, R8                                                 ; +0x2a, 0x6f297e\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x2c, 0x6f2980\nADD.W           R9, SP, #0x20+var_C                                    ; +0x30, 0x6f2984\nMOVS            R5, #0                                                 ; +0x34, 0x6f2988\nMOV             R0, R6; this                                           ; +0x36, 0x6f298a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x6f298c\nCMP             R5, R0                                                 ; +0x3c, 0x6f2990\nBCS             loc_6F29B4                                             ; +0x3e, 0x6f2992\nMOV             R1, R5; unsigned int                                   ; +0x40, 0x6f2994\nMOV             R0, R6; this                                           ; +0x42, 0x6f2996\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x6f2998\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x48, 0x6f299c\nADDS            R5, #1                                                 ; +0x4a, 0x6f299e\nMOV             R10, R0                                                ; +0x4c, 0x6f29a0\nMOV             R0, R9; this                                           ; +0x4e, 0x6f29a2\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x6f29a4\nMOV             R0, R7                                                 ; +0x54, 0x6f29a8\nMOV             R1, R10                                                ; +0x56, 0x6f29aa\nMOV             R2, R9                                                 ; +0x58, 0x6f29ac\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x5a, 0x6f29ae\nB               loc_6F298A                                             ; +0x5e, 0x6f29b2\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x60, 0x6f29b4\nLDR             R3, [R4]                                               ; +0x62, 0x6f29b6\nCMP             R2, R3                                                 ; +0x64, 0x6f29b8\nBEQ             loc_6F29C0                                             ; +0x66, 0x6f29ba\nBLX             __stack_chk_fail                                       ; +0x68, 0x6f29bc\nADD             SP, SP, #0x20 ; ' '                                    ; +0x6c, 0x6f29c0\nPOP.W           {R4-R10,PC}                                            ; +0x6e, 0x6f29c2", "xrefs": ["EditorUI::createPrefab @ 0x487200", "EditorUI::onCreateObject @ 0x487628", "EditorUI::createSmartObjectsFromTemplate @ 0x48816a", "EditorUI::createSmartObjectsFromTemplate @ 0x4881c8", "SetupSmartBlockLayer::onPasteTemplate @ 0x673acc", "EditorUI::doPasteObjects @ 0x6f3342", "EditorUI::spriteFromObjectString @ 0x6f4f9e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}