//
// UILayer::onCheck from 0x100050b80 to 0x100050bd4 (84 bytes)
//
// 2 xrefs:
// > UILayer::handleAction @ 0x100052088
// > UILayer::init @ 0x100050828
//
// 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:57:43 +0000
//
__int64 __fastcall UILayer::onCheck(__int64 a1)
{
__int64 result; // x0
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
result = GameManager::sharedState(a1);
if ( *(_QWORD *)(result + 544) )
{
result = GameManager::sharedState(result);
if ( *(_BYTE *)(*(_QWORD *)(result + 544) + 12544LL) == 1 )
{
v2 = GameManager::sharedState(result);
v3 = sub_10014A21C(*(_QWORD *)(v2 + 544));
v4 = GameManager::sharedState(v3);
return sub_1002C3C70(*(_QWORD *)(*(_QWORD *)(v4 + 544) + 3256LL));
}
}
return result;
}