//
// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x140120230 to 0x1401203ad (381 bytes)
//
// 2 xrefs:
// > ??> @ 0x140731750
// > ??> @ 0x140916550
//
// 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:56 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 v4; // rcx
__int64 v5; // rcx
__int64 *v6; // rdi
__int64 v7; // rbx
__int64 v8; // rdx
__int64 v9; // r8
__int64 v10; // rax
__int64 v11; // rcx
__int128 v12; // [rsp+38h] [rbp-50h] BYREF
__int64 v13; // [rsp+48h] [rbp-40h]
__int64 v14; // [rsp+50h] [rbp-38h]
__int128 v15; // [rsp+58h] [rbp-30h] BYREF
__int64 v16; // [rsp+68h] [rbp-20h]
__int64 v17; // [rsp+70h] [rbp-18h]
void *v18; // [rsp+A8h] [rbp+20h]
if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 && *(_QWORD *)(a1 + 8) )
{
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v18 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v18);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::clearDeathDataInstances(v4, *(_QWORD *)(a1 + 8), 0);
v6 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v5) + 272);
v15 = 0;
v16 = 0;
v17 = 15;
LOBYTE(v15) = 0;
v12 = 0;
*(_QWORD *)&v12 = sub_14003D460(0x20u);
v13 = 18;
v14 = 31;
strcpy((char *)v12, "Death data cleared");
v7 = *v6;
v10 = TextAlertPopup::create(&v12, v8, v9, 150, &v15);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v7 + 456))(v6, v10, 1000);
v11 = *(_QWORD *)(a1 + 16);
if ( v11 )
DeathTrackerPopup::onClose(v11);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 1000) + 1104LL))(a1 - 1000, 0);
}
}