//
// EditorUI::toggleObjectInfoLabel from 0x1401ae9b0 to 0x1401aea38 (136 bytes)
//
// 4 xrefs:
// > EditorUI::init @ 0x1401ac346
// > EditorUI::showUI @ 0x1401b40e0
// > EditorUI::toggleViewOption @ 0x1401f865c
// > ??> @ 0x140919e38
//
// 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:54 +0000
//
__int64 __fastcall EditorUI::toggleObjectInfoLabel(__int64 a1)
{
__int64 v2; // rcx
__int64 GameVariable; // rbx
__int64 result; // rax
void *v5; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameVariable = (unsigned __int8)GameManager::getGameVariable(v2, "0041");
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 800) + 336LL))(
*(_QWORD *)(a1 + 800),
GameVariable);
if ( (_BYTE)GameVariable )
return EditorUI::updateObjectInfoLabel(a1);
return result;
}