//
// EditorUI::updateViewButtons from 0x1401f80f0 to 0x1401f81a9 (185 bytes)
//
// 5 xrefs:
// > EditorUI::setupViewMenu @ 0x1401f7f34
// > EditorUI::toggleViewOption @ 0x1401f8878
// > ??> @ 0x1408a3718
// > ??> @ 0x1408a3728
// > ??> @ 0x14091aae0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:10 +0000
//
void __fastcall EditorUI::updateViewButtons(__int64 a1)
{
__int64 v1; // rsi
__int64 v3; // rsi
__int64 i; // rbx
__int64 v5; // rsi
unsigned int v6; // eax
const char *v7; // rdi
__int64 v8; // rax
v1 = *(_QWORD *)(a1 + 1424);
if ( v1 )
{
v3 = *(_QWORD *)(v1 + 56);
if ( v3 )
{
for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(_QWORD *)(v3 + 264);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 56LL))(v5);
v7 = "GJ_button_04.png";
if ( (unsigned __int8)EditorUI::getViewButtonState(a1, v6) )
v7 = "GJ_button_03.png";
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 952LL))(v5);
ButtonSprite::updateBGImage(v8, v7);
v3 = i;
if ( !i )
break;
}
}
}
}