//
// EditorUI::updateViewButtons from 0xbe0414 to 0xbe04bc (168 bytes)
//
// 3 xrefs:
// > EditorUI::toggleViewOption @ 0xbfe880
// > EditorUI::setupViewMenu @ 0xbffb74
// > ??> @ 0x41740
//
// This function is hookable on this platform (idp: arm, 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 13:03:45 +0000
//
EditorUI *__fastcall EditorUI::updateViewButtons(EditorUI *this)
{
__int64 v1; // x1
__int64 v2; // x19
EditorUI *v3; // x22
__int64 i; // x20
__int64 *v5; // x19
ButtonSprite *v6; // x21
__int64 v7; // x1
__int64 *v8; // x0
int v9; // w0
const char *v10; // x1
v1 = *((_QWORD *)this + 172);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 56);
if ( v2 )
{
v3 = this;
for ( i = *(_QWORD *)(v2 + 288); ; i = *(_QWORD *)(i + 288) )
{
v5 = *(__int64 **)(v2 + 264);
v6 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64 *))(*v5 + 1072))(v5);
v7 = *v5;
v8 = v5;
v2 = i;
v9 = (*(__int64 (__fastcall **)(__int64 *))(v7 + 64))(v8);
v10 = (unsigned __int8)EditorUI::getViewButtonState(v3, v9) ? "GJ_button_03.png" : "GJ_button_04.png";
this = (EditorUI *)ButtonSprite::updateBGImage(v6, v10);
if ( !i )
break;
}
}
}
return this;
}