{"type": "func", "start": 4299627608, "end": 4299627716, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x100471c58 to 0x100471cc4 (108 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x100163524\n// > EditorUI::init @ 0x10046fd3c\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 11:05:38 +0000\n// \n\n__int64 __fastcall EditorUI::onEditColor(__int64 a1)\n{\n  __int64 result; // x0\n\n  if ( *(_QWORD *)(a1 + 1496) || (result = sub_1002E757C(*(_QWORD *)(a1 + 896)), (_DWORD)result) )\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 64LL))(*(_QWORD *)(a1 + 1104)) == 1 )\n      sub_10047C854(a1);\n    else\n      sub_10047C974(a1);\n    return EditorUI::updateEditColorButton(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onEditColor from 0x100471c58 to 0x100471cc4 (108 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x100163524\n; > EditorUI::init @ 0x10046fd3c\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 11:05:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100471c58\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100471c5c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100471c60\nMOV             X19, X0                                                ; +0xc, 0x100471c64\nLDR             X8, [X0,#0x5D8]                                        ; +0x10, 0x100471c68\nCBNZ            X8, loc_100471C7C                                      ; +0x14, 0x100471c6c\nLDR             X0, [X19,#0x380]                                       ; +0x18, 0x100471c70\nBL              sub_1002E757C                                          ; +0x1c, 0x100471c74\nCBZ             W0, loc_100471CB8                                      ; +0x20, 0x100471c78\nLDR             X0, [X19,#0x450]                                       ; +0x24, 0x100471c7c\nLDR             X8, [X0]                                               ; +0x28, 0x100471c80\nLDR             X8, [X8,#0x40]                                         ; +0x2c, 0x100471c84\nBLR             X8                                                     ; +0x30, 0x100471c88\nCMP             W0, #1                                                 ; +0x34, 0x100471c8c\nB.NE            loc_100471CA0                                          ; +0x38, 0x100471c90\nMOV             X0, X19                                                ; +0x3c, 0x100471c94\nBL              sub_10047C854                                          ; +0x40, 0x100471c98\nB               loc_100471CA8                                          ; +0x44, 0x100471c9c\nMOV             X0, X19                                                ; +0x48, 0x100471ca0\nBL              sub_10047C974                                          ; +0x4c, 0x100471ca4\nMOV             X0, X19                                                ; +0x50, 0x100471ca8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x100471cac\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x100471cb0\nB               EditorUI__updateEditColorButton                        ; +0x5c, 0x100471cb4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x100471cb8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x100471cbc\nRET                                                                    ; +0x68, 0x100471cc0", "xrefs": ["EditorUI::handleEditorAction @ 0x100163524", "EditorUI::init @ 0x10046fd3c"], "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"}