//
// sub_100587CEC from 0x100587cec to 0x100587d40 (84 bytes)
//
// 1 xrefs:
// > sub_100587C08 @ 0x100587c54
//
// 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:08:33 +0000
//
__int64 __fastcall sub_100587CEC(__int64 a1)
{
if ( !*(_QWORD *)(a1 + 376) )
return 31;
if ( (*(_DWORD *)(*(_QWORD *)(a1 + 368) + 404LL) & 1) != 0 )
{
*(_DWORD *)(a1 + 464) = 0;
*(_DWORD *)(a1 + 460) = 0;
if ( !(unsigned int)sub_100610760() )
return 14;
}
return 0;
}