{"type": "func", "start": 4296585196, "end": 4296585296, "name": "EditorUI::onPasteColor", "pseudocode": "// \n// EditorUI::onPasteColor from 0x10018afec to 0x10018b050 (100 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162b80\n// > EditorUI::init @ 0x10047017c\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::onPasteColor(__int64 a1, __n128 a2)\n{\n  __int64 result; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x0\n\n  if ( *(_QWORD *)(a1 + 1496) || (result = sub_1002E757C(*(_QWORD *)(a1 + 896)), (_DWORD)result) )\n  {\n    v4 = EditorSFXManager::sharedState(a2);\n    v5 = EditorSFXManager::playAction(v4, 114, 111);\n    v6 = GameManager::sharedState(v5);\n    LevelEditorLayer::pasteColorState(*(_QWORD *)(v6 + 552), *(_QWORD *)(a1 + 1496), *(_QWORD *)(a1 + 896));\n    return EditorUI::updateObjectInfoLabel(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPasteColor from 0x10018afec to 0x10018b050 (100 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162b80\n; > EditorUI::init @ 0x10047017c\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, 0x10018afec\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018aff0\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018aff4\nMOV             X19, X0                                                ; +0xc, 0x10018aff8\nLDR             X8, [X0,#0x5D8]                                        ; +0x10, 0x10018affc\nCBNZ            X8, loc_10018B010                                      ; +0x14, 0x10018b000\nLDR             X0, [X19,#0x380]                                       ; +0x18, 0x10018b004\nBL              sub_1002E757C                                          ; +0x1c, 0x10018b008\nCBZ             W0, loc_10018B044                                      ; +0x20, 0x10018b00c\nBL              EditorSFXManager__sharedState                          ; +0x24, 0x10018b010\nMOV             W1, #0x72 ; 'r'                                        ; +0x28, 0x10018b014\nMOV             W2, #0x6F ; 'o'                                        ; +0x2c, 0x10018b018\nBL              EditorSFXManager__playAction                           ; +0x30, 0x10018b01c\nBL              GameManager__sharedState                               ; +0x34, 0x10018b020\nLDR             X0, [X0,#0x228]                                        ; +0x38, 0x10018b024\nLDR             X1, [X19,#0x5D8]                                       ; +0x3c, 0x10018b028\nLDR             X2, [X19,#0x380]                                       ; +0x40, 0x10018b02c\nBL              LevelEditorLayer__pasteColorState                      ; +0x44, 0x10018b030\nMOV             X0, X19                                                ; +0x48, 0x10018b034\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10018b038\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x10018b03c\nB               EditorUI__updateObjectInfoLabel                        ; +0x54, 0x10018b040\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x10018b044\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x10018b048\nRET                                                                    ; +0x60, 0x10018b04c", "xrefs": ["EditorUI::handleEditorAction @ 0x100162b80", "EditorUI::init @ 0x10047017c"], "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"}