//
// UILayer::onCheck from 0x3fc494 to 0x3fc4d2 (62 bytes)
//
// 1 xrefs:
// > UILayer::handleAction @ 0x3fe04e
//
// 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:21 +0000
//
GameManager *__fastcall UILayer::onCheck(UILayer *this, cocos2d::CCObject *a2)
{
GameManager *result; // r0
int v3; // r0
GameManager *v4; // r0
int v5; // r0
result = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)result + 101) )
{
result = (GameManager *)GameManager::sharedState(result);
if ( *(_BYTE *)(*((_DWORD *)result + 101) + 10784) )
{
v3 = GameManager::sharedState(result);
v4 = (GameManager *)PlayLayer::queueCheckpoint(*(PlayLayer **)(v3 + 404));
v5 = GameManager::sharedState(v4);
return (GameManager *)PlayerObject::removePendingCheckpoint(*(PlayerObject **)(*(_DWORD *)(v5 + 404) + 2076));
}
}
return result;
}