//
// UILayer::onCheck from 0x1004c2800 to 0x1004c2854 (84 bytes)
//
// 2 xrefs:
// > UILayer::handleAction @ 0x1004c43c7
// > UILayer::init @ 0x1004c2322
//
// 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:31:06 +0000
//
void UILayer::onCheck()
{
__int64 v0; // rax
__int64 v1; // rax
if ( *(_QWORD *)(GameManager::sharedState() + 544) )
{
if ( *(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12544LL) == 1 )
{
v0 = GameManager::sharedState();
PlayLayer::queueCheckpoint(*(_QWORD *)(v0 + 544));
v1 = GameManager::sharedState();
PlayerObject::removePendingCheckpoint(*(_QWORD *)(*(_QWORD *)(v1 + 544) + 3256LL));
}
}
}