//
// PlayLayer::toggleHideAttempts from 0x10014791c to 0x1001479b4 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008df988
//
// This function is hookable on this platform (idp: arm, 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 10:59:35 +0000
//
void __fastcall PlayLayer::toggleHideAttempts(__int64 a1, int a2)
{
__int64 v3; // x0
__int64 v4; // x0
char v5; // w0
__int64 v6; // x1
if ( *(unsigned __int8 *)(a1 + 14023) != a2 )
{
*(_BYTE *)(a1 + 14023) = a2;
if ( (a2 & 1) != 0
|| *(_BYTE *)(a1 + 12544) == 1
&& (v3 = GameManager::sharedState(a1), GameManager::getGameVariable(v3, "0134"), (a1 & 1) != 0)
|| (v4 = GameManager::sharedState(a1), GameManager::getGameVariable(v4, "0135"), (v5 & 1) != 0) )
{
v6 = 0;
}
else
{
if ( *(int *)(a1 + 12212) < 1 )
return;
v6 = 1;
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 14328) + 344LL))(*(_QWORD *)(a1 + 14328), v6);
}
}