//
// sub_1005548B8 from 0x1005548b8 to 0x100554948 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082da78
// > ??> @ 0x10082daf8
//
// 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_1005548B8(__int64 a1, bool *a2)
{
__int64 result; // x0
bool v5; // zf
char v6; // w8
result = sub_10057A59C(a1 + 1336, 0);
v5 = *(_DWORD *)(a1 + 1512) == 0;
*a2 = v5;
v6 = !v5;
if ( !(_DWORD)result && (v6 & 1) == 0 )
{
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 536LL) + 24LL) )
sub_100567898(a1, 0xFFFFFFFFLL, -1, 0, 0, 0xFFFFFFFFLL, 0);
else
*(_BYTE *)(a1 + 745) = 1;
*(_BYTE *)(a1 + 1481) = 1;
return 0;
}
return result;
}