//
// LevelLeaderboard::deleteLocalScores from 0xa822a4 to 0xa82444 (416 bytes)
//
// 2 xrefs:
// > LevelLeaderboard::FLAlert_Clicked @ 0xa82484
// > ??> @ 0x94cf0
//
// This function is hookable on this platform (idp: arm, 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 13:00:32 +0000
//
__int64 __fastcall LevelLeaderboard::deleteLocalScores(LevelLeaderboard *this)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x21
void (__fastcall *v5)(__int64, __int64, __int64); // x23
__int64 v6; // x0
__int64 v8[2]; // [xsp+48h] [xbp+48h] BYREF
void *v9; // [xsp+58h] [xbp+58h]
__int64 v10[2]; // [xsp+60h] [xbp+60h] BYREF
void *v11; // [xsp+70h] [xbp+70h]
v2 = *((_QWORD *)this + 85);
if ( (*(_BYTE *)(v2 + 1384) & 1) != 0 )
{
**(_BYTE **)(v2 + 1400) = 0;
*(_QWORD *)(v2 + 1392) = 0;
}
else
{
*(_BYTE *)(v2 + 1385) = 0;
*(_BYTE *)(v2 + 1384) = 0;
}
v3 = *((_QWORD *)this + 85);
if ( (*(_BYTE *)(v3 + 1408) & 1) != 0 )
{
**(_BYTE **)(v3 + 1424) = 0;
*(_QWORD *)(v3 + 1416) = 0;
}
else
{
*(_BYTE *)(v3 + 1409) = 0;
*(_BYTE *)(v3 + 1408) = 0;
}
v4 = (*(__int64 (__fastcall **)(LevelLeaderboard *))(*(_QWORD *)this + 512LL))(this);
LevelLeaderboard::onClose(this, nullptr);
if ( v4 )
{
v5 = *(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL);
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, "Local scores reset.", 0x13u);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
v6 = TextAlertPopup::create((char *)v8, 150, (char *)v10, 1.0, 0.6);
v5(v4, v6, 100);
if ( (v10[0] & 1) != 0 )
{
operator delete(v11);
if ( (v8[0] & 1) == 0 )
return _stack_chk_guard;
}
else if ( (v8[0] & 1) == 0 )
{
return _stack_chk_guard;
}
operator delete(v9);
}
return _stack_chk_guard;
}