//
// EditorUI::resetUI from 0x100471738 to 0x100471828 (240 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x10046f868
// > EditorUI::toggleMode @ 0x100470c1c
//
// 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 11:05:38 +0000
//
double __fastcall EditorUI::resetUI(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
_BOOL8 v6; // x1
double result; // d0
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 920) + 1072LL))(*(_QWORD *)(a1 + 920));
ButtonSprite::updateBGImage(v2, (__int64)"GJ_button_04.png");
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 928) + 1072LL))(*(_QWORD *)(a1 + 928));
ButtonSprite::updateBGImage(v3, (__int64)"GJ_button_04.png");
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 936) + 1072LL))(*(_QWORD *)(a1 + 936));
ButtonSprite::updateBGImage(v4, (__int64)"GJ_button_04.png");
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 944) + 1072LL))(*(_QWORD *)(a1 + 944));
ButtonSprite::updateBGImage(v5, (__int64)"GJ_button_04.png");
EditorUI::updateDeleteMenu(a1);
EditorUI::updateCreateMenu(a1, 0);
EditorUI::updateEditMenu(a1);
v6 = 0;
if ( (*(_BYTE *)(a1 + 1589) & 1) == 0 )
v6 = *(_DWORD *)(a1 + 1436) == 4;
(*(void (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)(a1 + 1384) + 344LL))(*(_QWORD *)(a1 + 1384), v6);
EditorUI::updateGridNodeSize(a1);
if ( *(_BYTE *)(a1 + 1589) == 1 )
return EditorUI::showUI(a1, 0);
return result;
}