//
// sub_1009A3CB0 from 0x1009a3cb0 to 0x1009a3d02 (82 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:39:18 +0000
//
__int64 __fastcall sub_1009A3CB0(__int64 a1)
{
__int64 result; // rax
result = *(unsigned int *)(a1 + 1260);
if ( (int)result > 0 )
{
result = (unsigned int)(result - 1);
*(_DWORD *)(a1 + 1260) = result;
}
if ( !(_DWORD)result )
{
result = GameLevelManager::sharedState();
if ( *(_QWORD *)(result + 1264) == a1 + 832 )
{
result = GameLevelManager::sharedState();
*(_QWORD *)(result + 1264) = 0;
}
}
return result;
}