{"type": "func", "start": 3674160, "end": 3674338, "name": "EditorUI::moveObject", "pseudocode": "// \n// EditorUI::moveObject from 0x381030 to 0x3810e2 (178 bytes)\n// \n// 14 xrefs:\n// > EditorUI::repositionObjectsToCenter @ 0x38192a\n// > EditorUI::rotateObjects @ 0x381bf2\n// > EditorUI::transformObject @ 0x385a70\n// > EditorUI::flipObjectsX @ 0x385b9c\n// > EditorUI::flipObjectsY @ 0x385cc4\n// > EditorUI::alignObjects @ 0x39d52e\n// > EditorUI::alignObjects @ 0x39d544\n// > EditorUI::scaleObjects @ 0x39e692\n// > EditorUI::transformObjects @ 0x39eade\n// > EditorUI::moveObjectCall @ 0x39f7d4\n// > EditorUI::moveObjectCall @ 0x39f804\n// > EditorUI::ccTouchMoved @ 0x3a4c90\n// > EditorUI::ccTouchMoved @ 0x3a4ca8\n// > EditorUI::ccTouchEnded @ 0x3a59c6\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\nvoid EditorUI::moveObject(EditorUI *a1, GameObject *a2, cocos2d::CCPoint a3)\n{\n  float x; // r7\n  const cocos2d::CCPoint *v6; // r0\n  cocos2d::CCPoint v7; // r2\n  _BOOL4 isSpeedObject; // r7\n  float m_fTrVertexMod; // r1\n  cocos2d::CCPoint v10; // [sp+4h] [bp-14h] BYREF\n  _BYTE v11[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  x = a3.x;\n  if ( a2 )\n  {\n    v6 = a2->getPosition(a2);\n    cocos2d::CCPoint::operator+(v11, v6, LODWORD(x));\n    LODWORD(v7.x) = v11;\n    EditorUI::getLimitedPosition(&v10, a1, v7);\n    a2->setPosition(a2, &v10);\n    a2->updateStartValues(a2);\n    GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, a2);\n    isSpeedObject = GameObject::isSpeedObject(a2);\n    if ( a2->m_objectID == 747 )\n    {\n      m_fTrVertexMod = a2[1].m_fTrVertexMod;\n      if ( m_fTrVertexMod != 0.0 )\n        GJBaseGameLayer::reorderObjectSection(a1->m_editorLayer, (GameObject *)LODWORD(m_fTrVertexMod));\n    }\n    LevelEditorLayer::objectMoved(a1->m_editorLayer, a2);\n    if ( isSpeedObject || ((int (__fastcall *)(GameObject *))a2->canReverse)(a2) )\n      a1->m_speedObjectsUpdated = 1;\n  }\n}", "assembly": "; \n; EditorUI::moveObject from 0x381030 to 0x3810e2 (178 bytes)\n; \n; 14 xrefs:\n; > EditorUI::repositionObjectsToCenter @ 0x38192a\n; > EditorUI::rotateObjects @ 0x381bf2\n; > EditorUI::transformObject @ 0x385a70\n; > EditorUI::flipObjectsX @ 0x385b9c\n; > EditorUI::flipObjectsY @ 0x385cc4\n; > EditorUI::alignObjects @ 0x39d52e\n; > EditorUI::alignObjects @ 0x39d544\n; > EditorUI::scaleObjects @ 0x39e692\n; > EditorUI::transformObjects @ 0x39eade\n; > EditorUI::moveObjectCall @ 0x39f7d4\n; > EditorUI::moveObjectCall @ 0x39f804\n; > EditorUI::ccTouchMoved @ 0x3a4c90\n; > EditorUI::ccTouchMoved @ 0x3a4ca8\n; > EditorUI::ccTouchEnded @ 0x3a59c6\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x38103A)                ; +0x0, 0x381030\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x381032\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x381036\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x381038\nMOV             R7, R2                                                 ; +0xa, 0x38103a\nSUB             SP, SP, #0x18                                          ; +0xc, 0x38103c\nLDR             R2, [R3]                                               ; +0xe, 0x38103e\nMOV             R6, R0                                                 ; +0x10, 0x381040\nMOV             R4, R1                                                 ; +0x12, 0x381042\nMOV             R5, R3                                                 ; +0x14, 0x381044\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x16, 0x381046\nCMP             R1, #0                                                 ; +0x18, 0x381048\nBEQ             loc_3810D0                                             ; +0x1a, 0x38104a\nLDR             R3, [R1]                                               ; +0x1c, 0x38104c\nMOV             R0, R1                                                 ; +0x1e, 0x38104e\nADD.W           R8, SP, #0x18+var_C                                    ; +0x20, 0x381050\nLDR             R3, [R3,#0x60]                                         ; +0x24, 0x381054\nBLX             R3                                                     ; +0x26, 0x381056\nMOV             R2, R7                                                 ; +0x28, 0x381058\nADD             R7, SP, #0x18+var_14                                   ; +0x2a, 0x38105a\nMOV             R1, R0                                                 ; +0x2c, 0x38105c\nMOV             R0, R8                                                 ; +0x2e, 0x38105e\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x30, 0x381060\nMOV             R2, R8                                                 ; +0x34, 0x381064\nMOV             R0, R7                                                 ; +0x36, 0x381066\nMOV             R1, R6                                                 ; +0x38, 0x381068\nBL              _ZN8EditorUI18getLimitedPositionEN7cocos2d7CCPointE; EditorUI::getLimitedPosition(cocos2d::CCPoint) ; +0x3a, 0x38106a\nLDR             R3, [R4]                                               ; +0x3e, 0x38106e\nMOV             R1, R7                                                 ; +0x40, 0x381070\nMOV             R0, R4                                                 ; +0x42, 0x381072\nLDR             R3, [R3,#0x5C]                                         ; +0x44, 0x381074\nBLX             R3                                                     ; +0x46, 0x381076\nLDR             R3, [R4]                                               ; +0x48, 0x381078\nMOV             R0, R4                                                 ; +0x4a, 0x38107a\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x4c, 0x38107c\nBLX             R3                                                     ; +0x50, 0x381080\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x52, 0x381082\nMOV             R1, R4; GameObject *                                   ; +0x56, 0x381086\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x58, 0x381088\nMOV             R0, R4; this                                           ; +0x5c, 0x38108c\nBL              _ZN10GameObject13isSpeedObjectEv; GameObject::isSpeedObject(void) ; +0x5e, 0x38108e\nLDR.W           R2, [R4,#0x374]                                        ; +0x62, 0x381092\nMOVW            R3, #0x2EB                                             ; +0x66, 0x381096\nCMP             R2, R3                                                 ; +0x6a, 0x38109a\nMOV             R7, R0                                                 ; +0x6c, 0x38109c\nBNE             loc_3810AE                                             ; +0x6e, 0x38109e\nLDR.W           R1, [R4,#0x668]; GameObject *                          ; +0x70, 0x3810a0\nCBZ             R1, loc_3810AE                                         ; +0x74, 0x3810a4\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x76, 0x3810a6\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x7a, 0x3810aa\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x7e, 0x3810ae\nMOV             R1, R4; GameObject *                                   ; +0x82, 0x3810b2\nBL              _ZN16LevelEditorLayer11objectMovedEP10GameObject; LevelEditorLayer::objectMoved(GameObject *) ; +0x84, 0x3810b4\nCBZ             R7, loc_3810C2                                         ; +0x88, 0x3810b8\nMOVS            R3, #1                                                 ; +0x8a, 0x3810ba\nSTRB.W          R3, [R6,#0x249]                                        ; +0x8c, 0x3810bc\nB               loc_3810D0                                             ; +0x90, 0x3810c0\nLDR             R3, [R4]                                               ; +0x92, 0x3810c2\nMOV             R0, R4                                                 ; +0x94, 0x3810c4\nLDR.W           R3, [R3,#0x340]                                        ; +0x96, 0x3810c6\nBLX             R3                                                     ; +0x9a, 0x3810ca\nCMP             R0, #0                                                 ; +0x9c, 0x3810cc\nBNE             loc_3810BA                                             ; +0x9e, 0x3810ce\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa0, 0x3810d0\nLDR             R3, [R5]                                               ; +0xa2, 0x3810d2\nCMP             R2, R3                                                 ; +0xa4, 0x3810d4\nBEQ             loc_3810DC                                             ; +0xa6, 0x3810d6\nBLX             __stack_chk_fail                                       ; +0xa8, 0x3810d8\nADD             SP, SP, #0x18                                          ; +0xac, 0x3810dc\nPOP.W           {R4-R8,PC}                                             ; +0xae, 0x3810de", "xrefs": ["EditorUI::repositionObjectsToCenter @ 0x38192a", "EditorUI::rotateObjects @ 0x381bf2", "EditorUI::transformObject @ 0x385a70", "EditorUI::flipObjectsX @ 0x385b9c", "EditorUI::flipObjectsY @ 0x385cc4", "EditorUI::alignObjects @ 0x39d52e", "EditorUI::alignObjects @ 0x39d544", "EditorUI::scaleObjects @ 0x39e692", "EditorUI::transformObjects @ 0x39eade", "EditorUI::moveObjectCall @ 0x39f7d4", "EditorUI::moveObjectCall @ 0x39f804", "EditorUI::ccTouchMoved @ 0x3a4c90", "EditorUI::ccTouchMoved @ 0x3a4ca8", "EditorUI::ccTouchEnded @ 0x3a59c6"], "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"}