//
// sub_10054B0F8 from 0x10054b0f8 to 0x10054b148 (80 bytes)
//
// 4 xrefs:
// > AccountReviewPopup::threadUpdateFinished @ 0x10054b150
// > sub_10054B158 @ 0x10054b164
// > AccountReviewPopup::threadUpdateFailed @ 0x10054b184
// > sub_10054B1AC @ 0x10054b1c8
//
// 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 11:07:50 +0000
//
__int64 __fastcall sub_10054B0F8(__int64 result)
{
__int64 v1; // x19
int v2; // w8
v1 = result;
v2 = *(_DWORD *)(result + 1260);
if ( v2 >= 1 )
*(_DWORD *)(result + 1260) = --v2;
if ( !v2 )
{
result = GameLevelManager::sharedState();
if ( *(_QWORD *)(result + 1264) == v1 + 832 )
{
result = GameLevelManager::sharedState();
*(_QWORD *)(result + 1264) = 0;
}
}
return result;
}