//
// sub_100887C30 from 0x100887c30 to 0x100887c8d (93 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ba58a0
//
// 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:36:59 +0000
//
__int64 __fastcall sub_100887C30(__int64 a1, __int64 a2)
{
__int64 result; // rax
result = GJAccountManager::sharedState(a1, a2);
if ( *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) == (_DWORD)a2 )
{
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1352) == a1 )
*(_QWORD *)(GameLevelManager::sharedState() + 1352) = 0;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 712) + 1368LL))(a1 - 712);
}
return result;
}