//
// EndLevelLayer::onDeathTracker from 0x8f98b8 to 0x8f98ec (52 bytes)
//
// 3 xrefs:
// > ??> @ 0x721c0
// > EndLevelLayer::customSetup @ 0x8fc830
// > ??> @ 0x1542dd8
//
// 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:57:02 +0000
//
__int64 __fastcall EndLevelLayer::onDeathTracker(__int64 this, cocos2d::CCObject *a2)
{
GJGameLevel *v2; // x1
__int64 v3; // x0
v2 = (GJGameLevel *)*(unsigned __int8 *)(this + 619);
if ( !*(_BYTE *)(this + 619) )
{
this = *(_QWORD *)(this + 608);
if ( this )
{
v3 = DeathTrackerPopup::create(*(DeathTrackerPopup **)(this + 1936), v2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
return this;
}