//
// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x1008ca6d0 to 0x1008ca7d9 (265 bytes)
//
// 2 xrefs:
// > sub_1008CA800 @ 0x1008ca80c
// > ??> @ 0x100bb12d0
//
// 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:34 +0000
//
void __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(__int64 *a1, __int64 a2, int a3)
{
__int64 v4; // rax
__int64 v5; // r14
char *v6; // rax
__int64 v7; // rdi
__int128 v8; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
__int128 v10[2]; // [rsp+18h] [rbp-28h] BYREF
if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 && a1[128] )
{
v4 = GameLevelManager::sharedState();
sub_1005548D0(v4, a1[128], 0);
v5 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
strcpy((char *)v10, "$Death data cleared");
LOWORD(v8) = 0;
v6 = TextAlertPopup::create(v10, 0x96u, &v8, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v6, 1000);
if ( (v8 & 1) != 0 )
{
operator delete(__p);
if ( (v10[0] & 1) == 0 )
{
LABEL_6:
v7 = a1[129];
if ( !v7 )
{
LABEL_8:
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1368))(a1, 0);
return;
}
LABEL_7:
sub_1008CD070(v7, 0);
goto LABEL_8;
}
}
else if ( (v10[0] & 1) == 0 )
{
goto LABEL_6;
}
operator delete(*(void **)&v10[1]);
v7 = a1[129];
if ( !v7 )
goto LABEL_8;
goto LABEL_7;
}
}