//
// DeathTrackerPopup::onClose from 0xcaee44 to 0xcaefe4 (416 bytes)
//
// 5 xrefs:
// > DeathTrackerOptionsPopup::FLAlert_Clicked @ 0xca9494
// > DeathTrackerPopup::keyBackClicked @ 0xcaefe8
// > ??> @ 0xf85c0
// > DeathTrackerPopup::init @ 0xcb42a4
// > ??> @ 0x15478a8
//
// 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:07 +0000
//
__int64 __fastcall DeathTrackerPopup::onClose(DeathTrackerPopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w8
char v5; // w7
int v6; // w6
char v7; // w5
char v8; // w4
GJGameLevel *v9; // x2
GJGameLevel *v10; // x0
int v11; // w2
__int64 v12; // x1
int v13; // w2
__int64 v14; // x22
void *v16[3]; // [xsp+40h] [xbp+40h] BYREF
v3 = *((unsigned __int8 *)this + 920);
if ( v3 )
v4 = *((_DWORD *)this + 245);
else
v4 = *((_DWORD *)this + 182);
v5 = *((_BYTE *)this + 732);
v6 = *((_DWORD *)this + 185);
v7 = *((_BYTE *)this + 744);
v8 = *((_BYTE *)this + 986);
v9 = *((GJGameLevel **)this + 85);
dword_1548500 = v4;
byte_155F068 = v5;
dword_155F06C = v6;
byte_155F070 = v7;
byte_1548504 = v8;
byte_1548505 = v3;
if ( v9 )
{
v10 = v9;
v11 = *((_DWORD *)v9 + 82) - *((_DWORD *)v9 + 83);
byte_155F078 = *((_BYTE *)this + 977);
dword_155F074 = v11;
dword_1548508 = GJGameLevel::getNormalPercent(v10);
v12 = *((_QWORD *)this + 85);
v13 = 0;
if ( v12 )
v13 = *(_DWORD *)(v12 + 328) - *(_DWORD *)(v12 + 332);
}
else
{
v13 = 0;
byte_155F078 = *((_BYTE *)this + 977);
dword_155F074 = 0;
dword_1548508 = -1;
}
v14 = *((_QWORD *)this + 89);
dword_155F07C = v13;
if ( v14 && !*((_BYTE *)this + 920) && (*((_DWORD *)this + 182) != 2 || !*((_BYTE *)this + 986)) )
{
DeathTrackerPopup::dtScrollKey(this, v16);
DeathHistogram::persistScroll(v14, (__int64)v16);
if ( ((__int64)v16[0] & 1) != 0 )
operator delete(v16[2]);
}
(*(void (__fastcall **)(DeathTrackerPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
(*(void (__fastcall **)(DeathTrackerPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
return _stack_chk_guard;
}