//
// UILayer::onDeleteCheck from 0x1406730d0 to 0x140673137 (103 bytes)
//
// 2 xrefs:
// > UILayer::init @ 0x14067049d
// > ??> @ 0x14093236c
//
// 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 11:35:55 +0000
//
void UILayer::onDeleteCheck()
{
__int64 v0; // rcx
__int64 v1; // rcx
void *v2; // [rsp+40h] [rbp+18h]
v0 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v2 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v0 = qword_14090BFD0;
}
v1 = *(_QWORD *)(v0 + 560);
if ( v1 )
{
if ( *(_BYTE *)(v1 + 13024) )
PlayLayer::removeCheckpoint(v1, 0);
}
}