//
// DeathTrackerOptionsPopup::FLAlert_Clicked from 0x770650 to 0x77072a (218 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x770740
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:15 +0000
//
int __fastcall DeathTrackerOptionsPopup::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, int a3)
{
int result; // r0
char **v5; // r0
char **v6; // r0
int *v7; // r9
int v8; // r3
void (__fastcall *v9)(int *, cocos2d::CCNode *, int); // r10
cocos2d::CCNode *v10; // r0
DeathTrackerPopup *v11; // r0
int v12[3]; // [sp+Ch] [bp-1Ch] BYREF
int v13[3]; // [sp+18h] [bp-10h] BYREF
result = _stack_chk_guard;
if ( a3 )
{
result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 1 )
{
if ( *(this + 179) )
{
v5 = (char **)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));
v6 = GameLevelManager::clearDeathDataInstances(v5, *(this + 179), 0);
v7 = *(int **)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v6) + 220);
v8 = *v7;
memset(v12, 0, sizeof(v12));
v9 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v8 + 232);
std::string::__init(v12, "Death data cleared", 0x12u);
memset(v13, 0, sizeof(v13));
std::string::__init(v13, &unk_B6B226, 0);
v10 = TextAlertPopup::create((int)v12, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v13);
v9(v7, v10, 1000);
std::string::~string((int)v13);
std::string::~string((int)v12);
v11 = *(this + 180);
if ( v11 )
DeathTrackerPopup::onClose(v11, nullptr);
return (*((int (__fastcall **)(GJGameLevel **, _DWORD))*this + 171))(this, 0);
}
}
}
return result;
}