//
// PlayLayer::toggleHideAttempts from 0x3ff704 to 0x3ff76e (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:23 +0000
//
GameManager *__fastcall PlayLayer::toggleHideAttempts(GameManager *this, int a2)
{
GameManager *v2; // r4
GameManager *v3; // r0
GameManager *v4; // r0
int (*v5)(void); // r3
v2 = this;
if ( *((unsigned __int8 *)this + 11707) != a2 )
{
*((_BYTE *)this + 11707) = a2;
if ( a2
|| *((_BYTE *)this + 10784)
&& (v4 = (GameManager *)GameManager::sharedState(this),
(this = (GameManager *)GameManager::getGameVariable(v4, "0134")) != nullptr)
|| (v3 = (GameManager *)GameManager::sharedState(this),
(this = (GameManager *)GameManager::getGameVariable(v3, "0135")) != nullptr) )
{
v5 = *(int (**)(void))(**((_DWORD **)v2 + 2975) + 172);
return (GameManager *)v5();
}
if ( *((int *)v2 + 2647) > 0 )
{
v5 = *(int (**)(void))(**((_DWORD **)v2 + 2975) + 172);
return (GameManager *)v5();
}
}
return this;
}