//
// EditorUI::resetUI from 0x1401afc20 to 0x1401afd39 (281 bytes)
//
// 3 xrefs:
// > EditorUI::init @ 0x1401ab154
// > EditorUI::toggleMode @ 0x1401afd77
// > ??> @ 0x140919e50
//
// 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:27:55 +0000
//
__int64 __fastcall EditorUI::resetUI(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdx
__int64 v7; // rdx
__int64 result; // rax
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 968) + 952LL))(*(_QWORD *)(a1 + 968));
ButtonSprite::updateBGImage(v2, "GJ_button_04.png");
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 976) + 952LL))(*(_QWORD *)(a1 + 976));
ButtonSprite::updateBGImage(v3, "GJ_button_04.png");
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 984) + 952LL))(*(_QWORD *)(a1 + 984));
ButtonSprite::updateBGImage(v4, "GJ_button_04.png");
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 992) + 952LL))(*(_QWORD *)(a1 + 992));
ButtonSprite::updateBGImage(v5, "GJ_button_04.png");
if ( *(_BYTE *)(a1 + 1661) || *(_DWORD *)(a1 + 1508) != 1 )
v6 = 0;
else
LOBYTE(v6) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 952) + 336LL))(*(_QWORD *)(a1 + 952), v6);
EditorUI::updateDeleteButtons(a1);
EditorUI::updateCreateMenu(a1, 0);
EditorUI::updateEditMenu(a1);
if ( *(_BYTE *)(a1 + 1661) || *(_DWORD *)(a1 + 1508) != 4 )
v7 = 0;
else
LOBYTE(v7) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1432) + 336LL))(*(_QWORD *)(a1 + 1432), v7);
result = EditorUI::updateGridNodeSize_1(a1);
if ( *(_BYTE *)(a1 + 1661) )
return EditorUI::showUI(a1, 0);
return result;
}