{"type": "func", "start": 12427384, "end": 12427472, "name": "EditorUI::onPaste", "pseudocode": "// \n// EditorUI::onPaste from 0xbda078 to 0xbda0d0 (88 bytes)\n// \n// 4 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd83c8\n// > <???> @ 0x102c10\n// > EditorUI::init @ 0x7d02f4\n// > <???> @ 0x1547e70\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:42 +0000\n// \n\n__int64 __fastcall EditorUI::onPaste(EditorUI *this, cocos2d::CCObject *a2)\n{\n  unsigned __int8 *v3; // x2\n  __int64 result; // x0\n  __int64 v5; // x1\n  EditorSFXManager *v6; // x0\n\n  v3 = (unsigned __int8 *)(GameManager::sharedState(this) + 512);\n  result = *v3;\n  v5 = (unsigned __int8)result >> 1;\n  if ( (result & 1) != 0 )\n    v5 = *((_QWORD *)v3 + 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 0xbda078 to 0xbda0d0 (88 bytes)\n; \n; 4 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd83c8\n; > <???> @ 0x102c10\n; > EditorUI::init @ 0x7d02f4\n; > <???> @ 0x1547e70\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:03:42 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xbda078\nMOV             X29, SP                                                ; +0x4, 0xbda07c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xbda080\nMOV             X19, X0                                                ; +0xc, 0xbda084\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0xbda088\nADD             X2, X0, #0x200                                         ; +0x14, 0xbda08c\nLDRB            W0, [X0,#0x200]; this                                  ; +0x18, 0xbda090\nUBFX            X1, X0, #1, #7                                         ; +0x1c, 0xbda094\nTBZ             W0, #0, loc_BDA0A0                                     ; +0x20, 0xbda098\nLDR             X1, [X2,#8]                                            ; +0x24, 0xbda09c\nCBNZ            X1, loc_BDA0B0                                         ; +0x28, 0xbda0a0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x2c, 0xbda0a4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0xbda0a8\nRET                                                                    ; +0x34, 0xbda0ac\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x38, 0xbda0b0\nMOV             W1, #0x6F ; 'o'; int                                   ; +0x3c, 0xbda0b4\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x40, 0xbda0b8\nMOV             X0, X19; this                                          ; +0x44, 0xbda0bc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0xbda0c0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0xbda0c4\nMOV             W1, #0; bool                                           ; +0x50, 0xbda0c8\nB               _ZN8EditorUI14doPasteObjectsEb; EditorUI::doPasteObjects(bool) ; +0x54, 0xbda0cc", "xrefs": ["EditorUI::handleEditorAction @ 0xbd83c8", "<???> @ 0x102c10", "EditorUI::init @ 0x7d02f4", "<???> @ 0x1547e70"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}