//
// DeathTrackerOptionsPopup::onClearData from 0xca8b90 to 0xca8ca8 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0xaa158
// > DeathTrackerOptionsPopup::init @ 0xca9010
// > ??> @ 0x1544cd8
//
// 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 DeathTrackerOptionsPopup::onClearData(DeathTrackerOptionsPopup *this, cocos2d::CCObject *a2)
{
ButtonSprite **v3; // x20
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
if ( *((_QWORD *)this + 128) )
{
v5[1] = 101;
v6 = (void *)operator new(0x70u);
v5[0] = 113;
*((_BYTE *)memcpy(
v6,
"Clear your death stats for this level? Death markers are not affected. This cannot be undone.",
0x65u)
+ 101) = 0;
v3 = (ButtonSprite **)FLAlertLayer::create(
(__int64)this + 1016,
(cocos2d::CCLabelBMFont *)"Clear Data",
(char *)v5,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Clear",
320.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*((void (__fastcall **)(ButtonSprite **, __int64))*v3 + 9))(v3, 1);
ButtonSprite::updateBGImage(v3[77], "GJ_button_06.png");
(*((void (__fastcall **)(ButtonSprite **))*v3 + 164))(v3);
}
return _stack_chk_guard;
}