{"type": "func", "start": 7302088, "end": 7302190, "name": "EditorUI::updateViewButtons", "pseudocode": "// \n// EditorUI::updateViewButtons from 0x6f6bc8 to 0x6f6c2e (102 bytes)\n// \n// 2 xrefs:\n// > EditorUI::toggleViewOption @ 0x70c492\n// > EditorUI::setupViewMenu @ 0x70d1b8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:39 +0000\n// \n\nchar *__fastcall EditorUI::updateViewButtons(char *this)\n{\n  EditorUI *v1; // r6\n  int v2; // r3\n  int v3; // r3\n  int v4; // r4\n  int v5; // r5\n  char *v6; // r9\n  int v7; // r0\n  const char *v8; // r1\n  int v9; // r2\n\n  v1 = (EditorUI *)this;\n  v2 = *((_DWORD *)this + 227);\n  if ( v2 )\n  {\n    v3 = *(_DWORD *)(v2 + 52);\n    if ( v3 )\n      v4 = *(_DWORD *)(v3 + 272);\n    else\n      v4 = 0;\n    while ( v3 )\n    {\n      v5 = *(_DWORD *)(v3 + 260);\n      v6 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);\n      v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5);\n      if ( EditorUI::getViewButtonState(v1, v7) )\n        v8 = \"GJ_button_03.png\";\n      else\n        v8 = \"GJ_button_04.png\";\n      this = ButtonSprite::updateBGImage(v6, v8);\n      if ( v4 )\n        v9 = *(_DWORD *)(v4 + 272);\n      else\n        v9 = 0;\n      v3 = v4;\n      v4 = v9;\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::updateViewButtons from 0x6f6bc8 to 0x6f6c2e (102 bytes)\n; \n; 2 xrefs:\n; > EditorUI::toggleViewOption @ 0x70c492\n; > EditorUI::setupViewMenu @ 0x70d1b8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:39 +0000\n; \nPUSH.W          {R3-R9,LR}                                             ; +0x0, 0x6f6bc8\nMOV             R6, R0                                                 ; +0x4, 0x6f6bcc\nLDR.W           R3, [R0,#0x38C]                                        ; +0x6, 0x6f6bce\nCBZ             R3, locret_6F6C2A                                      ; +0xa, 0x6f6bd2\nLDR             R3, [R3,#0x34]                                         ; +0xc, 0x6f6bd4\nCBZ             R3, loc_6F6BDE                                         ; +0xe, 0x6f6bd6\nLDR.W           R4, [R3,#0x110]                                        ; +0x10, 0x6f6bd8\nB               loc_6F6BE0                                             ; +0x14, 0x6f6bdc\nMOV             R4, R3                                                 ; +0x16, 0x6f6bde\nLDR             R7, =(aGjButton03Png - 0x6F6BEA); \"GJ_button_03.png\"   ; +0x18, 0x6f6be0\nLDR.W           R8, =(aGjButton04Png - 0x6F6BEC); \"GJ_button_04.png\"   ; +0x1a, 0x6f6be2\nADD             R7, PC; \"GJ_button_03.png\"                             ; +0x1e, 0x6f6be6\nADD             R8, PC; \"GJ_button_04.png\"                             ; +0x20, 0x6f6be8\nCBZ             R3, locret_6F6C2A                                      ; +0x22, 0x6f6bea\nLDR.W           R5, [R3,#0x104]                                        ; +0x24, 0x6f6bec\nLDR             R3, [R5]                                               ; +0x28, 0x6f6bf0\nMOV             R0, R5                                                 ; +0x2a, 0x6f6bf2\nLDR.W           R3, [R3,#0x218]                                        ; +0x2c, 0x6f6bf4\nBLX             R3                                                     ; +0x30, 0x6f6bf8\nLDR             R3, [R5]                                               ; +0x32, 0x6f6bfa\nLDR             R3, [R3,#0x20]                                         ; +0x34, 0x6f6bfc\nMOV             R9, R0                                                 ; +0x36, 0x6f6bfe\nMOV             R0, R5                                                 ; +0x38, 0x6f6c00\nBLX             R3                                                     ; +0x3a, 0x6f6c02\nMOV             R1, R0; int                                            ; +0x3c, 0x6f6c04\nMOV             R0, R6; this                                           ; +0x3e, 0x6f6c06\nBL              _ZN8EditorUI18getViewButtonStateEi; EditorUI::getViewButtonState(int) ; +0x40, 0x6f6c08\nCMP             R0, #0                                                 ; +0x44, 0x6f6c0c\nMOV             R0, R9; this                                           ; +0x46, 0x6f6c0e\nITE NE                                                                 ; +0x48, 0x6f6c10\nMOVNE           R1, R7                                                 ; +0x4a, 0x6f6c12\nMOVEQ           R1, R8; char *                                         ; +0x4c, 0x6f6c14\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x4e, 0x6f6c16\nCBZ             R4, loc_6F6C22                                         ; +0x52, 0x6f6c1a\nLDR.W           R2, [R4,#0x110]                                        ; +0x54, 0x6f6c1c\nB               loc_6F6C24                                             ; +0x58, 0x6f6c20\nMOV             R2, R4                                                 ; +0x5a, 0x6f6c22\nMOV             R3, R4                                                 ; +0x5c, 0x6f6c24\nMOV             R4, R2                                                 ; +0x5e, 0x6f6c26\nB               loc_6F6BEA                                             ; +0x60, 0x6f6c28\nPOP.W           {R3-R9,PC}                                             ; +0x62, 0x6f6c2a", "xrefs": ["EditorUI::toggleViewOption @ 0x70c492", "EditorUI::setupViewMenu @ 0x70d1b8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}