//
// InfoLayer::canToggleModRoom from 0x53cecc to 0x53cf06 (58 bytes)
//
// 2 xrefs:
// > InfoLayer::init @ 0x53fc20
// > InfoLayer::toggleSmallCommentMode @ 0x5406ca
//
// 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:52:15 +0000
//
int __fastcall InfoLayer::canToggleModRoom(InfoLayer *this)
{
GameManager *v2; // r0
int result; // r0
int v4; // r0
v2 = (GameManager *)GameManager::sharedState(this);
result = GameManager::getGameVariable(v2, "0235");
if ( result )
return 0;
if ( *((_DWORD *)this + 134) )
{
if ( !*((_DWORD *)this + 159) )
{
v4 = GameManager::sharedState(nullptr);
return *(_DWORD *)(v4 + 820) - *(_DWORD *)(v4 + 824) > 0;
}
}
return result;
}