//
// UILayer::onDeleteCheck from 0x100050bd4 to 0x100050c1c (72 bytes)
//
// 2 xrefs:
// > UILayer::handleAction @ 0x1000520b0
// > UILayer::init @ 0x100050884
//
// 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::onDeleteCheck(__int64 a1)
{
__int64 result; // x0
__int64 v2; // x0
result = GameManager::sharedState(a1);
if ( *(_QWORD *)(result + 544) )
{
result = GameManager::sharedState(result);
if ( *(_BYTE *)(*(_QWORD *)(result + 544) + 12544LL) == 1 )
{
v2 = GameManager::sharedState(result);
return PlayLayer::removeCheckpoint(*(_QWORD *)(v2 + 544), 0);
}
}
return result;
}