//
// EditorUI::onShowUIBtn from 0x10000b5b0 to 0x10000b6aa (250 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100007b1e
//
// 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 12:18:49 +0000
//
void __fastcall EditorUI::onShowUIBtn(__int64 a1)
{
bool v2; // r14
__int64 v3; // rdi
__int64 *v4; // rdi
__int64 v5; // rax
_BOOL8 v6; // rsi
bool v7; // al
__int64 v8; // rax
if ( *(_BYTE *)(a1 + 1588) )
return;
*(_WORD *)(a1 + 1589) = 0;
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 904) + 344LL))(
*(_QWORD *)(a1 + 904),
*(_DWORD *)(a1 + 1436) == 1);
EditorUI::updateDeleteButtons(a1);
v2 = 0;
EditorUI::updateCreateMenu(a1, 0);
if ( !*(_BYTE *)(a1 + 1589) )
v2 = *(_DWORD *)(a1 + 1436) == 3;
v3 = *(_QWORD *)(a1 + 1592);
if ( v3 )
{
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 344LL))(v3, v2);
v4 = *(__int64 **)(a1 + 832);
if ( v4 )
{
v5 = *v4;
v6 = 0;
LABEL_9:
(*(void (__fastcall **)(__int64 *, _BOOL8))(v5 + 344))(v4, v6);
}
}
else
{
v4 = *(__int64 **)(a1 + 832);
if ( v4 )
{
v5 = *v4;
v6 = v2;
goto LABEL_9;
}
}
if ( *(_BYTE *)(a1 + 1589) )
v7 = 0;
else
v7 = *(_DWORD *)(a1 + 1436) == 4;
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1384) + 344LL))(*(_QWORD *)(a1 + 1384), v7);
EditorUI::showUI(a1, 1);
v8 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction(v8, 194, 189);
}