{"type": "func", "start": 7287652, "end": 7287700, "name": "EditorUI::onPaste", "pseudocode": "// \n// EditorUI::onPaste from 0x6f3364 to 0x6f3394 (48 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f19d4\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::onPaste(EditorUI *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  int v4; // r3\n  int v5; // r3\n  EditorSFXManager *v6; // r0\n\n  result = GameManager::sharedState(this);\n  v4 = *(unsigned __int8 *)(result + 388);\n  if ( (v4 & 1) != 0 )\n    v5 = *(_DWORD *)(result + 392);\n  else\n    v5 = v4 >> 1;\n  if ( v5 )\n  {\n    v6 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)result);\n    EditorSFXManager::playAction(v6, 111);\n    return EditorUI::doPasteObjects(this, 0);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPaste from 0x6f3364 to 0x6f3394 (48 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f19d4\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,LR}                                                ; +0x0, 0x6f3364\nMOV             R4, R0                                                 ; +0x2, 0x6f3366\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x6f3368\nLDRB.W          R3, [R0,#0x184]                                        ; +0x8, 0x6f336c\nLSLS            R2, R3, #0x1F                                          ; +0xc, 0x6f3370\nITE PL                                                                 ; +0xe, 0x6f3372\nASRPL           R3, R3, #1                                             ; +0x10, 0x6f3374\nLDRMI.W         R3, [R0,#0x188]                                        ; +0x12, 0x6f3376\nCBZ             R3, locret_6F3392                                      ; +0x16, 0x6f337a\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x18, 0x6f337c\nMOVS            R1, #0x6F ; 'o'; int                                   ; +0x1c, 0x6f3380\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x1e, 0x6f3382\nMOV             R0, R4; this                                           ; +0x22, 0x6f3386\nMOVS            R1, #0; bool                                           ; +0x24, 0x6f3388\nPOP.W           {R4,LR}                                                ; +0x26, 0x6f338a\nB.W             _ZN8EditorUI14doPasteObjectsEb; EditorUI::doPasteObjects(bool) ; +0x2a, 0x6f338e\nPOP             {R4,PC}                                                ; +0x2e, 0x6f3392", "xrefs": ["EditorUI::handleEditorAction @ 0x6f19d4"], "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"}