{"type": "func", "start": 4296585020, "end": 4296585096, "name": "EditorUI::onCopyState", "pseudocode": "// \n// EditorUI::onCopyState from 0x10018af3c to 0x10018af88 (76 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162fb8\n// > EditorUI::init @ 0x100470044\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::onCopyState(__int64 result, __n128 a2)\n{\n  __int64 v2; // x19\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  if ( *(_QWORD *)(result + 1496) )\n  {\n    v2 = result;\n    v3 = EditorSFXManager::sharedState(a2);\n    v4 = EditorSFXManager::playAction(v3, 112, 110);\n    v5 = GameManager::sharedState(v4);\n    sub_100405A90(*(_QWORD *)(v5 + 552), *(_QWORD *)(v2 + 1496));\n    return EditorUI::updateButtons(v2);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onCopyState from 0x10018af3c to 0x10018af88 (76 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162fb8\n; > EditorUI::init @ 0x100470044\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; \nLDR             X8, [X0,#0x5D8]                                        ; +0x0, 0x10018af3c\nCBZ             X8, locret_10018AF84                                   ; +0x4, 0x10018af40\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x10018af44\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x10018af48\nADD             X29, SP, #0x10                                         ; +0x10, 0x10018af4c\nMOV             X19, X0                                                ; +0x14, 0x10018af50\nBL              EditorSFXManager__sharedState                          ; +0x18, 0x10018af54\nMOV             W1, #0x70 ; 'p'                                        ; +0x1c, 0x10018af58\nMOV             W2, #0x6E ; 'n'                                        ; +0x20, 0x10018af5c\nBL              EditorSFXManager__playAction                           ; +0x24, 0x10018af60\nBL              GameManager__sharedState                               ; +0x28, 0x10018af64\nLDR             X0, [X0,#0x228]                                        ; +0x2c, 0x10018af68\nLDR             X1, [X19,#0x5D8]                                       ; +0x30, 0x10018af6c\nBL              sub_100405A90                                          ; +0x34, 0x10018af70\nMOV             X0, X19                                                ; +0x38, 0x10018af74\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x10018af78\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x10018af7c\nB               EditorUI__updateButtons                                ; +0x44, 0x10018af80\nRET                                                                    ; +0x48, 0x10018af84", "xrefs": ["EditorUI::handleEditorAction @ 0x100162fb8", "EditorUI::init @ 0x100470044"], "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"}