//
// DeathStatsPopup::onClose from 0x1004b9128 to 0x1004b91b8 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x100983628
//
// 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 11:06:15 +0000
//
__int64 __fastcall DeathStatsPopup::onClose(__int64 a1)
{
_QWORD *v2; // x20
_QWORD *v3; // x0
char v4; // w8
char v5; // w21
cocos2d::CCNode::unschedule((unsigned int *)a1, (unsigned __int64)sub_1004B8D30, 0);
v2 = *(_QWORD **)(a1 + 1032);
v3 = *(_QWORD **)(a1 + 1024);
v4 = 1;
do
{
v5 = v4;
if ( v3 )
{
v3[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1160LL))(v3, 0);
}
v4 = 0;
v3 = v2;
}
while ( (v5 & 1) != 0 );
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}