//
// DeathMarkerSettingsPopup::FLAlert_Clicked from 0x76dfd4 to 0x76e104 (304 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x76e118
//
// 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:13 +0000
//
int __fastcall DeathMarkerSettingsPopup::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, int a3)
{
int result; // r0
char **v5; // r0
char **v6; // r0
GameManager *v7; // r0
GameManager *v8; // r0
_DWORD *v9; // r4
int v10; // r3
GameManager *v11; // r0
GameManager *v12; // r0
int v13; // r0
GameManager *v14; // r0
int v15; // r0
int *v16; // r8
int v17; // r3
void (__fastcall *v18)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v19; // r0
int v20[3]; // [sp+Ch] [bp-20h] BYREF
int v21[3]; // [sp+18h] [bp-14h] BYREF
result = _stack_chk_guard;
if ( a3 )
{
result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 1 )
{
v5 = (char **)GameLevelManager::sharedState((GameLevelManager *)((char *)&dword_0 + 1));
v6 = GameLevelManager::clearDeathDataInstances(v5, *(this + 183), 1);
v7 = (GameManager *)GameManager::sharedState((GameManager *)v6);
if ( *((_DWORD *)v7 + 101) )
{
v8 = (GameManager *)GameManager::sharedState(v7);
v9 = (_DWORD *)(*((_DWORD *)v8 + 101) + 11972);
v10 = *(_DWORD *)(*((_DWORD *)v8 + 101) + 11968);
while ( v10 != *v9 )
*v9 -= 4;
v11 = (GameManager *)GameManager::sharedState(v8);
*(_BYTE *)(*((_DWORD *)v11 + 101) + 11980) = 0;
v12 = (GameManager *)GameManager::sharedState(v11);
if ( *(_DWORD *)(*((_DWORD *)v12 + 101) + 1412) )
{
v13 = GameManager::sharedState(v12);
v14 = (GameManager *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(v13 + 404) + 1412) + 260))(*(_DWORD *)(*(_DWORD *)(v13 + 404) + 1412));
v12 = (GameManager *)GameManager::sharedState(v14);
*(_DWORD *)(*((_DWORD *)v12 + 101) + 1412) = 0;
}
v15 = GameManager::sharedState(v12);
v7 = (GameManager *)PlayLayer::dtLiveMarkersChanged(*(PlayLayer **)(v15 + 404));
}
v16 = *(int **)(cocos2d::CCDirector::sharedDirector(v7) + 220);
v17 = *v16;
memset(v20, 0, sizeof(v20));
v18 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v17 + 232);
std::string::__init(v20, "Death markers cleared", 0x15u);
memset(v21, 0, sizeof(v21));
std::string::__init(v21, &unk_B6B226, 0);
v19 = TextAlertPopup::create((int)v20, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v21);
v18(v16, v19, 1000);
std::string::~string((int)v21);
return std::string::~string((int)v20);
}
}
return result;
}