//
// sub_100579614 from 0x100579614 to 0x100579698 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082e980
// > ??> @ 0x10082ea00
//
// 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_100579614(__int64 a1, bool *a2)
{
__int64 v4; // x21
_BYTE *v5; // x22
__int64 result; // x0
v4 = a1 + 1336;
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 800) + 124LL) & 1) != 0 )
{
v5 = (_BYTE *)(a1 + 1452);
if ( !*(_BYTE *)(a1 + 1452) )
{
result = sub_100587124(a1, 0, a1 + 1452);
if ( (_DWORD)result )
return result;
if ( !*v5 )
return 0;
}
}
result = sub_10057A59C(v4, 0);
*a2 = *(_DWORD *)(a1 + 1448) == 0;
return result;
}