{"type": "func", "start": 3825516, "end": 3825620, "name": "EditorUI::doPasteInPlace", "pseudocode": "// \n// EditorUI::doPasteInPlace from 0x3a5f6c to 0x3a5fd4 (104 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPasteInPlace @ 0x3a5fda\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::doPasteInPlace(EditorUI *a1, bool a2)\n{\n  _BOOL4 v3; // r7\n  GameManager *v4; // r0\n  _DWORD v5[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v5[0] = a1;\n  v5[1] = a2;\n  v3 = a2;\n  if ( *((_DWORD *)GameManager::sharedState()->m_editorClipboard.m_data.m_data - 3) )\n  {\n    v4 = GameManager::sharedState();\n    sub_775C20(v5, &v4->m_editorClipboard);\n    EditorUI::pasteObjects(a1, v5, v3, 0);\n    sub_774008(v5);\n    EditorUI::updateButtons(a1);\n    EditorUI::updateObjectInfoLabel(a1);\n  }\n}", "assembly": "; \n; EditorUI::doPasteInPlace from 0x3a5f6c to 0x3a5fd4 (104 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPasteInPlace @ 0x3a5fda\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3a5f6c\nMOV             R6, R0                                                 ; +0x2, 0x3a5f6e\nLDR             R4, =(__stack_chk_guard_ptr - 0x3A5F78)                ; +0x4, 0x3a5f70\nMOV             R7, R1                                                 ; +0x6, 0x3a5f72\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3a5f74\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x3a5f76\nLDR             R3, [R4]                                               ; +0xc, 0x3a5f78\nSTR             R3, [SP,#0xC+var_8]                                    ; +0xe, 0x3a5f7a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x3a5f7c\nLDR.W           R3, [R0,#0x164]                                        ; +0x14, 0x3a5f80\nLDR.W           R3, [R3,#-0xC]                                         ; +0x18, 0x3a5f84\nCBZ             R3, loc_3A5FC4                                         ; +0x1c, 0x3a5f88\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1e, 0x3a5f8a\nMOV             R5, SP                                                 ; +0x22, 0x3a5f8e\nADD.W           R1, R0, #0x164                                         ; +0x24, 0x3a5f90\nMOV             R0, SP                                                 ; +0x28, 0x3a5f94\nBL              sub_775C20                                             ; +0x2a, 0x3a5f96\nMOV             R0, R6; int                                            ; +0x2e, 0x3a5f9a\nMOV             R1, SP; int                                            ; +0x30, 0x3a5f9c\nMOV             R2, R7                                                 ; +0x32, 0x3a5f9e\nMOVS            R3, #0                                                 ; +0x34, 0x3a5fa0\nBL              _ZN8EditorUI12pasteObjectsESsbb; EditorUI::pasteObjects(std::string,bool,bool) ; +0x36, 0x3a5fa2\nMOV             R0, SP                                                 ; +0x3a, 0x3a5fa6\nBL              sub_774008                                             ; +0x3c, 0x3a5fa8\nMOV             R0, R6; this                                           ; +0x40, 0x3a5fac\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x42, 0x3a5fae\nMOV             R0, R6; this                                           ; +0x46, 0x3a5fb2\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x48, 0x3a5fb4\nB               loc_3A5FC4                                             ; +0x4c, 0x3a5fb8\nMOV             R0, R5                                                 ; +0x4e, 0x3a5fba\nBL              sub_774008                                             ; +0x50, 0x3a5fbc\nBL              __cxa_end_cleanup                                      ; +0x54, 0x3a5fc0\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x58, 0x3a5fc4\nLDR             R3, [R4]                                               ; +0x5a, 0x3a5fc6\nCMP             R2, R3                                                 ; +0x5c, 0x3a5fc8\nBEQ             loc_3A5FD0                                             ; +0x5e, 0x3a5fca\nBLX             __stack_chk_fail                                       ; +0x60, 0x3a5fcc\nADD             SP, SP, #0xC                                           ; +0x64, 0x3a5fd0\nPOP             {R4-R7,PC}                                             ; +0x66, 0x3a5fd2", "xrefs": ["EditorUI::onPasteInPlace @ 0x3a5fda"], "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"}