//
// EditLevelLayer::onDeathTracker from 0x7ed3ec to 0x7ed448 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0xdfd38
// > EditLevelLayer::init @ 0x7f12f0
// > ??> @ 0x1546b88
//
// 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:54:33 +0000
//
__int64 __fastcall EditLevelLayer::onDeathTracker(GJGameLevel **this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
DeathTrackerPopup *SavedLevel; // x0
GJGameLevel *v5; // x1
__int64 v6; // x0
v3 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
SavedLevel = (DeathTrackerPopup *)GameLevelManager::getSavedLevel(v3, *(this + 59));
if ( SavedLevel )
v6 = DeathTrackerPopup::create(SavedLevel, v5);
else
v6 = DeathTrackerPopup::create(*(this + 59), v5);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}