//
// DeathMarkerSettingsPopup::onClearMarkers from 0x14011d490 to 0x14011d5fb (363 bytes)
//
// 2 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x14011d378
// > ??> @ 0x140916418
//
// This function is hookable on this platform (idp: pc, 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:26:55 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall DeathMarkerSettingsPopup::onClearMarkers(__int64 a1)
{
int v1; // ebx
__int64 v2; // rax
__int64 *v3; // rbx
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF
v1 = a1 + 1000;
if ( !a1 )
v1 = 0;
v5 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x70u);
v6 = 107;
v7 = 111;
strcpy(
(char *)v5,
"Clear your saved death markers for this level? Death stats are not affected. This cannot be undone.");
v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);
v3 = (__int64 *)FLAlertLayer::create(
v1,
(int)"Clear Markers",
v2,
(__int64)"Cancel",
(__int64)"Clear",
1134559232,
0,
0,
1065353216);
sub_14003D310((__int64)&v5);
(*(void (__fastcall **)(__int64 *, __int64))(*v3 + 64))(v3, 1);
ButtonSprite::updateBGImage(v3[77], "GJ_button_06.png");
return (*(__int64 (__fastcall **)(__int64 *))(*v3 + 1064))(v3);
}