//
// PlayLayer::toggleHideAttempts from 0x140512160 to 0x140512252 (242 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d5e98
// > ??> @ 0x14092abd8
//
// 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:33:31 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall PlayLayer::toggleHideAttempts(__int64 a1, char a2)
{
__int64 v3; // rcx
__int64 v4; // rcx
__int64 v5; // rdx
void *v6; // [rsp+30h] [rbp+8h]
void *v7; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 14679) != a2 )
{
*(_BYTE *)(a1 + 14679) = a2;
if ( a2 )
goto LABEL_12;
if ( *(_BYTE *)(a1 + 13024) )
{
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v3, "0134") )
goto LABEL_12;
}
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v4, "0135") )
{
LABEL_12:
v5 = 0;
}
else
{
if ( *(int *)(a1 + 12644) <= 0 )
return;
LOBYTE(v5) = 1;
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 14984) + 336LL))(*(_QWORD *)(a1 + 14984), v5);
}
}