//
// LevelPage::onDeathTracker from 0x5135e0 to 0x513618 (56 bytes)
//
// 1 xrefs:
// > LevelSelectLayer::onDeathTracker @ 0x51362c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:34 +0000
//
int __fastcall LevelPage::onDeathTracker(LevelPage *this, cocos2d::CCObject *a2)
{
int result; // r0
GJGameLevel *v4; // r1
int v5; // r0
result = *((_DWORD *)this + 81);
if ( result && (unsigned int)(*(_DWORD *)(result + 268) - *(_DWORD *)(result + 272) + 2) > 1 )
{
result = GJGameLevel::isPlatformer((GJGameLevel *)result);
if ( !result )
{
v5 = DeathTrackerPopup::create(*((DeathTrackerPopup **)this + 81), v4);
return (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 656))(v5);
}
}
return result;
}