{"type": "func", "start": 4295152096, "end": 4295152295, "name": "EditorUI::toggleEditObjectButton", "pseudocode": "// \n// EditorUI::toggleEditObjectButton from 0x10002d1e0 to 0x10002d2a7 (199 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::toggleEditObjectButton(EditorUI *a1)\n{\n  bool v2; // al\n  CCMenuItemSpriteExtra *m_editObjectBtn; // rdi\n  void *v4; // r14\n  void *v5; // rsi\n  unsigned int v6; // r15d\n  unsigned int v7; // r12d\n  bool v8; // al\n  CCMenuItemSpriteExtra *m_editSpecialBtn; // rdi\n\n  v2 = EditorUI::editButtonUsable(a1);\n  m_editObjectBtn = a1->m_editObjectBtn;\n  m_editObjectBtn->m_animationEnabled = v2;\n  v4 = &unk_100815543;\n  v5 = &unk_100815543;\n  if ( v2 )\n    v5 = &unk_100815540;\n  v6 = 175;\n  v7 = 175;\n  if ( v2 )\n    v7 = 255;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_editObjectBtn->setColor)(m_editObjectBtn, v5);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_editObjectBtn->setOpacity)(a1->m_editObjectBtn, v7);\n  v8 = EditorUI::editButton2Usable(a1);\n  m_editSpecialBtn = a1->m_editSpecialBtn;\n  m_editSpecialBtn->m_animationEnabled = v8;\n  if ( v8 )\n  {\n    v4 = &unk_100815540;\n    v6 = 255;\n  }\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, void *))m_editSpecialBtn->setColor)(m_editSpecialBtn, v4);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_editSpecialBtn->setOpacity)(a1->m_editSpecialBtn, v6);\n  EditorUI::updateEditColorButton(a1);\n}", "assembly": "; \n; EditorUI::toggleEditObjectButton from 0x10002d1e0 to 0x10002d2a7 (199 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10002d1e0\nmov     rbp, rsp                                                       ; +0x1, 0x10002d1e1\npush    r15                                                            ; +0x4, 0x10002d1e4\npush    r14                                                            ; +0x6, 0x10002d1e6\npush    r13                                                            ; +0x8, 0x10002d1e8\npush    r12                                                            ; +0xa, 0x10002d1ea\npush    rbx                                                            ; +0xc, 0x10002d1ec\npush    rax                                                            ; +0xd, 0x10002d1ed\nmov     rbx, rdi                                                       ; +0xe, 0x10002d1ee\ncall    EditorUI__editButtonUsable                                     ; +0x11, 0x10002d1f1\nmov     rdi, [rbx+3C8h]                                                ; +0x16, 0x10002d1f6\nmov     [rdi+198h], al                                                 ; +0x1d, 0x10002d1fd\nlea     rdx, unk_100815540                                             ; +0x23, 0x10002d203\nlea     r14, unk_100815543                                             ; +0x2a, 0x10002d20a\nmov     rcx, [rdi]                                                     ; +0x31, 0x10002d211\ntest    al, al                                                         ; +0x34, 0x10002d214\nmov     rsi, r14                                                       ; +0x36, 0x10002d216\ncmovnz  rsi, rdx                                                       ; +0x39, 0x10002d219\nmov     r13d, 0FFh                                                     ; +0x3d, 0x10002d21d\nmov     r15d, 0AFh                                                     ; +0x43, 0x10002d223\nmov     r12d, 0AFh                                                     ; +0x49, 0x10002d229\ncmovnz  r12d, r13d                                                     ; +0x4f, 0x10002d22f\ncall    qword ptr [rcx+3B0h]                                           ; +0x53, 0x10002d233\nmov     rdi, [rbx+3C8h]                                                ; +0x59, 0x10002d239\nmov     rax, [rdi]                                                     ; +0x60, 0x10002d240\nmov     esi, r12d                                                      ; +0x63, 0x10002d243\ncall    qword ptr [rax+380h]                                           ; +0x66, 0x10002d246\nmov     rdi, rbx                                                       ; +0x6c, 0x10002d24c\ncall    EditorUI__editButton2Usable                                    ; +0x6f, 0x10002d24f\nmov     rdi, [rbx+3E0h]                                                ; +0x74, 0x10002d254\nmov     [rdi+198h], al                                                 ; +0x7b, 0x10002d25b\nmov     rcx, [rdi]                                                     ; +0x81, 0x10002d261\ntest    al, al                                                         ; +0x84, 0x10002d264\nlea     rax, unk_100815540                                             ; +0x86, 0x10002d266\ncmovnz  r14, rax                                                       ; +0x8d, 0x10002d26d\ncmovnz  r15d, r13d                                                     ; +0x91, 0x10002d271\nmov     rsi, r14                                                       ; +0x95, 0x10002d275\ncall    qword ptr [rcx+3B0h]                                           ; +0x98, 0x10002d278\nmov     rdi, [rbx+3E0h]                                                ; +0x9e, 0x10002d27e\nmov     rax, [rdi]                                                     ; +0xa5, 0x10002d285\nmov     esi, r15d                                                      ; +0xa8, 0x10002d288\ncall    qword ptr [rax+380h]                                           ; +0xab, 0x10002d28b\nmov     rdi, rbx                                                       ; +0xb1, 0x10002d291\nadd     rsp, 8                                                         ; +0xb4, 0x10002d294\npop     rbx                                                            ; +0xb8, 0x10002d298\npop     r12                                                            ; +0xb9, 0x10002d299\npop     r13                                                            ; +0xbb, 0x10002d29b\npop     r14                                                            ; +0xbd, 0x10002d29d\npop     r15                                                            ; +0xbf, 0x10002d29f\npop     rbp                                                            ; +0xc1, 0x10002d2a1\njmp     EditorUI__updateEditColorButton                                ; +0xc2, 0x10002d2a2", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}