{"type": "func", "start": 5369866480, "end": 5369866725, "name": "EditorUI::toggleEditObjectButton", "pseudocode": "// \n// EditorUI::toggleEditObjectButton from 0x14011a8f0 to 0x14011a9e5 (245 bytes)\n// \n// 6 xrefs:\n// > EditorUI::updateButtons @ 0x1400e1def\n// > EditorUI::deselectTargetPortals @ 0x1400e699f\n// > EditorUI::deselectObject @ 0x1401113be\n// > EditorUI::deselectAll @ 0x1401114bc\n// > EditorUI::ccTouchEnded @ 0x140125138\n// > <???> @ 0x1406c9480\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 EditorUI::toggleEditObjectButton(EditorUI *a1)\n{\n  __int16 *v2; // rdi\n  bool v3; // bl\n  __int16 *v4; // rdx\n  GLubyte v5; // si\n  __int64 v6; // rdx\n  bool v7; // bl\n\n  v2 = &word_140529A40;\n  v3 = EditorUI::editButtonUsable(a1);\n  LOBYTE(a1->m_editObjectBtn->m_scaleMultiplier) = v3;\n  v4 = &word_140529A40;\n  if ( v3 )\n    v4 = &word_140529A48;\n  a1->m_editObjectBtn->setColor(&a1->m_editObjectBtn->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v4);\n  v5 = -81;\n  v6 = 175;\n  if ( v3 )\n    v6 = 255;\n  a1->m_editObjectBtn->setOpacity(&a1->m_editObjectBtn->cocos2d::CCRGBAProtocol, v6);\n  v7 = EditorUI::editButton2Usable(a1);\n  LOBYTE(a1->m_editSpecialBtn->m_scaleMultiplier) = v7;\n  if ( v7 )\n    v2 = &word_140529A48;\n  a1->m_editSpecialBtn->setColor(&a1->m_editSpecialBtn->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v2);\n  if ( v7 )\n    v5 = -1;\n  a1->m_editSpecialBtn->setOpacity(&a1->m_editSpecialBtn->cocos2d::CCRGBAProtocol, v5);\n  EditorUI::updateEditColorButton(a1);\n}", "assembly": "; \n; EditorUI::toggleEditObjectButton from 0x14011a8f0 to 0x14011a9e5 (245 bytes)\n; \n; 6 xrefs:\n; > EditorUI::updateButtons @ 0x1400e1def\n; > EditorUI::deselectTargetPortals @ 0x1400e699f\n; > EditorUI::deselectObject @ 0x1401113be\n; > EditorUI::deselectAll @ 0x1401114bc\n; > EditorUI::ccTouchEnded @ 0x140125138\n; > <???> @ 0x1406c9480\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14011a8f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14011a8f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14011a8fa\npush    rdi                                                            ; +0xf, 0x14011a8ff\npush    r14                                                            ; +0x10, 0x14011a900\npush    r15                                                            ; +0x12, 0x14011a902\nsub     rsp, 20h                                                       ; +0x14, 0x14011a904\nmov     rbp, rcx                                                       ; +0x18, 0x14011a908\ncall    EditorUI__editButtonUsable                                     ; +0x1b, 0x14011a90b\nmov     rdx, [rbp+3E0h]                                                ; +0x20, 0x14011a910\nlea     rdi, word_140529A40                                            ; +0x27, 0x14011a917\nlea     r15, word_140529A48                                            ; +0x2e, 0x14011a91e\nmovzx   ebx, al                                                        ; +0x35, 0x14011a925\nmov     [rdx+198h], al                                                 ; +0x38, 0x14011a928\nmov     rdx, rdi                                                       ; +0x3e, 0x14011a92e\nmov     rcx, [rbp+3E0h]                                                ; +0x41, 0x14011a931\nadd     rcx, 140h                                                      ; +0x48, 0x14011a938\ntest    al, al                                                         ; +0x4f, 0x14011a93f\ncmovnz  rdx, r15                                                       ; +0x51, 0x14011a941\nmov     r8, [rcx]                                                      ; +0x55, 0x14011a945\ncall    qword ptr [r8]                                                 ; +0x58, 0x14011a948\nmov     rcx, [rbp+3E0h]                                                ; +0x5b, 0x14011a94b\nmov     esi, 0AFh                                                      ; +0x62, 0x14011a952\nadd     rcx, 140h                                                      ; +0x67, 0x14011a957\nmov     edx, esi                                                       ; +0x6e, 0x14011a95e\ntest    bl, bl                                                         ; +0x70, 0x14011a960\nmov     r14d, 0FFh                                                     ; +0x72, 0x14011a962\ncmovnz  edx, r14d                                                      ; +0x78, 0x14011a968\nmov     rax, [rcx]                                                     ; +0x7c, 0x14011a96c\ncall    qword ptr [rax+28h]                                            ; +0x7f, 0x14011a96f\nmov     rcx, rbp                                                       ; +0x82, 0x14011a972\ncall    EditorUI__editButton2Usable                                    ; +0x85, 0x14011a975\nmov     rcx, [rbp+3F8h]                                                ; +0x8a, 0x14011a97a\nmovzx   ebx, al                                                        ; +0x91, 0x14011a981\nmov     [rcx+198h], al                                                 ; +0x94, 0x14011a984\nmov     rcx, [rbp+3F8h]                                                ; +0x9a, 0x14011a98a\nadd     rcx, 140h                                                      ; +0xa1, 0x14011a991\ntest    al, al                                                         ; +0xa8, 0x14011a998\ncmovnz  rdi, r15                                                       ; +0xaa, 0x14011a99a\nmov     r8, [rcx]                                                      ; +0xae, 0x14011a99e\nmov     rdx, rdi                                                       ; +0xb1, 0x14011a9a1\ncall    qword ptr [r8]                                                 ; +0xb4, 0x14011a9a4\nmov     rcx, [rbp+3F8h]                                                ; +0xb7, 0x14011a9a7\nadd     rcx, 140h                                                      ; +0xbe, 0x14011a9ae\ntest    bl, bl                                                         ; +0xc5, 0x14011a9b5\ncmovnz  esi, r14d                                                      ; +0xc7, 0x14011a9b7\nmov     rax, [rcx]                                                     ; +0xcb, 0x14011a9bb\nmovzx   edx, sil                                                       ; +0xce, 0x14011a9be\ncall    qword ptr [rax+28h]                                            ; +0xd2, 0x14011a9c2\nmov     rcx, rbp                                                       ; +0xd5, 0x14011a9c5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd8, 0x14011a9c8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xdd, 0x14011a9cd\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe2, 0x14011a9d2\nadd     rsp, 20h                                                       ; +0xe7, 0x14011a9d7\npop     r15                                                            ; +0xeb, 0x14011a9db\npop     r14                                                            ; +0xed, 0x14011a9dd\npop     rdi                                                            ; +0xef, 0x14011a9df\njmp     EditorUI__updateEditColorButton                                ; +0xf0, 0x14011a9e0", "xrefs": ["EditorUI::updateButtons @ 0x1400e1def", "EditorUI::deselectTargetPortals @ 0x1400e699f", "EditorUI::deselectObject @ 0x1401113be", "EditorUI::deselectAll @ 0x1401114bc", "EditorUI::ccTouchEnded @ 0x140125138", "<???> @ 0x1406c9480"], "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"}