//
// LevelPage::onDeathTracker from 0x8c64d4 to 0x8c6540 (108 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::onDeathTracker @ 0x8c655c
// > ??> @ 0xc2ef0
//
// 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:56:34 +0000
//
__int64 __fastcall LevelPage::onDeathTracker(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
__int64 v3; // x19
GJGameLevel *v4; // x1
__int64 v5; // x0
v2 = *(_QWORD *)(this + 424);
if ( v2 && (unsigned int)(*(_DWORD *)(v2 + 328) - *(_DWORD *)(v2 + 332) + 2) > 1 )
{
v3 = this;
this = GJGameLevel::isPlatformer(*(GJGameLevel **)(this + 424));
if ( !(_BYTE)this )
{
v5 = DeathTrackerPopup::create(*(DeathTrackerPopup **)(v3 + 424), v4);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
return this;
}