//
// UILayer::onDeleteCheck from 0x1004c2860 to 0x1004c289e (62 bytes)
//
// 2 xrefs:
// > UILayer::handleAction @ 0x1004c43fe
// > UILayer::init @ 0x1004c237c
//
// 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
//
__int64 UILayer::onDeleteCheck()
{
__int64 result; // rax
__int64 v1; // rax
result = GameManager::sharedState();
if ( *(_QWORD *)(result + 544) )
{
result = *(_QWORD *)(GameManager::sharedState() + 544);
if ( *(_BYTE *)(result + 12544) == 1 )
{
v1 = GameManager::sharedState();
return PlayLayer::removeCheckpoint(*(_QWORD *)(v1 + 544), 0);
}
}
return result;
}