//
// LevelInfoLayer::onDeathTracker from 0x7e5268 to 0x7e52c0 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x4f870
// > LevelInfoLayer::setupProgressBars @ 0x7ea554
// > ??> @ 0x1541ab8
//
// 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:28 +0000
//
GJGameLevel **__fastcall LevelInfoLayer::onDeathTracker(GJGameLevel **this, cocos2d::CCObject *a2)
{
GJGameLevel **v2; // x19
GameLevelManager *v3; // x0
DeathTrackerPopup *SavedLevel; // x0
GJGameLevel *v5; // x1
__int64 v6; // x0
if ( !*((_BYTE *)this + 488) )
{
v2 = this;
v3 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
SavedLevel = (DeathTrackerPopup *)GameLevelManager::getSavedLevel(v3, v2[63]);
if ( !SavedLevel )
SavedLevel = v2[63];
v6 = DeathTrackerPopup::create(SavedLevel, v5);
return (GJGameLevel **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return this;
}