//
// DeathMarkerSettingsPopup::onClearMarkers from 0xca5b78 to 0xca5c84 (268 bytes)
//
// 3 xrefs:
// > ??> @ 0xbd538
// > DeathMarkerSettingsPopup::init @ 0xca6ea0
// > ??> @ 0x15457c0
//
// 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:02 +0000
//
__int64 __fastcall DeathMarkerSettingsPopup::onClearMarkers(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)
{
ButtonSprite **v3; // x19
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
v6 = (void *)operator new(0x70u);
v5[1] = 107;
v5[0] = 113;
*((_BYTE *)memcpy(
v6,
"Clear your saved death markers for this level? Death stats are not affected. This cannot be undone.",
0x6Bu)
+ 107) = 0;
v3 = (ButtonSprite **)FLAlertLayer::create(
(__int64)this + 1016,
(cocos2d::CCLabelBMFont *)"Clear Markers",
(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;
}