//
// PlayLayer::toggleHideAttempts from 0x100087670 to 0x100087703 (147 bytes)
//
// 1 xrefs:
// > ??> @ 0x100abb070
//
// 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 12:20:05 +0000
//
unsigned __int8 __fastcall PlayLayer::toggleHideAttempts(__int64 a1, const char *a2, __int64 a3)
{
unsigned __int8 result; // al
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rax
if ( *(_BYTE *)(a1 + 14023) != (_BYTE)a2 )
{
*(_BYTE *)(a1 + 14023) = (_BYTE)a2;
if ( (_BYTE)a2 )
{
result = 0;
}
else
{
v4 = a1;
if ( *(_BYTE *)(a1 + 12544) == 1
&& (GameManager::sharedState(a1, a2, a3),
a2 = "0134",
a1 = v5,
(unsigned __int8)GameManager::getGameVariable(v5, "0134"))
|| (GameManager::sharedState(a1, a2, a3), (unsigned __int8)GameManager::getGameVariable(v6, "0135")) )
{
result = 0;
a1 = v4;
}
else
{
result = 1;
a1 = v4;
if ( *(int *)(v4 + 12212) <= 0 )
return result;
}
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14328) + 344LL))(
*(_QWORD *)(a1 + 14328),
result);
}
return result;
}