//
// EditorUI::updateViewButtons from 0x6f6bc8 to 0x6f6c2e (102 bytes)
//
// 2 xrefs:
// > EditorUI::toggleViewOption @ 0x70c492
// > EditorUI::setupViewMenu @ 0x70d1b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:39 +0000
//
char *__fastcall EditorUI::updateViewButtons(char *this)
{
EditorUI *v1; // r6
int v2; // r3
int v3; // r3
int v4; // r4
int v5; // r5
char *v6; // r9
int v7; // r0
const char *v8; // r1
int v9; // r2
v1 = (EditorUI *)this;
v2 = *((_DWORD *)this + 227);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 52);
if ( v3 )
v4 = *(_DWORD *)(v3 + 272);
else
v4 = 0;
while ( v3 )
{
v5 = *(_DWORD *)(v3 + 260);
v6 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5);
if ( EditorUI::getViewButtonState(v1, v7) )
v8 = "GJ_button_03.png";
else
v8 = "GJ_button_04.png";
this = ButtonSprite::updateBGImage(v6, v8);
if ( v4 )
v9 = *(_DWORD *)(v4 + 272);
else
v9 = 0;
v3 = v4;
v4 = v9;
}
}
return this;
}