//
// DeathTrackerPopup::show from 0xca9800 to 0xca9888 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0x81a90
// > ??> @ 0x14f8f90
//
// 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 13:06:04 +0000
//
__int64 __fastcall DeathTrackerPopup::show(DeathTrackerPopup *this)
{
__int64 v1; // x0
DeathTrackerPopup *v2; // x1
cocos2d::CCScene *v3; // x19
cocos2d::CCScene *v4; // x0
int v5; // w2
int HighestChildZ; // w0
v1 = cocos2d::CCDirector::sharedDirector(this);
v2 = this;
v3 = *(cocos2d::CCScene **)(v1 + 272);
v4 = *((cocos2d::CCScene **)this + 71);
if ( v4 )
{
v5 = *((_DWORD *)this + 148);
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
v5 = 110;
v2 = this;
if ( HighestChildZ > 109 )
{
v5 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
v2 = this;
}
*((_DWORD *)v2 + 148) = v5;
v4 = v3;
}
if ( !v5 )
*((_DWORD *)v2 + 148) = 110;
return (*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v4 + 464LL))(v4);
}