//
// PlayLayer::toggleHideAttempts from 0x1403b37c0 to 0x1403b38ac (236 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405c9c40
// > ??> @ 0x1406d6ea8
//
// 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=2
void PlayLayer::toggleHideAttempts(PlayLayer *a1, bool a2)
{
GameManager *v3; // rcx
GameManager *v4; // rcx
_BOOL8 v5; // rdx
void *v6; // [rsp+30h] [rbp+8h]
void *v7; // [rsp+30h] [rbp+8h]
if ( a1->m_unk36cf != a2 )
{
a1->m_unk36cf = a2;
if ( a2 )
goto LABEL_12;
if ( a1->m_isPracticeMode )
{
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
if ( GameManager::getGameVariable(v3, "0134") )
goto LABEL_12;
}
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;
}
if ( GameManager::getGameVariable(v4, "0135") )
{
LABEL_12:
v5 = 0;
}
else
{
if ( a1->m_attempts <= 0 )
return;
LOBYTE(v5) = 1;
}
a1->m_attemptLabel->setVisible(a1->m_attemptLabel, v5);
}
}