{"type": "func", "start": 7287700, "end": 7287826, "name": "EditorUI::doPasteInPlace", "pseudocode": "// \n// EditorUI::doPasteInPlace from 0x6f3394 to 0x6f3412 (126 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPasteInPlace @ 0x6f342e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:37 +0000\n// \n\nint __fastcall EditorUI::doPasteInPlace(EditorUI *this, int a2)\n{\n  int result; // r0\n  int v5; // r3\n  int v6; // r3\n  int v7; // r0\n  int v8[3]; // [sp+0h] [bp-14h] BYREF\n\n  result = GameManager::sharedState(this);\n  v5 = *(unsigned __int8 *)(result + 388);\n  if ( (v5 & 1) != 0 )\n    v6 = *(_DWORD *)(result + 392);\n  else\n    v6 = v5 >> 1;\n  if ( v6 )\n  {\n    v7 = GameManager::sharedState((GameManager *)result);\n    std::string::basic_string(v8, v7 + 388);\n    EditorUI::pasteObjects((int)this, (unsigned __int8 *)v8, a2, 0);\n    std::string::~string((int)v8);\n    EditorBuildStats::noteAction(*((_DWORD *)this + 236) + 12104);\n    EditorUI::updateButtons((cocos2d::CCArray **)this);\n    return EditorUI::updateObjectInfoLabel((cocos2d::CCArray **)this);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::doPasteInPlace from 0x6f3394 to 0x6f3412 (126 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPasteInPlace @ 0x6f342e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:37 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x6f3394\nSUB             SP, SP, #0x14                                          ; +0x2, 0x6f3396\nLDR             R5, =(__stack_chk_guard_ptr - 0x6F33A2)                ; +0x4, 0x6f3398\nMOV             R6, R0                                                 ; +0x6, 0x6f339a\nMOV             R7, R1                                                 ; +0x8, 0x6f339c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x6f339e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x6f33a0\nLDR             R3, [R5]                                               ; +0xe, 0x6f33a2\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x10, 0x6f33a4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x6f33a6\nLDRB.W          R3, [R0,#0x184]                                        ; +0x16, 0x6f33aa\nLSLS            R2, R3, #0x1F                                          ; +0x1a, 0x6f33ae\nITE PL                                                                 ; +0x1c, 0x6f33b0\nASRPL           R3, R3, #1                                             ; +0x1e, 0x6f33b2\nLDRMI.W         R3, [R0,#0x188]                                        ; +0x20, 0x6f33b4\nCBZ             R3, loc_6F3402                                         ; +0x24, 0x6f33b8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x26, 0x6f33ba\nMOV             R4, SP                                                 ; +0x2a, 0x6f33be\nADD.W           R1, R0, #0x184                                         ; +0x2c, 0x6f33c0\nMOV             R0, SP                                                 ; +0x30, 0x6f33c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x32, 0x6f33c6\nMOV             R0, R6; int                                            ; +0x36, 0x6f33ca\nMOV             R1, SP; int                                            ; +0x38, 0x6f33cc\nMOV             R2, R7                                                 ; +0x3a, 0x6f33ce\nMOVS            R3, #0                                                 ; +0x3c, 0x6f33d0\nBL              _ZN8EditorUI12pasteObjectsENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbb; EditorUI::pasteObjects(std::string,bool,bool) ; +0x3e, 0x6f33d2\nMOV             R0, SP                                                 ; +0x42, 0x6f33d6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x44, 0x6f33d8\nLDR.W           R0, [R6,#0x3B0]                                        ; +0x48, 0x6f33dc\nADD.W           R0, R0, #0x2F40                                        ; +0x4c, 0x6f33e0\nADDS            R0, #8; this                                           ; +0x50, 0x6f33e4\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x52, 0x6f33e6\nMOV             R0, R6; this                                           ; +0x56, 0x6f33ea\nBL              _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x58, 0x6f33ec\nMOV             R0, R6; this                                           ; +0x5c, 0x6f33f0\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x5e, 0x6f33f2\nB               loc_6F3402                                             ; +0x62, 0x6f33f6\nMOV             R0, R4                                                 ; +0x64, 0x6f33f8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x66, 0x6f33fa\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x6f33fe\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x6e, 0x6f3402\nLDR             R3, [R5]                                               ; +0x70, 0x6f3404\nCMP             R2, R3                                                 ; +0x72, 0x6f3406\nBEQ             loc_6F340E                                             ; +0x74, 0x6f3408\nBLX             __stack_chk_fail                                       ; +0x76, 0x6f340a\nADD             SP, SP, #0x14                                          ; +0x7a, 0x6f340e\nPOP             {R4-R7,PC}                                             ; +0x7c, 0x6f3410", "xrefs": ["EditorUI::onPasteInPlace @ 0x6f342e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}