//
// UILayer::toggleCheckpointsMenu from 0x1404cded0 to 0x1404cdf49 (121 bytes)
//
// 2 xrefs:
// > PlayLayer::togglePracticeMode @ 0x1403b9e9e
// > ??> @ 0x1406dd4a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void UILayer::toggleCheckpointsMenu(UILayer *a1, bool a2)
{
BOOL v2; // ebx
GameManager *v4; // rcx
bool GameVariable; // al
_BOOL8 v6; // rdx
void *v7; // [rsp+30h] [rbp+8h]
v2 = a2;
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (GameManager *)qword_1406C2ED8;
}
GameVariable = GameManager::getGameVariable(v4, "0071");
v6 = 0;
if ( !GameVariable )
v6 = v2;
a1->m_checkpointMenu->setVisible(a1->m_checkpointMenu, v6);
}