{"type": "func", "start": 4296583792, "end": 4296583876, "name": "EditorUI::onPaste", "pseudocode": "// \n// EditorUI::onPaste from 0x10018aa70 to 0x10018aac4 (84 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x1001630ec\n// > EditorUI::init @ 0x10046fc9c\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 10:59:52 +0000\n// \n\n__int64 __fastcall EditorUI::onPaste(__int64 a1)\n{\n  __int64 result; // x0\n  __n128 v3; // q0\n  __int64 v4; // x0\n\n  result = GameManager::sharedState(a1);\n  if ( (*(char *)(result + 535) & 0x8000000000000000LL) == 0 )\n  {\n    if ( !*(_BYTE *)(result + 535) )\n      return result;\n    goto LABEL_3;\n  }\n  if ( *(_QWORD *)(result + 520) )\n  {\nLABEL_3:\n    v4 = EditorSFXManager::sharedState(v3);\n    EditorSFXManager::playAction_1(v4, 111);\n    return EditorUI::doPasteObjects(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPaste from 0x10018aa70 to 0x10018aac4 (84 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x1001630ec\n; > EditorUI::init @ 0x10046fc9c\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 10:59:52 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10018aa70\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018aa74\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018aa78\nMOV             X19, X0                                                ; +0xc, 0x10018aa7c\nBL              GameManager__sharedState                               ; +0x10, 0x10018aa80\nLDRSB           X8, [X0,#0x217]                                        ; +0x14, 0x10018aa84\nTBNZ            X8, #0x3F, loc_10018AAB0 ; '?'                         ; +0x18, 0x10018aa88\nCBZ             X8, loc_10018AAB8                                      ; +0x1c, 0x10018aa8c\nBL              EditorSFXManager__sharedState                          ; +0x20, 0x10018aa90\nMOV             W1, #0x6F ; 'o'                                        ; +0x24, 0x10018aa94\nBL              EditorSFXManager__playAction_1                         ; +0x28, 0x10018aa98\nMOV             X0, X19                                                ; +0x2c, 0x10018aa9c\nMOV             W1, #0                                                 ; +0x30, 0x10018aaa0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x10018aaa4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x38, 0x10018aaa8\nB               EditorUI__doPasteObjects                               ; +0x3c, 0x10018aaac\nLDR             X8, [X0,#0x208]                                        ; +0x40, 0x10018aab0\nCBNZ            X8, loc_10018AA90                                      ; +0x44, 0x10018aab4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x10018aab8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x10018aabc\nRET                                                                    ; +0x50, 0x10018aac0", "xrefs": ["EditorUI::handleEditorAction @ 0x1001630ec", "EditorUI::init @ 0x10046fc9c"], "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"}