//
// LevelSelectLayer::onDeathTracker from 0x1004202c0 to 0x100420326 (102 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::init @ 0x10041ff3e
//
// 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:30:15 +0000
//
__int64 __fastcall LevelSelectLayer::onDeathTracker(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v3; // rdi
__int64 v4; // rbx
__int64 v5; // rax
result = BoomScrollLayer::getPage(*(_QWORD *)(a1 + 448), *(_DWORD *)(*(_QWORD *)(a1 + 448) + 588LL));
v3 = *(_QWORD *)(result + 424);
if ( v3 && (unsigned int)(*(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332)) <= 0xFFFFFFFD )
{
v4 = result;
result = GJGameLevel::isPlatformer(v3, a2);
if ( !(_BYTE)result )
{
v5 = DeathTrackerPopup::create(*(_QWORD *)(v4 + 424));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
return result;
}