{"type": "func", "start": 4295221328, "end": 4295221577, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x10003e050 to 0x10003e149 (249 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCopy @ 0x10002ae07\n// > EditorUI::keyDown @ 0x100050511\n// > EditorPauseLayer::onCopyWColor @ 0x100293e98\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::doCopyObjects(EditorUI *a1, bool a2)\n{\n  GameObject *m_selectedObject; // rax\n  cocos2d::CCArray *m_selectedObjects; // rdi\n  __int64 v5; // r15\n  GameManager *v6; // rax\n  std::string *p_m_editorClipboard; // r14\n  int v8; // r14d\n  std::string v9; // [rsp+0h] [rbp-30h] BYREF\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n    goto LABEL_2;\n  if ( !(unsigned int)sub_100720070(a1->m_selectedObjects) )\n    return;\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\nLABEL_2:\n    if ( m_selectedObject->m_objectID == 749 )\n      return;\n  }\n  m_selectedObjects = a1->m_selectedObjects;\n  if ( (unsigned int)sub_100720070(m_selectedObjects) )\n  {\n    v5 = (__int64)a1->m_selectedObjects;\n  }\n  else\n  {\n    v5 = sub_10071F9E0(m_selectedObjects, a2);\n    sub_10071FCD0(v5, a1->m_selectedObject);\n  }\n  EditorUI::copyObjects(&v9, (__int64)a1, v5, a2, 0);\n  v6 = GameManager::sharedState();\n  p_m_editorClipboard = (std::string *)&v6->m_editorClipboard;\n  if ( (v6->m_editorClipboard.m_data.m_short.sizex2 & 1) != 0 )\n    operator delete(v6->m_editorClipboard.m_data.m_long.longStorage);\n  *p_m_editorClipboard = v9;\n  v8 = sub_100720070(a1->m_selectedObjects);\n  GameManager::sharedState()->m_copiedObjectCount = v8;\n  EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x10003e050 to 0x10003e149 (249 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCopy @ 0x10002ae07\n; > EditorUI::keyDown @ 0x100050511\n; > EditorPauseLayer::onCopyWColor @ 0x100293e98\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\npush    rbp                                                            ; +0x0, 0x10003e050\nmov     rbp, rsp                                                       ; +0x1, 0x10003e051\npush    r15                                                            ; +0x4, 0x10003e054\npush    r14                                                            ; +0x6, 0x10003e056\npush    rbx                                                            ; +0x8, 0x10003e058\nsub     rsp, 18h                                                       ; +0x9, 0x10003e059\nmov     r14d, esi                                                      ; +0xd, 0x10003e05d\nmov     rbx, rdi                                                       ; +0x10, 0x10003e060\nmov     rax, [rdi+520h]                                                ; +0x13, 0x10003e063\ntest    rax, rax                                                       ; +0x1a, 0x10003e06a\njz      short loc_10003E098                                            ; +0x1d, 0x10003e06d\ncmp     dword ptr [rax+404h], 2EDh                                     ; +0x1f, 0x10003e06f\njz      loc_10003E13E                                                  ; +0x29, 0x10003e079\nmov     rdi, [rbx+328h]                                                ; +0x2f, 0x10003e07f\ncall    sub_100720070                                                  ; +0x36, 0x10003e086\ntest    eax, eax                                                       ; +0x3b, 0x10003e08b\njz      short loc_10003E0BA                                            ; +0x3d, 0x10003e08d\nmov     r15, [rbx+328h]                                                ; +0x3f, 0x10003e08f\njmp     short loc_10003E0D1                                            ; +0x46, 0x10003e096\nmov     rdi, [rbx+328h]                                                ; +0x48, 0x10003e098\ncall    sub_100720070                                                  ; +0x4f, 0x10003e09f\ntest    eax, eax                                                       ; +0x54, 0x10003e0a4\njz      loc_10003E13E                                                  ; +0x56, 0x10003e0a6\nmov     rax, [rbx+520h]                                                ; +0x5c, 0x10003e0ac\ntest    rax, rax                                                       ; +0x63, 0x10003e0b3\njnz     short loc_10003E06F                                            ; +0x66, 0x10003e0b6\njmp     short loc_10003E07F                                            ; +0x68, 0x10003e0b8\ncall    sub_10071F9E0                                                  ; +0x6a, 0x10003e0ba\nmov     r15, rax                                                       ; +0x6f, 0x10003e0bf\nmov     rsi, [rbx+520h]                                                ; +0x72, 0x10003e0c2\nmov     rdi, rax                                                       ; +0x79, 0x10003e0c9\ncall    sub_10071FCD0                                                  ; +0x7c, 0x10003e0cc\nmovzx   ecx, r14b                                                      ; +0x81, 0x10003e0d1\nlea     rdi, [rbp+var_30]                                              ; +0x85, 0x10003e0d5\nmov     rsi, rbx                                                       ; +0x89, 0x10003e0d9\nmov     rdx, r15                                                       ; +0x8c, 0x10003e0dc\nxor     r8d, r8d                                                       ; +0x8f, 0x10003e0df\ncall    EditorUI__copyObjects                                          ; +0x92, 0x10003e0e2\ncall    GameManager__sharedState                                       ; +0x97, 0x10003e0e7\nmov     r14, rax                                                       ; +0x9c, 0x10003e0ec\nadd     r14, 1D8h                                                      ; +0x9f, 0x10003e0ef\ntest    byte ptr [rax+1D8h], 1                                         ; +0xa6, 0x10003e0f6\njz      short loc_10003E10B                                            ; +0xad, 0x10003e0fd\nmov     rdi, [rax+1E8h]; __p                                           ; +0xaf, 0x10003e0ff\ncall    __ZdlPv; operator delete(void *)                               ; +0xb6, 0x10003e106\nmov     rax, [rbp+var_20]                                              ; +0xbb, 0x10003e10b\nmov     [r14+10h], rax                                                 ; +0xbf, 0x10003e10f\nmovups  xmm0, [rbp+var_30]                                             ; +0xc3, 0x10003e113\nmovups  xmmword ptr [r14], xmm0                                        ; +0xc7, 0x10003e117\nmov     rdi, [rbx+328h]                                                ; +0xcb, 0x10003e11b\ncall    sub_100720070                                                  ; +0xd2, 0x10003e122\nmov     r14d, eax                                                      ; +0xd7, 0x10003e127\ncall    GameManager__sharedState                                       ; +0xda, 0x10003e12a\nmov     [rax+1F0h], r14d                                               ; +0xdf, 0x10003e12f\nmov     rdi, rbx                                                       ; +0xe6, 0x10003e136\ncall    EditorUI__updateButtons                                        ; +0xe9, 0x10003e139\nadd     rsp, 18h                                                       ; +0xee, 0x10003e13e\npop     rbx                                                            ; +0xf2, 0x10003e142\npop     r14                                                            ; +0xf3, 0x10003e143\npop     r15                                                            ; +0xf5, 0x10003e145\npop     rbp                                                            ; +0xf7, 0x10003e147\nretn                                                                   ; +0xf8, 0x10003e148", "xrefs": ["EditorUI::onCopy @ 0x10002ae07", "EditorUI::keyDown @ 0x100050511", "EditorPauseLayer::onCopyWColor @ 0x100293e98"], "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"}