{"type": "func", "start": 6876968, "end": 6877264, "name": "EditorUI::moveObject", "pseudocode": "// \n// EditorUI::moveObject from 0x68ef28 to 0x68f050 (296 bytes)\n// \n// 15 xrefs:\n// > EditorUI::repositionObjectsToCenter @ 0x68fc20\n// > EditorUI::rotateObjects @ 0x68fdb8\n// > EditorUI::transformObject @ 0x6936cc\n// > EditorUI::flipObjectsX @ 0x693cac\n// > EditorUI::flipObjectsY @ 0x693e68\n// > EditorUI::alignObjects @ 0x6b6060\n// > EditorUI::alignObjects @ 0x6b6160\n// > EditorUI::scaleObjects @ 0x6b7b98\n// > EditorUI::transformObjects @ 0x6b8218\n// > EditorUI::moveObjectCall @ 0x6b93fc\n// > EditorUI::moveObjectCall @ 0x6b94dc\n// > EditorUI::ccTouchMoved @ 0x6c19a4\n// > EditorUI::ccTouchMoved @ 0x6c1cb0\n// > EditorUI::ccTouchEnded @ 0x6c2f0c\n// > <???> @ 0x765a8\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::moveObject(EditorUI *a1, GameObject *a2, cocos2d::CCPoint a3)\n{\n  __int64 v3; // x2\n  __int64 v6; // x0\n  _BOOL4 isSpeedObject; // w22\n  GameObject *v8; // x1\n  __int64 v9; // [xsp+48h] [xbp+48h]\n  _BYTE v10[8]; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v11; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::CCPoint LimitedPosition; // 0:kr00_8.8\n  cocos2d::CCPoint v13; // 0:s0.4,4:s1.4\n\n  v9 = v3;\n  if ( a2 )\n  {\n    v6 = ((__int64 (__fastcall *)(GameObject *, long double, long double))a2->getPosition)(\n           a2,\n           *(long double *)&a3.x,\n           *(long double *)&a3.y);\n    cocos2d::CCPoint::operator+(&v11, v6, v9);\n    LimitedPosition = EditorUI::getLimitedPosition(a1, v13);\n    ((void (__fastcall *)(GameObject *, _BYTE *, float, float))a2->setPosition)(\n      a2,\n      v10,\n      LimitedPosition.x,\n      LimitedPosition.y);\n    a2->updateStartValues(a2);\n    GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n    isSpeedObject = GameObject::isSpeedObject(a2);\n    if ( a2->m_objectID == 747 )\n    {\n      v8 = *(GameObject **)&a2[1].m_sQuad.bl.vertices.y;\n      if ( v8 )\n        GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, v8);\n    }\n    LevelEditorLayer::objectMoved(a1->m_editorLayer, a2);\n    if ( isSpeedObject || a2->canReverse(a2) )\n      a1->m_speedObjectsUpdated = 1;\n  }\n}", "assembly": "; \n; EditorUI::moveObject from 0x68ef28 to 0x68f050 (296 bytes)\n; \n; 15 xrefs:\n; > EditorUI::repositionObjectsToCenter @ 0x68fc20\n; > EditorUI::rotateObjects @ 0x68fdb8\n; > EditorUI::transformObject @ 0x6936cc\n; > EditorUI::flipObjectsX @ 0x693cac\n; > EditorUI::flipObjectsY @ 0x693e68\n; > EditorUI::alignObjects @ 0x6b6060\n; > EditorUI::alignObjects @ 0x6b6160\n; > EditorUI::scaleObjects @ 0x6b7b98\n; > EditorUI::transformObjects @ 0x6b8218\n; > EditorUI::moveObjectCall @ 0x6b93fc\n; > EditorUI::moveObjectCall @ 0x6b94dc\n; > EditorUI::ccTouchMoved @ 0x6c19a4\n; > EditorUI::ccTouchMoved @ 0x6c1cb0\n; > EditorUI::ccTouchEnded @ 0x6c2f0c\n; > <???> @ 0x765a8\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, 0x68ef28\nMOV             X29, SP                                                ; +0x4, 0x68ef2c\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x68ef30\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68ef34\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x10, 0x68ef38\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x68ef3c\nMOV             X21, X0                                                ; +0x18, 0x68ef40\nSTR             X2, [X29,#0x70+var_28]                                 ; +0x1c, 0x68ef44\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68ef48\nMOV             X19, X1                                                ; +0x24, 0x68ef4c\nLDR             X0, [X0]                                               ; +0x28, 0x68ef50\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x2c, 0x68ef54\nCBZ             X1, loc_68EFF4                                         ; +0x30, 0x68ef58\nLDR             X1, [X1]                                               ; +0x34, 0x68ef5c\nMOV             X0, X19                                                ; +0x38, 0x68ef60\nADD             X23, X29, #0x70+var_10                                 ; +0x3c, 0x68ef64\nADD             X22, X29, #0x70+var_18                                 ; +0x40, 0x68ef68\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0x68ef6c\nBLR             X1                                                     ; +0x48, 0x68ef70\nLDR             X2, [X29,#0x70+var_28]                                 ; +0x4c, 0x68ef74\nMOV             X8, X23                                                ; +0x50, 0x68ef78\nMOV             X1, X2                                                 ; +0x54, 0x68ef7c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x58, 0x68ef80\nMOV             X8, X22                                                ; +0x5c, 0x68ef84\nMOV             X0, X21                                                ; +0x60, 0x68ef88\nMOV             X1, X23                                                ; +0x64, 0x68ef8c\nBL              _ZN8EditorUI18getLimitedPositionEN7cocos2d7CCPointE; EditorUI::getLimitedPosition(cocos2d::CCPoint) ; +0x68, 0x68ef90\nLDR             X2, [X19]                                              ; +0x6c, 0x68ef94\nMOV             X1, X22                                                ; +0x70, 0x68ef98\nMOV             X0, X19                                                ; +0x74, 0x68ef9c\nLDR             X2, [X2,#0xB8]                                         ; +0x78, 0x68efa0\nBLR             X2                                                     ; +0x7c, 0x68efa4\nLDR             X1, [X19]                                              ; +0x80, 0x68efa8\nMOV             X0, X19                                                ; +0x84, 0x68efac\nLDR             X1, [X1,#0x550]                                        ; +0x88, 0x68efb0\nBLR             X1                                                     ; +0x8c, 0x68efb4\nLDR             X0, [X21,#0x4F8]; this                                 ; +0x90, 0x68efb8\nMOV             X1, X19; GameObject *                                  ; +0x94, 0x68efbc\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x98, 0x68efc0\nMOV             X0, X19; this                                          ; +0x9c, 0x68efc4\nBL              _ZN10GameObject13isSpeedObjectEv; GameObject::isSpeedObject(void) ; +0xa0, 0x68efc8\nUXTB            W22, W0                                                ; +0xa4, 0x68efcc\nLDR             W1, [X19,#0x3F4]                                       ; +0xa8, 0x68efd0\nCMP             W1, #0x2EB                                             ; +0xac, 0x68efd4\nB.EQ            loc_68F038                                             ; +0xb0, 0x68efd8\nLDR             X0, [X21,#0x4F8]; this                                 ; +0xb4, 0x68efdc\nMOV             X1, X19; GameObject *                                  ; +0xb8, 0x68efe0\nBL              _ZN16LevelEditorLayer11objectMovedEP10GameObject; LevelEditorLayer::objectMoved(GameObject *) ; +0xbc, 0x68efe4\nCBZ             W22, loc_68F01C                                        ; +0xc0, 0x68efe8\nMOV             W0, #1                                                 ; +0xc4, 0x68efec\nSTRB            W0, [X21,#0x31D]                                       ; +0xc8, 0x68eff0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xcc, 0x68eff4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xd0, 0x68eff8\nLDR             X0, [X20]                                              ; +0xd4, 0x68effc\nCMP             X1, X0                                                 ; +0xd8, 0x68f000\nB.NE            loc_68F04C                                             ; +0xdc, 0x68f004\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xe0, 0x68f008\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xe4, 0x68f00c\nLDR             X23, [SP,#0x70+var_40]                                 ; +0xe8, 0x68f010\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xec, 0x68f014\nRET                                                                    ; +0xf0, 0x68f018\nLDR             X1, [X19]                                              ; +0xf4, 0x68f01c\nMOV             X0, X19                                                ; +0xf8, 0x68f020\nLDR             X1, [X1,#0x680]                                        ; +0xfc, 0x68f024\nBLR             X1                                                     ; +0x100, 0x68f028\nUXTB            W0, W0                                                 ; +0x104, 0x68f02c\nCBZ             W0, loc_68EFF4                                         ; +0x108, 0x68f030\nB               loc_68EFEC                                             ; +0x10c, 0x68f034\nLDR             X1, [X19,#0x720]; GameObject *                         ; +0x110, 0x68f038\nCBZ             X1, loc_68EFDC                                         ; +0x114, 0x68f03c\nLDR             X0, [X21,#0x4F8]; this                                 ; +0x118, 0x68f040\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x11c, 0x68f044\nB               loc_68EFDC                                             ; +0x120, 0x68f048\nBL              .__stack_chk_fail                                      ; +0x124, 0x68f04c", "xrefs": ["EditorUI::repositionObjectsToCenter @ 0x68fc20", "EditorUI::rotateObjects @ 0x68fdb8", "EditorUI::transformObject @ 0x6936cc", "EditorUI::flipObjectsX @ 0x693cac", "EditorUI::flipObjectsY @ 0x693e68", "EditorUI::alignObjects @ 0x6b6060", "EditorUI::alignObjects @ 0x6b6160", "EditorUI::scaleObjects @ 0x6b7b98", "EditorUI::transformObjects @ 0x6b8218", "EditorUI::moveObjectCall @ 0x6b93fc", "EditorUI::moveObjectCall @ 0x6b94dc", "EditorUI::ccTouchMoved @ 0x6c19a4", "EditorUI::ccTouchMoved @ 0x6c1cb0", "EditorUI::ccTouchEnded @ 0x6c2f0c", "<???> @ 0x765a8"], "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"}