//
// sub_1008FE000 from 0x1008fe000 to 0x1008fe083 (131 bytes)
//
// 1 xrefs:
// > sub_1008FD5B0 @ 0x1008fdb3b
//
// 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:38:01 +0000
//
void __fastcall sub_1008FE000(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rdi
char *v4; // rbx
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::offlineModeEnabled(v2) )
{
GameManager::sharedState();
GameManager::showParentalRestrictedAlert();
}
else
{
v3 = *(_QWORD *)(a1 + 1096);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);
LOWORD(v5) = 0;
v4 = sub_1008EEE60(&v5, a1);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( v4 )
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);
}
}