{"type": "func", "start": 3827732, "end": 3827912, "name": "EditorUI::doCopyObjects", "pseudocode": "// \n// EditorUI::doCopyObjects from 0x3a6814 to 0x3a68c8 (180 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCopy @ 0x3a68ce\n// > EditorPauseLayer::onCopyWColor @ 0x3ff2b4\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::doCopyObjects(EditorUI *a1, bool a2)\n{\n  _BOOL4 v3; // r8\n  GameObject *m_selectedObject; // r3\n  cocos2d::CCArray *m_selectedObjects; // r7\n  GameManager *v6; // r9\n  GameManager *v7; // r5\n  char v8; // [sp+8h] [bp-Ch] BYREF\n\n  v3 = a2;\n  if ( a1->m_selectedObject || cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObject = a1->m_selectedObject;\n    if ( !m_selectedObject || m_selectedObject->m_objectID != 749 )\n    {\n      if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n      {\n        m_selectedObjects = a1->m_selectedObjects;\n      }\n      else\n      {\n        m_selectedObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr);\n        cocos2d::CCArray::addObject(m_selectedObjects, a1->m_selectedObject);\n      }\n      v6 = GameManager::sharedState();\n      EditorUI::copyObjects((EditorUI *)&v8, (cocos2d::CCArray *)a1, (int)m_selectedObjects, v3, 0);\n      sub_774794(&v6->m_editorClipboard, &v8);\n      sub_774008(&v8);\n      v7 = GameManager::sharedState();\n      v7->m_copiedObjectCount = cocos2d::CCArray::count(a1->m_selectedObjects);\n      EditorUI::updateButtons(a1);\n    }\n  }\n}", "assembly": "; \n; EditorUI::doCopyObjects from 0x3a6814 to 0x3a68c8 (180 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCopy @ 0x3a68ce\n; > EditorPauseLayer::onCopyWColor @ 0x3ff2b4\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 - 0x3A681E)                ; +0x0, 0x3a6814\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x3a6816\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3a681a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3a681c\nSUB             SP, SP, #0x14                                          ; +0xa, 0x3a681e\nMOV             R4, R0                                                 ; +0xc, 0x3a6820\nLDR             R2, [R3]                                               ; +0xe, 0x3a6822\nMOV             R8, R1                                                 ; +0x10, 0x3a6824\nMOV             R6, R3                                                 ; +0x12, 0x3a6826\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x3a6828\nLDR.W           R2, [R0,#0x374]                                        ; +0x16, 0x3a682a\nCBNZ            R2, loc_3A683A                                         ; +0x1a, 0x3a682e\nLDR.W           R0, [R0,#0x260]; this                                  ; +0x1c, 0x3a6830\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x3a6834\nCBZ             R0, loc_3A68B6                                         ; +0x24, 0x3a6838\nLDR.W           R3, [R4,#0x374]                                        ; +0x26, 0x3a683a\nCBZ             R3, loc_3A684C                                         ; +0x2a, 0x3a683e\nLDR.W           R2, [R3,#0x374]                                        ; +0x2c, 0x3a6840\nMOVW            R3, #0x2ED                                             ; +0x30, 0x3a6844\nCMP             R2, R3                                                 ; +0x34, 0x3a6848\nBEQ             loc_3A68B6                                             ; +0x36, 0x3a684a\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x38, 0x3a684c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3c, 0x3a6850\nCBNZ            R0, loc_3A6866                                         ; +0x40, 0x3a6854\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x42, 0x3a6856\nLDR.W           R1, [R4,#0x374]; cocos2d::CCObject *                   ; +0x46, 0x3a685a\nMOV             R7, R0                                                 ; +0x4a, 0x3a685e\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4c, 0x3a6860\nB               loc_3A686A                                             ; +0x50, 0x3a6864\nLDR.W           R7, [R4,#0x260]                                        ; +0x52, 0x3a6866\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x56, 0x3a686a\nADD             R5, SP, #0x14+var_C                                    ; +0x5a, 0x3a686e\nMOVS            R3, #0                                                 ; +0x5c, 0x3a6870\nMOV             R1, R4; cocos2d::CCArray *                             ; +0x5e, 0x3a6872\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x60, 0x3a6874\nMOV             R2, R7; bool                                           ; +0x62, 0x3a6876\nMOV             R3, R8; bool                                           ; +0x64, 0x3a6878\nMOV             R9, R0                                                 ; +0x66, 0x3a687a\nMOV             R0, R5; this                                           ; +0x68, 0x3a687c\nBL              _ZN8EditorUI11copyObjectsEPN7cocos2d7CCArrayEbb; EditorUI::copyObjects(cocos2d::CCArray *,bool,bool) ; +0x6a, 0x3a687e\nADD.W           R0, R9, #0x164                                         ; +0x6e, 0x3a6882\nMOV             R1, R5                                                 ; +0x72, 0x3a6886\nBL              sub_774794                                             ; +0x74, 0x3a6888\nMOV             R0, R5                                                 ; +0x78, 0x3a688c\nBL              sub_774008                                             ; +0x7a, 0x3a688e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x7e, 0x3a6892\nMOV             R5, R0                                                 ; +0x82, 0x3a6896\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x84, 0x3a6898\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x88, 0x3a689c\nSTR.W           R0, [R5,#0x168]                                        ; +0x8c, 0x3a68a0\nMOV             R0, R4; this                                           ; +0x90, 0x3a68a4\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x92, 0x3a68a6\nB               loc_3A68B6                                             ; +0x96, 0x3a68aa\nMOV             R0, R5                                                 ; +0x98, 0x3a68ac\nBL              sub_774008                                             ; +0x9a, 0x3a68ae\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x3a68b2\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xa2, 0x3a68b6\nLDR             R3, [R6]                                               ; +0xa4, 0x3a68b8\nCMP             R2, R3                                                 ; +0xa6, 0x3a68ba\nBEQ             loc_3A68C2                                             ; +0xa8, 0x3a68bc\nBLX             __stack_chk_fail                                       ; +0xaa, 0x3a68be\nADD             SP, SP, #0x14                                          ; +0xae, 0x3a68c2\nPOP.W           {R4-R9,PC}                                             ; +0xb0, 0x3a68c4", "xrefs": ["EditorUI::onCopy @ 0x3a68ce", "EditorPauseLayer::onCopyWColor @ 0x3ff2b4"], "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"}