{"type": "func", "start": 4295223456, "end": 4295223753, "name": "EditorUI::moveObject", "pseudocode": "// \n// EditorUI::moveObject from 0x10003e8a0 to 0x10003e9c9 (297 bytes)\n// \n// 14 xrefs:\n// > EditorUI::repositionObjectsToCenter @ 0x100034623\n// > EditorUI::rotateObjects @ 0x10003bdf0\n// > EditorUI::scaleObjects @ 0x10003fa35\n// > EditorUI::transformObjects @ 0x100040ba0\n// > EditorUI::flipObjectsY @ 0x1000435c3\n// > EditorUI::flipObjectsX @ 0x100043793\n// > EditorUI::moveObjectCall_1 @ 0x10004a526\n// > EditorUI::moveObjectCall_1 @ 0x10004a583\n// > EditorUI::transformObject @ 0x10004be87\n// > EditorUI::alignObjects @ 0x10004dd0c\n// > EditorUI::alignObjects @ 0x10004de43\n// > EditorUI::ccTouchMoved @ 0x10004f88a\n// > EditorUI::ccTouchMoved @ 0x10004f925\n// > EditorUI::ccTouchEnded @ 0x100050018\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 __fastcall EditorUI::moveObject(EditorUI *a1, GameObject *a2, cocos2d::CCPoint a3)\n{\n  __int64 v4; // rax\n  __m128 v5; // xmm0\n  double v6; // xmm0_8\n  bool isSpeedObject; // r15\n  GameObject *v8; // rsi\n  __int64 v9; // [rsp-38h] [rbp-38h] BYREF\n  double v10[6]; // [rsp-30h] [rbp-30h] BYREF\n\n  if ( a2 )\n  {\n    v4 = ((__int64 (__fastcall *)(GameObject *, double))a2->getPosition)(a2, *(double *)&a3);\n    sub_10028CCE0(v10, v4);\n    if ( a1->m_editorLayer->m_levelSettings->m_dynamicLevelHeight )\n      v5 = (__m128)0x46EB1400u;\n    else\n      v5 = (__m128)0x451BA000u;\n    _mm_storel_ps(\n      v10,\n      _mm_min_ps(\n        _mm_max_ps((__m128)*(unsigned __int64 *)&v10[0], (__m128)xmmword_100815470),\n        _mm_insert_ps((__m128)xmmword_100815490, v5, 16)));\n    v6 = sub_10028CC60(&v9);\n    ((void (__fastcall *)(GameObject *, __int64 *, double))a2->setPosition)(a2, &v9, v6);\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      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 || ((unsigned __int8 (__fastcall *)(GameObject *))a2->canReverse)(a2) )\n      a1->m_speedObjectsUpdated = 1;\n  }\n}", "assembly": "; \n; EditorUI::moveObject from 0x10003e8a0 to 0x10003e9c9 (297 bytes)\n; \n; 14 xrefs:\n; > EditorUI::repositionObjectsToCenter @ 0x100034623\n; > EditorUI::rotateObjects @ 0x10003bdf0\n; > EditorUI::scaleObjects @ 0x10003fa35\n; > EditorUI::transformObjects @ 0x100040ba0\n; > EditorUI::flipObjectsY @ 0x1000435c3\n; > EditorUI::flipObjectsX @ 0x100043793\n; > EditorUI::moveObjectCall_1 @ 0x10004a526\n; > EditorUI::moveObjectCall_1 @ 0x10004a583\n; > EditorUI::transformObject @ 0x10004be87\n; > EditorUI::alignObjects @ 0x10004dd0c\n; > EditorUI::alignObjects @ 0x10004de43\n; > EditorUI::ccTouchMoved @ 0x10004f88a\n; > EditorUI::ccTouchMoved @ 0x10004f925\n; > EditorUI::ccTouchEnded @ 0x100050018\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\ntest    rsi, rsi                                                       ; +0x0, 0x10003e8a0\njz      locret_10003E9C8                                               ; +0x3, 0x10003e8a3\npush    rbp                                                            ; +0x9, 0x10003e8a9\nmov     rbp, rsp                                                       ; +0xa, 0x10003e8aa\npush    r15                                                            ; +0xd, 0x10003e8ad\npush    r14                                                            ; +0xf, 0x10003e8af\npush    r12                                                            ; +0x11, 0x10003e8b1\npush    rbx                                                            ; +0x13, 0x10003e8b3\nsub     rsp, 10h                                                       ; +0x14, 0x10003e8b4\nmov     r12, rdx                                                       ; +0x18, 0x10003e8b8\nmov     r14, rsi                                                       ; +0x1b, 0x10003e8bb\nmov     rbx, rdi                                                       ; +0x1e, 0x10003e8be\nmov     rax, [rsi]                                                     ; +0x21, 0x10003e8c1\nmov     rdi, rsi                                                       ; +0x24, 0x10003e8c4\ncall    qword ptr [rax+0C0h]                                           ; +0x27, 0x10003e8c7\nlea     r15, [rbp-28h]                                                 ; +0x2d, 0x10003e8cd\nmov     rdi, r15                                                       ; +0x31, 0x10003e8d1\nmov     rsi, rax                                                       ; +0x34, 0x10003e8d4\nmov     rdx, r12                                                       ; +0x37, 0x10003e8d7\ncall    sub_10028CCE0                                                  ; +0x3a, 0x10003e8da\nmov     rax, [rbx+4E8h]                                                ; +0x3f, 0x10003e8df\nmov     rax, [rax+0CB0h]                                               ; +0x46, 0x10003e8e6\ncmp     byte ptr [rax+1C5h], 0                                         ; +0x4d, 0x10003e8ed\njnz     short loc_10003E900                                            ; +0x54, 0x10003e8f4\nmovss   xmm0, cs:dword_1008152C4                                       ; +0x56, 0x10003e8f6\njmp     short loc_10003E908                                            ; +0x5e, 0x10003e8fe\nmovss   xmm0, cs:dword_1008152C0                                       ; +0x60, 0x10003e900\nmovsd   xmm1, qword ptr [rbp-28h]                                      ; +0x68, 0x10003e908\nmaxps   xmm1, cs:xmmword_100815470                                     ; +0x6d, 0x10003e90d\nmovaps  xmm2, cs:xmmword_100815490                                     ; +0x74, 0x10003e914\ninsertps xmm2, xmm0, 10h                                               ; +0x7b, 0x10003e91b\nminps   xmm1, xmm2                                                     ; +0x81, 0x10003e921\nmovlps  qword ptr [rbp-28h], xmm1                                      ; +0x84, 0x10003e924\nlea     r12, [rbp-30h]                                                 ; +0x88, 0x10003e928\nmov     rdi, r12                                                       ; +0x8c, 0x10003e92c\nmov     rsi, r15                                                       ; +0x8f, 0x10003e92f\ncall    sub_10028CC60                                                  ; +0x92, 0x10003e932\nmov     rax, [r14]                                                     ; +0x97, 0x10003e937\nmov     rdi, r14                                                       ; +0x9a, 0x10003e93a\nmov     rsi, r12                                                       ; +0x9d, 0x10003e93d\ncall    qword ptr [rax+0B8h]                                           ; +0xa0, 0x10003e940\nmov     rax, [r14]                                                     ; +0xa6, 0x10003e946\nmov     rdi, r14                                                       ; +0xa9, 0x10003e949\ncall    qword ptr [rax+550h]                                           ; +0xac, 0x10003e94c\nmov     rdi, [rbx+4E8h]                                                ; +0xb2, 0x10003e952\nmov     rsi, r14                                                       ; +0xb9, 0x10003e959\ncall    GJBaseGameLayer__reorderObjectSection                          ; +0xbc, 0x10003e95c\nmov     rdi, r14                                                       ; +0xc1, 0x10003e961\ncall    GameObject__isSpeedObject                                      ; +0xc4, 0x10003e964\nmov     r15d, eax                                                      ; +0xc9, 0x10003e969\ncmp     dword ptr [r14+404h], 2EBh                                     ; +0xcc, 0x10003e96c\njnz     short loc_10003E991                                            ; +0xd7, 0x10003e977\nmov     rsi, [r14+730h]                                                ; +0xd9, 0x10003e979\ntest    rsi, rsi                                                       ; +0xe0, 0x10003e980\njz      short loc_10003E991                                            ; +0xe3, 0x10003e983\nmov     rdi, [rbx+4E8h]                                                ; +0xe5, 0x10003e985\ncall    GJBaseGameLayer__reorderObjectSection                          ; +0xec, 0x10003e98c\nmov     rdi, [rbx+4E8h]                                                ; +0xf1, 0x10003e991\nmov     rsi, r14                                                       ; +0xf8, 0x10003e998\ncall    LevelEditorLayer__objectMoved                                  ; +0xfb, 0x10003e99b\ntest    r15b, r15b                                                     ; +0x100, 0x10003e9a0\njnz     short loc_10003E9B5                                            ; +0x103, 0x10003e9a3\nmov     rax, [r14]                                                     ; +0x105, 0x10003e9a5\nmov     rdi, r14                                                       ; +0x108, 0x10003e9a8\ncall    qword ptr [rax+680h]                                           ; +0x10b, 0x10003e9ab\ntest    al, al                                                         ; +0x111, 0x10003e9b1\njz      short loc_10003E9BC                                            ; +0x113, 0x10003e9b3\nmov     byte ptr [rbx+30Dh], 1                                         ; +0x115, 0x10003e9b5\nadd     rsp, 10h                                                       ; +0x11c, 0x10003e9bc\npop     rbx                                                            ; +0x120, 0x10003e9c0\npop     r12                                                            ; +0x121, 0x10003e9c1\npop     r14                                                            ; +0x123, 0x10003e9c3\npop     r15                                                            ; +0x125, 0x10003e9c5\npop     rbp                                                            ; +0x127, 0x10003e9c7\nretn                                                                   ; +0x128, 0x10003e9c8", "xrefs": ["EditorUI::repositionObjectsToCenter @ 0x100034623", "EditorUI::rotateObjects @ 0x10003bdf0", "EditorUI::scaleObjects @ 0x10003fa35", "EditorUI::transformObjects @ 0x100040ba0", "EditorUI::flipObjectsY @ 0x1000435c3", "EditorUI::flipObjectsX @ 0x100043793", "EditorUI::moveObjectCall_1 @ 0x10004a526", "EditorUI::moveObjectCall_1 @ 0x10004a583", "EditorUI::transformObject @ 0x10004be87", "EditorUI::alignObjects @ 0x10004dd0c", "EditorUI::alignObjects @ 0x10004de43", "EditorUI::ccTouchMoved @ 0x10004f88a", "EditorUI::ccTouchMoved @ 0x10004f925", "EditorUI::ccTouchEnded @ 0x100050018"], "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"}