{"type": "func", "start": 4295016080, "end": 4295016279, "name": "EditorUI::toggleEditObjectButton", "pseudocode": "// \n// EditorUI::toggleEditObjectButton from 0x10000be90 to 0x10000bf57 (199 bytes)\n// \n// 4 xrefs:\n// > EditorUI::deselectAll @ 0x1005b8923\n// > sub_1005B93C0 @ 0x1005b93f2\n// > EditorUI::deselectObject @ 0x1005b9474\n// > sub_1005B94E0 @ 0x1005b95bc\n// \n// This function is hookable on this platform (idp: pc, 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 12:18:50 +0000\n// \n\n__int64 __fastcall EditorUI::toggleEditObjectButton(__int64 a1)\n{\n  char v2; // al\n  _BYTE *v3; // rdi\n  void *v4; // r14\n  void *v5; // rsi\n  unsigned int v6; // r15d\n  unsigned int v7; // r12d\n  char v8; // al\n  _BYTE *v9; // rdi\n\n  v2 = EditorUI::editButtonUsable(a1);\n  v3 = *(_BYTE **)(a1 + 1088);\n  v3[408] = v2;\n  v4 = &unk_100A038D3;\n  v5 = &unk_100A038D3;\n  if ( v2 )\n    v5 = &unk_100A038D0;\n  v6 = 175;\n  v7 = 175;\n  if ( v2 )\n    v7 = 255;\n  (*(void (__fastcall **)(_BYTE *, void *))(*(_QWORD *)v3 + 960LL))(v3, v5);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1088) + 912LL))(*(_QWORD *)(a1 + 1088), v7);\n  v8 = EditorUI::editButton2Usable(a1);\n  v9 = *(_BYTE **)(a1 + 1112);\n  v9[408] = v8;\n  if ( v8 )\n  {\n    v4 = &unk_100A038D0;\n    v6 = 255;\n  }\n  (*(void (__fastcall **)(_BYTE *, void *))(*(_QWORD *)v9 + 960LL))(v9, v4);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1112) + 912LL))(*(_QWORD *)(a1 + 1112), v6);\n  return EditorUI::updateEditColorButton(a1);\n}", "assembly": "; \n; EditorUI::toggleEditObjectButton from 0x10000be90 to 0x10000bf57 (199 bytes)\n; \n; 4 xrefs:\n; > EditorUI::deselectAll @ 0x1005b8923\n; > sub_1005B93C0 @ 0x1005b93f2\n; > EditorUI::deselectObject @ 0x1005b9474\n; > sub_1005B94E0 @ 0x1005b95bc\n; \n; This function is hookable on this platform (idp: pc, 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 12:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000be90\nmov     rbp, rsp                                                       ; +0x1, 0x10000be91\npush    r15                                                            ; +0x4, 0x10000be94\npush    r14                                                            ; +0x6, 0x10000be96\npush    r13                                                            ; +0x8, 0x10000be98\npush    r12                                                            ; +0xa, 0x10000be9a\npush    rbx                                                            ; +0xc, 0x10000be9c\npush    rax                                                            ; +0xd, 0x10000be9d\nmov     rbx, rdi                                                       ; +0xe, 0x10000be9e\ncall    EditorUI__editButtonUsable                                     ; +0x11, 0x10000bea1\nmov     rdi, [rbx+440h]                                                ; +0x16, 0x10000bea6\nmov     [rdi+198h], al                                                 ; +0x1d, 0x10000bead\nlea     rdx, unk_100A038D0                                             ; +0x23, 0x10000beb3\nlea     r14, unk_100A038D3                                             ; +0x2a, 0x10000beba\nmov     rcx, [rdi]                                                     ; +0x31, 0x10000bec1\ntest    al, al                                                         ; +0x34, 0x10000bec4\nmov     rsi, r14                                                       ; +0x36, 0x10000bec6\ncmovnz  rsi, rdx                                                       ; +0x39, 0x10000bec9\nmov     r13d, 0FFh                                                     ; +0x3d, 0x10000becd\nmov     r15d, 0AFh                                                     ; +0x43, 0x10000bed3\nmov     r12d, 0AFh                                                     ; +0x49, 0x10000bed9\ncmovnz  r12d, r13d                                                     ; +0x4f, 0x10000bedf\ncall    qword ptr [rcx+3C0h]                                           ; +0x53, 0x10000bee3\nmov     rdi, [rbx+440h]                                                ; +0x59, 0x10000bee9\nmov     rax, [rdi]                                                     ; +0x60, 0x10000bef0\nmov     esi, r12d                                                      ; +0x63, 0x10000bef3\ncall    qword ptr [rax+390h]                                           ; +0x66, 0x10000bef6\nmov     rdi, rbx                                                       ; +0x6c, 0x10000befc\ncall    EditorUI__editButton2Usable                                    ; +0x6f, 0x10000beff\nmov     rdi, [rbx+458h]                                                ; +0x74, 0x10000bf04\nmov     [rdi+198h], al                                                 ; +0x7b, 0x10000bf0b\nmov     rcx, [rdi]                                                     ; +0x81, 0x10000bf11\ntest    al, al                                                         ; +0x84, 0x10000bf14\nlea     rax, unk_100A038D0                                             ; +0x86, 0x10000bf16\ncmovnz  r14, rax                                                       ; +0x8d, 0x10000bf1d\ncmovnz  r15d, r13d                                                     ; +0x91, 0x10000bf21\nmov     rsi, r14                                                       ; +0x95, 0x10000bf25\ncall    qword ptr [rcx+3C0h]                                           ; +0x98, 0x10000bf28\nmov     rdi, [rbx+458h]                                                ; +0x9e, 0x10000bf2e\nmov     rax, [rdi]                                                     ; +0xa5, 0x10000bf35\nmov     esi, r15d                                                      ; +0xa8, 0x10000bf38\ncall    qword ptr [rax+390h]                                           ; +0xab, 0x10000bf3b\nmov     rdi, rbx                                                       ; +0xb1, 0x10000bf41\nadd     rsp, 8                                                         ; +0xb4, 0x10000bf44\npop     rbx                                                            ; +0xb8, 0x10000bf48\npop     r12                                                            ; +0xb9, 0x10000bf49\npop     r13                                                            ; +0xbb, 0x10000bf4b\npop     r14                                                            ; +0xbd, 0x10000bf4d\npop     r15                                                            ; +0xbf, 0x10000bf4f\npop     rbp                                                            ; +0xc1, 0x10000bf51\njmp     EditorUI__updateEditColorButton                                ; +0xc2, 0x10000bf52", "xrefs": ["EditorUI::deselectAll @ 0x1005b8923", "sub_1005B93C0 @ 0x1005b93f2", "EditorUI::deselectObject @ 0x1005b9474", "sub_1005B94E0 @ 0x1005b95bc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}