//
// GameLevelManager::onBanUserCompleted from 0x4b0490 to 0x4b0586 (246 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4dadca
//
// 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:50:02 +0000
//
int __fastcall GameLevelManager::onBanUserCompleted(GameLevelManager *a1, unsigned __int8 *a2)
{
_BOOL4 v4; // r7
int result; // r0
char *v6; // r1
char *v7; // r1
char *v8; // r1
char *v9; // r1
int v10[2]; // [sp+0h] [bp-14h] BYREF
char *v11; // [sp+8h] [bp-Ch]
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "-1", 2u);
v4 = sub_4A9CC4(a2, (unsigned __int8 *)v10);
result = std::string::~string((int)v10);
if ( !v4 )
{
GameLevelManager::getLeaderboardKey(v10, (int)a1, (_BYTE *)&dword_0 + 1, 0);
if ( (v10[0] & 1) != 0 )
v6 = v11;
else
v6 = (char *)v10 + 1;
GameLevelManager::resetTimerForKey(a1, v6);
std::string::~string((int)v10);
GameLevelManager::getLeaderboardKey(v10, (int)a1, (_BYTE *)&dword_0 + 1, 1);
if ( (v10[0] & 1) != 0 )
v7 = v11;
else
v7 = (char *)v10 + 1;
GameLevelManager::resetTimerForKey(a1, v7);
std::string::~string((int)v10);
GameLevelManager::getLeaderboardKey(v10, (int)a1, (_BYTE *)&dword_0 + 1, 2);
if ( (v10[0] & 1) != 0 )
v8 = v11;
else
v8 = (char *)v10 + 1;
GameLevelManager::resetTimerForKey(a1, v8);
std::string::~string((int)v10);
GameLevelManager::getLeaderboardKey(v10, (int)a1, (_BYTE *)&dword_0 + 1, 3);
if ( (v10[0] & 1) != 0 )
v9 = v11;
else
v9 = (char *)v10 + 1;
GameLevelManager::resetTimerForKey(a1, v9);
return std::string::~string((int)v10);
}
return result;
}