//
// DeathStatsPopup::onClose from 0xca7464 to 0xca752c (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x9ef50
// > ??> @ 0x14f7ef8
//
// 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:03 +0000
//
__int64 __fastcall DeathStatsPopup::onClose(DeathStatsPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x19
__int64 v4; // x0
__int64 *v5; // x1
__int64 v6; // x2
__int64 v7; // x0
_QWORD v9[2]; // [xsp+38h] [xbp+38h]
v3 = 0;
cocos2d::CCNode::unschedule(this, DeathStatsPopup::pollFetch, 0);
v4 = *((_QWORD *)this + 129);
v9[0] = *((_QWORD *)this + 128);
v9[1] = v4;
do
{
v5 = (__int64 *)v9[v3];
if ( v5 )
{
v6 = *v5;
v7 = v9[v3];
v5[73] = 0;
(*(void (__fastcall **)(__int64, _QWORD))(v6 + 1160))(v7, 0);
}
++v3;
}
while ( v3 != 2 );
(*(void (__fastcall **)(DeathStatsPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
(*(void (__fastcall **)(DeathStatsPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
return _stack_chk_guard;
}