//
// sub_1005547D8 from 0x1005547d8 to 0x10055487c (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082da68
// > ??> @ 0x10082dae8
//
// 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_1005547D8(__int64 a1, bool *a2)
{
__int64 result; // x0
*a2 = 0;
*(_BYTE *)(a1 + 737) = 0;
*(_QWORD *)(a1 + 1416) = 1800000;
*(_QWORD *)(a1 + 1432) = sub_100554D5C;
*(_QWORD *)(a1 + 1440) = sub_1005562AC;
*(_QWORD *)(a1 + 1424) = a1;
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 800) + 124LL) & 1) == 0 || (result = sub_1005870B0(a1, 0), !(_DWORD)result) )
{
sub_10057A75C(a1 + 1336);
*(_DWORD *)(a1 + 1512) = 1;
result = sub_10057A59C(a1 + 1336, 0);
*a2 = *(_DWORD *)(a1 + 1512) == 0;
}
return result;
}