//
// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x1008c8360 to 0x1008c84c7 (359 bytes)
//
// 2 xrefs:
// > sub_1008C84F0 @ 0x1008c84fc
// > ??> @ 0x100bb0230
//
// 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 12:37:33 +0000
//
void __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rbx
char *v8; // rax
__int128 v9; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
_BYTE v11[24]; // [rsp+20h] [rbp-20h] BYREF
if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v3 = GameLevelManager::sharedState();
sub_1005548D0(v3, *(_QWORD *)(a1 + 1056), 1);
if ( *(_QWORD *)(GameManager::sharedState() + 544) )
{
v4 = GameManager::sharedState();
*(_QWORD *)(*(_QWORD *)(v4 + 544) + 14448LL) = *(_QWORD *)(*(_QWORD *)(v4 + 544) + 14440LL);
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 14464LL) = 0;
if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) )
{
v5 = GameManager::sharedState();
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v5 + 544) + 1944LL) + 520LL))(*(_QWORD *)(*(_QWORD *)(v5 + 544) + 1944LL));
*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) = 0;
}
v6 = GameManager::sharedState();
PlayLayer::dtLiveMarkersChanged(*(_QWORD *)(v6 + 544));
}
v7 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
strcpy(v11, "*Death markers cleared");
LOWORD(v9) = 0;
v8 = TextAlertPopup::create((__int128 *)v11, 0x96u, &v9, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v7 + 464LL))(v7, v8, 1000);
if ( (v9 & 1) != 0 )
operator delete(__p);
if ( (v11[0] & 1) != 0 )
operator delete(*(void **)&v11[16]);
}
}