//
// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x14011d600 to 0x14011d83f (575 bytes)
//
// 2 xrefs:
// > ??> @ 0x140730968
// > ??> @ 0x140916424
//
// 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=9
void __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 v4; // r8
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rdx
__int64 v9; // rdx
__int64 *v10; // rdi
__int64 v11; // rbx
__int64 v12; // rdx
__int64 v13; // r8
__int64 v14; // rax
__int128 v15; // [rsp+38h] [rbp-50h] BYREF
__int64 v16; // [rsp+48h] [rbp-40h]
__int64 v17; // [rsp+50h] [rbp-38h]
__int128 v18; // [rsp+58h] [rbp-30h] BYREF
__int64 v19; // [rsp+68h] [rbp-20h]
__int64 v20; // [rsp+70h] [rbp-18h]
void *v21; // [rsp+A8h] [rbp+20h]
void *v22; // [rsp+A8h] [rbp+20h]
void *v23; // [rsp+A8h] [rbp+20h]
if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 )
{
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v21 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v21);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
LOBYTE(v4) = 1;
GameLevelManager::clearDeathDataInstances(v5, *(_QWORD *)(a1 + 40), v4);
v6 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v22 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v22);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v6 = qword_14090BFD0;
}
v7 = *(_QWORD *)(v6 + 560);
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 15096);
if ( v8 != *(_QWORD *)(v7 + 15104) )
*(_QWORD *)(v7 + 15104) = v8;
*(_BYTE *)(*(_QWORD *)(v6 + 560) + 15120LL) = 0;
v9 = *(_QWORD *)(*(_QWORD *)(v6 + 560) + 2176LL);
if ( v9 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 512LL))(v9);
v6 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v23 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v23);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v6 = qword_14090BFD0;
}
*(_QWORD *)(*(_QWORD *)(v6 + 560) + 2176LL) = 0;
}
PlayLayer::dtLiveMarkersChanged(*(_QWORD *)(v6 + 560));
}
v10 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v6) + 272);
v18 = 0;
v19 = 0;
v20 = 15;
LOBYTE(v18) = 0;
v15 = 0;
*(_QWORD *)&v15 = sub_14003D460(0x20u);
v16 = 21;
v17 = 31;
strcpy((char *)v15, "Death markers cleared");
v11 = *v10;
v14 = TextAlertPopup::create(&v15, v12, v13, 150, &v18);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 456))(v10, v14, 1000);
}
}