//
// UILayer::onCheck from 0x6ee5a4 to 0x6ee5f4 (80 bytes)
//
// 4 xrefs:
// > UILayer::handleAction @ 0x6f13fc
// > ??> @ 0xc7e58
// > UILayer::init @ 0x6f06e0
// > ??> @ 0x1545d80
//
// 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 12:51:47 +0000
//
__int64 __fastcall UILayer::onCheck(UILayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v3; // x0
GameManager *v4; // x0
__int64 v5; // x0
result = *(_QWORD *)(GameManager::sharedState(this) + 544);
if ( result )
{
result = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState((GameManager *)result) + 544) + 12544LL);
if ( (_DWORD)result )
{
v3 = GameManager::sharedState((GameManager *)result);
v4 = (GameManager *)PlayLayer::queueCheckpoint(*(PlayLayer **)(v3 + 544));
v5 = GameManager::sharedState(v4);
return PlayerObject::removePendingCheckpoint(*(PlayerObject **)(*(_QWORD *)(v5 + 544) + 3256LL));
}
}
return result;
}