//
// DeathMarkerSettingsPopup::onToggleLabels from 0x14011e130 to 0x14011e267 (311 bytes)
//
// 2 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x14011cf58
// > ??> @ 0x14091649c
//
// 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:26:55 +0000
//
// Hidden C++ exception states: #wind=6
__int64 __fastcall DeathMarkerSettingsPopup::onToggleLabels(__int64 a1)
{
unsigned __int8 v1; // bl
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rcx
void *v8; // [rsp+40h] [rbp+18h]
void *v9; // [rsp+40h] [rbp+18h]
void *v10; // [rsp+40h] [rbp+18h]
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
v1 = GameManager::toggleGameVariable(a1, "0208");
result = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
v3 = *(_QWORD *)(result + 560);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 2176);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 440);
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, v1 ^ 1u);
result = qword_14090BFD0;
}
}
if ( !result )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
result = *(_QWORD *)(result + 560);
v6 = *(_QWORD *)(result + 2184);
if ( v6 )
{
v7 = *(_QWORD *)(v6 + 440);
if ( v7 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, v1 ^ 1u);
}
}
return result;
}