{"type": "func", "start": 5370773744, "end": 5370773929, "name": "EditorUI::updateViewButtons", "pseudocode": "// \n// EditorUI::updateViewButtons from 0x1401f80f0 to 0x1401f81a9 (185 bytes)\n// \n// 5 xrefs:\n// > EditorUI::setupViewMenu @ 0x1401f7f34\n// > EditorUI::toggleViewOption @ 0x1401f8878\n// > <???> @ 0x1408a3718\n// > <???> @ 0x1408a3728\n// > <???> @ 0x14091aae0\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 11:28:10 +0000\n// \n\nvoid __fastcall EditorUI::updateViewButtons(__int64 a1)\n{\n  __int64 v1; // rsi\n  __int64 v3; // rsi\n  __int64 i; // rbx\n  __int64 v5; // rsi\n  unsigned int v6; // eax\n  const char *v7; // rdi\n  __int64 v8; // rax\n\n  v1 = *(_QWORD *)(a1 + 1424);\n  if ( v1 )\n  {\n    v3 = *(_QWORD *)(v1 + 56);\n    if ( v3 )\n    {\n      for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        v5 = *(_QWORD *)(v3 + 264);\n        v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 56LL))(v5);\n        v7 = \"GJ_button_04.png\";\n        if ( (unsigned __int8)EditorUI::getViewButtonState(a1, v6) )\n          v7 = \"GJ_button_03.png\";\n        v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 952LL))(v5);\n        ButtonSprite::updateBGImage(v8, v7);\n        v3 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::updateViewButtons from 0x1401f80f0 to 0x1401f81a9 (185 bytes)\n; \n; 5 xrefs:\n; > EditorUI::setupViewMenu @ 0x1401f7f34\n; > EditorUI::toggleViewOption @ 0x1401f8878\n; > <???> @ 0x1408a3718\n; > <???> @ 0x1408a3728\n; > <???> @ 0x14091aae0\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 11:28:10 +0000\n; \nmov     [rsp+arg_18], rbp                                              ; +0x0, 0x1401f80f0\npush    rsi                                                            ; +0x5, 0x1401f80f5\nsub     rsp, 20h                                                       ; +0x6, 0x1401f80f6\nmov     rsi, [rcx+590h]                                                ; +0xa, 0x1401f80fa\nmov     rbp, rcx                                                       ; +0x11, 0x1401f8101\ntest    rsi, rsi                                                       ; +0x14, 0x1401f8104\njz      loc_1401F819E                                                  ; +0x17, 0x1401f8107\nmov     rsi, [rsi+38h]                                                 ; +0x1d, 0x1401f810d\ntest    rsi, rsi                                                       ; +0x21, 0x1401f8111\njz      loc_1401F819E                                                  ; +0x24, 0x1401f8114\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2a, 0x1401f811a\nmov     rbx, [rsi+120h]                                                ; +0x2f, 0x1401f811f\nmov     [rsp+28h+arg_8], rdi                                           ; +0x36, 0x1401f8126\nmov     [rsp+28h+arg_10], r14                                          ; +0x3b, 0x1401f812b\nlea     r14, aGjButton03Png; \"GJ_button_03.png\"                        ; +0x40, 0x1401f8130\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x1401f8137\nmov     rsi, [rsi+108h]                                                ; +0x50, 0x1401f8140\nmov     rcx, rsi                                                       ; +0x57, 0x1401f8147\nmov     rax, [rsi]                                                     ; +0x5a, 0x1401f814a\ncall    qword ptr [rax+38h]                                            ; +0x5d, 0x1401f814d\nmov     edx, eax                                                       ; +0x60, 0x1401f8150\nmov     rcx, rbp                                                       ; +0x62, 0x1401f8152\ncall    EditorUI__getViewButtonState                                   ; +0x65, 0x1401f8155\ntest    al, al                                                         ; +0x6a, 0x1401f815a\nlea     rdi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x6c, 0x1401f815c\nmov     rax, [rsi]                                                     ; +0x73, 0x1401f8163\nmov     rcx, rsi                                                       ; +0x76, 0x1401f8166\ncmovnz  rdi, r14                                                       ; +0x79, 0x1401f8169\ncall    qword ptr [rax+3B8h]                                           ; +0x7d, 0x1401f816d\nmov     rcx, rax                                                       ; +0x83, 0x1401f8173\nmov     rdx, rdi                                                       ; +0x86, 0x1401f8176\ncall    ButtonSprite__updateBGImage                                    ; +0x89, 0x1401f8179\nmov     rsi, rbx                                                       ; +0x8e, 0x1401f817e\ntest    rbx, rbx                                                       ; +0x91, 0x1401f8181\njz      short loc_1401F818F                                            ; +0x94, 0x1401f8184\nmov     rbx, [rbx+120h]                                                ; +0x96, 0x1401f8186\njmp     short loc_1401F8140                                            ; +0x9d, 0x1401f818d\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x9f, 0x1401f818f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa4, 0x1401f8194\nmov     r14, [rsp+28h+arg_10]                                          ; +0xa9, 0x1401f8199\nmov     rbp, [rsp+28h+arg_18]                                          ; +0xae, 0x1401f819e\nadd     rsp, 20h                                                       ; +0xb3, 0x1401f81a3\npop     rsi                                                            ; +0xb7, 0x1401f81a7\nretn                                                                   ; +0xb8, 0x1401f81a8", "xrefs": ["EditorUI::setupViewMenu @ 0x1401f7f34", "EditorUI::toggleViewOption @ 0x1401f8878", "<???> @ 0x1408a3718", "<???> @ 0x1408a3728", "<???> @ 0x14091aae0"], "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"}