{"type": "func", "start": 12585144, "end": 12585440, "name": "EditorUI::moveObject", "pseudocode": "// \n// EditorUI::moveObject from 0xc008b8 to 0xc009e0 (296 bytes)\n// \n// 17 xrefs:\n// > EditorUI::ccTouchMoved @ 0xbd5cec\n// > EditorUI::ccTouchMoved @ 0xbd5f78\n// > EditorUI::ccTouchEnded @ 0xbd67fc\n// > EditorUI::repositionObjectsToCenter @ 0xbd8d6c\n// > EditorUI::rotateObjects @ 0xc00d58\n// > EditorUI::transformObject @ 0xc00fa0\n// > EditorUI::flipObjectsX @ 0xc01584\n// > EditorUI::flipObjectsY @ 0xc01740\n// > EditorUI::moveObjectCall @ 0xc0256c\n// > EditorUI::moveObjectCall @ 0xc02644\n// > EditorUI::alignObjectsOnAxis @ 0xc02ed0\n// > EditorUI::alignObjectsOnAxis @ 0xc02f64\n// > EditorUI::alignObjects @ 0xc032c0\n// > EditorUI::alignObjects @ 0xc03398\n// > EditorUI::scaleObjects @ 0xc03894\n// > EditorUI::transformObjects @ 0xc03f14\n// > <???> @ 0x9e8d8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:48 +0000\n// \n\n__int64 __fastcall EditorUI::moveObject(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x0\n  _BOOL4 isSpeedObject; // w22\n  long double v6; // q0\n  GameObject *v8; // x1\n  _BYTE v9[8]; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v10; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( a2 )\n  {\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);\n    cocos2d::CCPoint::operator+(&v10, v4);\n    EditorUI::getLimitedPosition(a1, (float *)&v10, (cocos2d::CCPoint *)v9);\n    (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a2 + 184LL))(a2, v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1376LL))(a2);\n    GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(a1 + 1440), (GameObject *)a2);\n    isSpeedObject = GameObject::isSpeedObject((GameObject *)a2);\n    if ( *(_DWORD *)(a2 + 1028) == 747 )\n    {\n      v8 = *(GameObject **)(a2 + 1848);\n      if ( v8 )\n        GJBaseGameLayer::reorderObjectSection(*(GJBaseGameLayer **)(a1 + 1440), v8);\n    }\n    *(__n128 *)&v6 = LevelEditorLayer::objectMoved((LevelEditorLayer *)*(_QWORD *)(a1 + 1440), (GameObject *)a2);\n    if ( isSpeedObject || (*(unsigned __int8 (__fastcall **)(__int64, long double))(*(_QWORD *)a2 + 1680LL))(a2, v6) )\n      *(_BYTE *)(a1 + 869) = 1;\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::moveObject from 0xc008b8 to 0xc009e0 (296 bytes)\n; \n; 17 xrefs:\n; > EditorUI::ccTouchMoved @ 0xbd5cec\n; > EditorUI::ccTouchMoved @ 0xbd5f78\n; > EditorUI::ccTouchEnded @ 0xbd67fc\n; > EditorUI::repositionObjectsToCenter @ 0xbd8d6c\n; > EditorUI::rotateObjects @ 0xc00d58\n; > EditorUI::transformObject @ 0xc00fa0\n; > EditorUI::flipObjectsX @ 0xc01584\n; > EditorUI::flipObjectsY @ 0xc01740\n; > EditorUI::moveObjectCall @ 0xc0256c\n; > EditorUI::moveObjectCall @ 0xc02644\n; > EditorUI::alignObjectsOnAxis @ 0xc02ed0\n; > EditorUI::alignObjectsOnAxis @ 0xc02f64\n; > EditorUI::alignObjects @ 0xc032c0\n; > EditorUI::alignObjects @ 0xc03398\n; > EditorUI::scaleObjects @ 0xc03894\n; > EditorUI::transformObjects @ 0xc03f14\n; > <???> @ 0x9e8d8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:48 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xc008b8\nMOV             X29, SP                                                ; +0x4, 0xc008bc\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xc008c0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc008c4\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x10, 0xc008c8\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xc008cc\nMOV             X21, X0                                                ; +0x18, 0xc008d0\nSTR             X2, [X29,#0x70+var_28]                                 ; +0x1c, 0xc008d4\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc008d8\nMOV             X19, X1                                                ; +0x24, 0xc008dc\nLDR             X0, [X0]                                               ; +0x28, 0xc008e0\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x2c, 0xc008e4\nCBZ             X1, loc_C00984                                         ; +0x30, 0xc008e8\nLDR             X1, [X1]                                               ; +0x34, 0xc008ec\nMOV             X0, X19                                                ; +0x38, 0xc008f0\nADD             X23, X29, #0x70+var_10                                 ; +0x3c, 0xc008f4\nADD             X22, X29, #0x70+var_18                                 ; +0x40, 0xc008f8\nLDR             X1, [X1,#0xC0]                                         ; +0x44, 0xc008fc\nBLR             X1                                                     ; +0x48, 0xc00900\nLDR             X2, [X29,#0x70+var_28]                                 ; +0x4c, 0xc00904\nMOV             X8, X23                                                ; +0x50, 0xc00908\nMOV             X1, X2                                                 ; +0x54, 0xc0090c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x58, 0xc00910\nMOV             X8, X22                                                ; +0x5c, 0xc00914\nMOV             X0, X21                                                ; +0x60, 0xc00918\nMOV             X1, X23                                                ; +0x64, 0xc0091c\nBL              _ZN8EditorUI18getLimitedPositionEN7cocos2d7CCPointE; EditorUI::getLimitedPosition(cocos2d::CCPoint) ; +0x68, 0xc00920\nLDR             X2, [X19]                                              ; +0x6c, 0xc00924\nMOV             X1, X22                                                ; +0x70, 0xc00928\nMOV             X0, X19                                                ; +0x74, 0xc0092c\nLDR             X2, [X2,#0xB8]                                         ; +0x78, 0xc00930\nBLR             X2                                                     ; +0x7c, 0xc00934\nLDR             X1, [X19]                                              ; +0x80, 0xc00938\nMOV             X0, X19                                                ; +0x84, 0xc0093c\nLDR             X1, [X1,#0x560]                                        ; +0x88, 0xc00940\nBLR             X1                                                     ; +0x8c, 0xc00944\nLDR             X0, [X21,#0x5A0]; this                                 ; +0x90, 0xc00948\nMOV             X1, X19; GameObject *                                  ; +0x94, 0xc0094c\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x98, 0xc00950\nMOV             X0, X19; this                                          ; +0x9c, 0xc00954\nBL              _ZN10GameObject13isSpeedObjectEv; GameObject::isSpeedObject(void) ; +0xa0, 0xc00958\nUXTB            W22, W0                                                ; +0xa4, 0xc0095c\nLDR             W1, [X19,#0x404]                                       ; +0xa8, 0xc00960\nCMP             W1, #0x2EB                                             ; +0xac, 0xc00964\nB.EQ            loc_C009C8                                             ; +0xb0, 0xc00968\nLDR             X0, [X21,#0x5A0]; this                                 ; +0xb4, 0xc0096c\nMOV             X1, X19; GameObject *                                  ; +0xb8, 0xc00970\nBL              _ZN16LevelEditorLayer11objectMovedEP10GameObject; LevelEditorLayer::objectMoved(GameObject *) ; +0xbc, 0xc00974\nCBZ             W22, loc_C009AC                                        ; +0xc0, 0xc00978\nMOV             W0, #1                                                 ; +0xc4, 0xc0097c\nSTRB            W0, [X21,#0x365]                                       ; +0xc8, 0xc00980\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xcc, 0xc00984\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xd0, 0xc00988\nLDR             X0, [X20]                                              ; +0xd4, 0xc0098c\nCMP             X1, X0                                                 ; +0xd8, 0xc00990\nB.NE            loc_C009DC                                             ; +0xdc, 0xc00994\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xe0, 0xc00998\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xe4, 0xc0099c\nLDR             X23, [SP,#0x70+var_40]                                 ; +0xe8, 0xc009a0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xec, 0xc009a4\nRET                                                                    ; +0xf0, 0xc009a8\nLDR             X1, [X19]                                              ; +0xf4, 0xc009ac\nMOV             X0, X19                                                ; +0xf8, 0xc009b0\nLDR             X1, [X1,#0x690]                                        ; +0xfc, 0xc009b4\nBLR             X1                                                     ; +0x100, 0xc009b8\nUXTB            W0, W0                                                 ; +0x104, 0xc009bc\nCBZ             W0, loc_C00984                                         ; +0x108, 0xc009c0\nB               loc_C0097C                                             ; +0x10c, 0xc009c4\nLDR             X1, [X19,#0x738]; GameObject *                         ; +0x110, 0xc009c8\nCBZ             X1, loc_C0096C                                         ; +0x114, 0xc009cc\nLDR             X0, [X21,#0x5A0]; this                                 ; +0x118, 0xc009d0\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x11c, 0xc009d4\nB               loc_C0096C                                             ; +0x120, 0xc009d8\nBL              .__stack_chk_fail                                      ; +0x124, 0xc009dc", "xrefs": ["EditorUI::ccTouchMoved @ 0xbd5cec", "EditorUI::ccTouchMoved @ 0xbd5f78", "EditorUI::ccTouchEnded @ 0xbd67fc", "EditorUI::repositionObjectsToCenter @ 0xbd8d6c", "EditorUI::rotateObjects @ 0xc00d58", "EditorUI::transformObject @ 0xc00fa0", "EditorUI::flipObjectsX @ 0xc01584", "EditorUI::flipObjectsY @ 0xc01740", "EditorUI::moveObjectCall @ 0xc0256c", "EditorUI::moveObjectCall @ 0xc02644", "EditorUI::alignObjectsOnAxis @ 0xc02ed0", "EditorUI::alignObjectsOnAxis @ 0xc02f64", "EditorUI::alignObjects @ 0xc032c0", "EditorUI::alignObjects @ 0xc03398", "EditorUI::scaleObjects @ 0xc03894", "EditorUI::transformObjects @ 0xc03f14", "<???> @ 0x9e8d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}