{"type": "func", "start": 4299090604, "end": 4299090824, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x1003eeaac to 0x1003eeb88 (220 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onCopyWColor @ 0x10039dffc\n// > EditorUI::onCopy @ 0x1003e4818\n// > EditorUI::keyDown @ 0x1003f9b64\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::doCopyObjects(EditorUI *a1, bool a2)\n{\n  _BOOL4 v2; // w20\n  GameObject *m_selectedObject; // x8\n  cocos2d::CCArray *m_selectedObjects; // x21\n  GameManager *v6; // x0\n  void **p_m_editorClipboard; // x20\n  int v8; // w20\n  std::string v9; // [xsp+8h] [xbp-38h] BYREF\n\n  v2 = a2;\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n    goto LABEL_2;\n  if ( !(unsigned int)sub_10024A36C((__int64)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  if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n  }\n  else\n  {\n    m_selectedObjects = (cocos2d::CCArray *)sub_10024A15C();\n    sub_10024A2D0((__int64)m_selectedObjects);\n  }\n  EditorUI::copyObjects((__int64)a1, (__int64)m_selectedObjects, v2, 0, &v9);\n  v6 = GameManager::sharedState();\n  p_m_editorClipboard = (void **)&v6->m_editorClipboard;\n  if ( v6->m_editorClipboard.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    operator delete(*p_m_editorClipboard);\n  *(std::string *)p_m_editorClipboard = v9;\n  v8 = sub_10024A36C((__int64)a1->m_selectedObjects);\n  GameManager::sharedState()->m_copiedObjectCount = v8;\n  EditorUI::updateButtons(a1);\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x1003eeaac to 0x1003eeb88 (220 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onCopyWColor @ 0x10039dffc\n; > EditorUI::onCopy @ 0x1003e4818\n; > EditorUI::keyDown @ 0x1003f9b64\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1003eeaac\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1003eeab0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1003eeab4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1003eeab8\nADD             X29, SP, #0x40                                         ; +0x10, 0x1003eeabc\nMOV             X20, X1                                                ; +0x14, 0x1003eeac0\nMOV             X19, X0                                                ; +0x18, 0x1003eeac4\nLDR             X8, [X0,#0x520]                                        ; +0x1c, 0x1003eeac8\nCBZ             X8, loc_1003EEAF0                                      ; +0x20, 0x1003eeacc\nLDR             W8, [X8,#0x404]                                        ; +0x24, 0x1003eead0\nCMP             W8, #0x2ED                                             ; +0x28, 0x1003eead4\nB.EQ            loc_1003EEB74                                          ; +0x2c, 0x1003eead8\nLDR             X0, [X19,#0x328]                                       ; +0x30, 0x1003eeadc\nBL              sub_10024A36C                                          ; +0x34, 0x1003eeae0\nCBZ             W0, loc_1003EEB08                                      ; +0x38, 0x1003eeae4\nLDR             X21, [X19,#0x328]                                      ; +0x3c, 0x1003eeae8\nB               loc_1003EEB18                                          ; +0x40, 0x1003eeaec\nLDR             X0, [X19,#0x328]                                       ; +0x44, 0x1003eeaf0\nBL              sub_10024A36C                                          ; +0x48, 0x1003eeaf4\nCBZ             W0, loc_1003EEB74                                      ; +0x4c, 0x1003eeaf8\nLDR             X8, [X19,#0x520]                                       ; +0x50, 0x1003eeafc\nCBNZ            X8, loc_1003EEAD0                                      ; +0x54, 0x1003eeb00\nB               loc_1003EEADC                                          ; +0x58, 0x1003eeb04\nBL              sub_10024A15C                                          ; +0x5c, 0x1003eeb08\nMOV             X21, X0                                                ; +0x60, 0x1003eeb0c\nLDR             X1, [X19,#0x520]                                       ; +0x64, 0x1003eeb10\nBL              sub_10024A2D0                                          ; +0x68, 0x1003eeb14\nADD             X8, SP, #0x40+var_38                                   ; +0x6c, 0x1003eeb18\nMOV             X0, X19                                                ; +0x70, 0x1003eeb1c\nMOV             X1, X21                                                ; +0x74, 0x1003eeb20\nMOV             X2, X20                                                ; +0x78, 0x1003eeb24\nMOV             W3, #0                                                 ; +0x7c, 0x1003eeb28\nBL              EditorUI__copyObjects                                  ; +0x80, 0x1003eeb2c\nBL              GameManager__sharedState                               ; +0x84, 0x1003eeb30\nADD             X20, X0, #0x1D8                                        ; +0x88, 0x1003eeb34\nLDRSB           W8, [X0,#0x1EF]                                        ; +0x8c, 0x1003eeb38\nTBZ             W8, #0x1F, loc_1003EEB48                               ; +0x90, 0x1003eeb3c\nLDR             X0, [X20]; __p                                         ; +0x94, 0x1003eeb40\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1003eeb44\nLDUR            Q0, [SP,#0x40+var_38]                                  ; +0x9c, 0x1003eeb48\nSTR             Q0, [X20]                                              ; +0xa0, 0x1003eeb4c\nLDR             X8, [SP,#0x40+var_28]                                  ; +0xa4, 0x1003eeb50\nSTR             X8, [X20,#0x10]                                        ; +0xa8, 0x1003eeb54\nLDR             X0, [X19,#0x328]                                       ; +0xac, 0x1003eeb58\nBL              sub_10024A36C                                          ; +0xb0, 0x1003eeb5c\nMOV             X20, X0                                                ; +0xb4, 0x1003eeb60\nBL              GameManager__sharedState                               ; +0xb8, 0x1003eeb64\nSTR             W20, [X0,#0x1F0]                                       ; +0xbc, 0x1003eeb68\nMOV             X0, X19                                                ; +0xc0, 0x1003eeb6c\nBL              EditorUI__updateButtons                                ; +0xc4, 0x1003eeb70\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc8, 0x1003eeb74\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xcc, 0x1003eeb78\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xd0, 0x1003eeb7c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xd4, 0x1003eeb80\nRET                                                                    ; +0xd8, 0x1003eeb84", "xrefs": ["EditorPauseLayer::onCopyWColor @ 0x10039dffc", "EditorUI::onCopy @ 0x1003e4818", "EditorUI::keyDown @ 0x1003f9b64"], "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"}