{"type": "func", "start": 4299091816, "end": 4299092048, "name": "EditorUI::moveObject", "pseudocode": "// \n// EditorUI::moveObject from 0x1003eef68 to 0x1003ef050 (232 bytes)\n// \n// 14 xrefs:\n// > EditorUI::repositionObjectsToCenter @ 0x1003eae74\n// > EditorUI::rotateObjects @ 0x1003ed4d0\n// > EditorUI::scaleObjects @ 0x1003efbb8\n// > EditorUI::transformObjects @ 0x1003f04f4\n// > EditorUI::flipObjectsY @ 0x1003f2088\n// > EditorUI::flipObjectsX @ 0x1003f2210\n// > EditorUI::moveObjectCall_1 @ 0x1003f5fb0\n// > EditorUI::moveObjectCall_1 @ 0x1003f6004\n// > EditorUI::transformObject @ 0x1003f74e0\n// > EditorUI::alignObjects @ 0x1003f7cf0\n// > EditorUI::alignObjects @ 0x1003f7d28\n// > EditorUI::ccTouchMoved @ 0x1003f8f28\n// > EditorUI::ccTouchMoved @ 0x1003f8fb4\n// > EditorUI::ccTouchEnded @ 0x1003f93a8\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 __fastcall EditorUI::moveObject(EditorUI *a1, GameObject *a2, cocos2d::CCPoint a3)\n{\n  float32x2_t *v3; // x2\n  float32x2_t *v4; // x21\n  float32x2_t *v7; // x0\n  bool isSpeedObject; // w21\n  GameObject *v9; // x1\n  float32x2_t v10; // [xsp+0h] [xbp-30h] BYREF\n  _BYTE v11[8]; // [xsp+8h] [xbp-28h] BYREF\n  cocos2d::CCPoint LimitedPosition; // 0:kr00_8.8\n  cocos2d::CCPoint v13; // 0:s0.4,4:s1.4\n\n  if ( a2 )\n  {\n    v4 = v3;\n    v7 = (float32x2_t *)((__int64 (__fastcall *)(GameObject *, __n128, __n128))a2->getPosition)(\n                          a2,\n                          *(__n128 *)&a3.x,\n                          *(__n128 *)&a3.y);\n    v13.x = sub_1000229DC(v7, v4, &v10).f32[0];\n    LimitedPosition = EditorUI::getLimitedPosition(a1, v13);\n    ((void (__fastcall *)(GameObject *, _BYTE *, float, float))a2->setPosition)(\n      a2,\n      v11,\n      LimitedPosition.x,\n      LimitedPosition.y);\n    ((void (__fastcall *)(GameObject *))a2->updateStartValues)(a2);\n    GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n    isSpeedObject = GameObject::isSpeedObject(a2);\n    if ( a2->m_objectID == 747 )\n    {\n      v9 = *(GameObject **)&a2[1].m_sQuad.bl.vertices.y;\n      if ( v9 )\n        GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, v9);\n    }\n    LevelEditorLayer::objectMoved(a1->m_editorLayer, a2);\n    if ( isSpeedObject || ((unsigned int (__fastcall *)(GameObject *))a2->canReverse)(a2) )\n      a1->m_speedObjectsUpdated = 1;\n  }\n}", "assembly": "; \n; EditorUI::moveObject from 0x1003eef68 to 0x1003ef050 (232 bytes)\n; \n; 14 xrefs:\n; > EditorUI::repositionObjectsToCenter @ 0x1003eae74\n; > EditorUI::rotateObjects @ 0x1003ed4d0\n; > EditorUI::scaleObjects @ 0x1003efbb8\n; > EditorUI::transformObjects @ 0x1003f04f4\n; > EditorUI::flipObjectsY @ 0x1003f2088\n; > EditorUI::flipObjectsX @ 0x1003f2210\n; > EditorUI::moveObjectCall_1 @ 0x1003f5fb0\n; > EditorUI::moveObjectCall_1 @ 0x1003f6004\n; > EditorUI::transformObject @ 0x1003f74e0\n; > EditorUI::alignObjects @ 0x1003f7cf0\n; > EditorUI::alignObjects @ 0x1003f7d28\n; > EditorUI::ccTouchMoved @ 0x1003f8f28\n; > EditorUI::ccTouchMoved @ 0x1003f8fb4\n; > EditorUI::ccTouchEnded @ 0x1003f93a8\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\nCBZ             X1, locret_1003EF04C                                   ; +0x0, 0x1003eef68\nSUB             SP, SP, #0x40                                          ; +0x4, 0x1003eef6c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x8, 0x1003eef70\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0xc, 0x1003eef74\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x10, 0x1003eef78\nADD             X29, SP, #0x30                                         ; +0x14, 0x1003eef7c\nMOV             X21, X2                                                ; +0x18, 0x1003eef80\nMOV             X20, X1                                                ; +0x1c, 0x1003eef84\nMOV             X19, X0                                                ; +0x20, 0x1003eef88\nLDR             X8, [X1]                                               ; +0x24, 0x1003eef8c\nLDR             X8, [X8,#0xC0]                                         ; +0x28, 0x1003eef90\nMOV             X0, X1                                                 ; +0x2c, 0x1003eef94\nBLR             X8                                                     ; +0x30, 0x1003eef98\nMOV             X8, SP                                                 ; +0x34, 0x1003eef9c\nMOV             X1, X21                                                ; +0x38, 0x1003eefa0\nBL              sub_1000229DC                                          ; +0x3c, 0x1003eefa4\nADD             X8, SP, #0x30+var_28                                   ; +0x40, 0x1003eefa8\nMOV             X1, SP                                                 ; +0x44, 0x1003eefac\nMOV             X0, X19                                                ; +0x48, 0x1003eefb0\nBL              EditorUI__getLimitedPosition                           ; +0x4c, 0x1003eefb4\nLDR             X8, [X20]                                              ; +0x50, 0x1003eefb8\nLDR             X8, [X8,#0xB8]                                         ; +0x54, 0x1003eefbc\nADD             X1, SP, #0x30+var_28                                   ; +0x58, 0x1003eefc0\nMOV             X0, X20                                                ; +0x5c, 0x1003eefc4\nBLR             X8                                                     ; +0x60, 0x1003eefc8\nLDR             X8, [X20]                                              ; +0x64, 0x1003eefcc\nLDR             X8, [X8,#0x550]                                        ; +0x68, 0x1003eefd0\nMOV             X0, X20                                                ; +0x6c, 0x1003eefd4\nBLR             X8                                                     ; +0x70, 0x1003eefd8\nLDR             X0, [X19,#0x4E8]                                       ; +0x74, 0x1003eefdc\nMOV             X1, X20                                                ; +0x78, 0x1003eefe0\nBL              GJBaseGameLayer__reorderObjectSection                  ; +0x7c, 0x1003eefe4\nMOV             X0, X20                                                ; +0x80, 0x1003eefe8\nBL              GameObject__isSpeedObject                              ; +0x84, 0x1003eefec\nMOV             X21, X0                                                ; +0x88, 0x1003eeff0\nLDR             W8, [X20,#0x404]                                       ; +0x8c, 0x1003eeff4\nCMP             W8, #0x2EB                                             ; +0x90, 0x1003eeff8\nB.NE            loc_1003EF010                                          ; +0x94, 0x1003eeffc\nLDR             X1, [X20,#0x730]                                       ; +0x98, 0x1003ef000\nCBZ             X1, loc_1003EF010                                      ; +0x9c, 0x1003ef004\nLDR             X0, [X19,#0x4E8]                                       ; +0xa0, 0x1003ef008\nBL              GJBaseGameLayer__reorderObjectSection                  ; +0xa4, 0x1003ef00c\nLDR             X0, [X19,#0x4E8]                                       ; +0xa8, 0x1003ef010\nMOV             X1, X20                                                ; +0xac, 0x1003ef014\nBL              LevelEditorLayer__objectMoved                          ; +0xb0, 0x1003ef018\nTBNZ            W21, #0, loc_1003EF034                                 ; +0xb4, 0x1003ef01c\nLDR             X8, [X20]                                              ; +0xb8, 0x1003ef020\nLDR             X8, [X8,#0x680]                                        ; +0xbc, 0x1003ef024\nMOV             X0, X20                                                ; +0xc0, 0x1003ef028\nBLR             X8                                                     ; +0xc4, 0x1003ef02c\nCBZ             W0, loc_1003EF03C                                      ; +0xc8, 0x1003ef030\nMOV             W8, #1                                                 ; +0xcc, 0x1003ef034\nSTRB            W8, [X19,#0x30D]                                       ; +0xd0, 0x1003ef038\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x1003ef03c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x1003ef040\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x1003ef044\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe0, 0x1003ef048\nRET                                                                    ; +0xe4, 0x1003ef04c", "xrefs": ["EditorUI::repositionObjectsToCenter @ 0x1003eae74", "EditorUI::rotateObjects @ 0x1003ed4d0", "EditorUI::scaleObjects @ 0x1003efbb8", "EditorUI::transformObjects @ 0x1003f04f4", "EditorUI::flipObjectsY @ 0x1003f2088", "EditorUI::flipObjectsX @ 0x1003f2210", "EditorUI::moveObjectCall_1 @ 0x1003f5fb0", "EditorUI::moveObjectCall_1 @ 0x1003f6004", "EditorUI::transformObject @ 0x1003f74e0", "EditorUI::alignObjects @ 0x1003f7cf0", "EditorUI::alignObjects @ 0x1003f7d28", "EditorUI::ccTouchMoved @ 0x1003f8f28", "EditorUI::ccTouchMoved @ 0x1003f8fb4", "EditorUI::ccTouchEnded @ 0x1003f93a8"], "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"}