//
// sub_100582AFC from 0x100582afc to 0x100582b34 (56 bytes)
//
// 4 xrefs:
// > ??> @ 0x10082edb0
// > ??> @ 0x10082edb8
// > ??> @ 0x10082ee30
// > ??> @ 0x10082ee38
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100582AFC(__int64 a1, _DWORD *a2, int a3)
{
__int64 v4; // x9
__int64 result; // x0
if ( !a3 )
return 0;
*a2 = *(_DWORD *)(a1 + 464);
v4 = *(_QWORD *)(a1 + 1392);
result = 0x10000;
if ( !v4 )
{
if ( *(_QWORD *)(a1 + 1384) )
return 0x10000;
else
return 1;
}
return result;
}