//
// sub_10055CA7C from 0x10055ca7c to 0x10055cb44 (200 bytes)
//
// 1 xrefs:
// > sub_10056DB30 @ 0x10056ddf0
//
// 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_10055CA7C(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
__int64 (__fastcall *v5)(__int64, _BYTE *); // x8
*a2 = 0;
if ( *(_BYTE *)(a1 + 746) )
{
if ( *(_BYTE *)(a1 + 748) )
{
if ( !*(_QWORD *)(*(_QWORD *)(a1 + 800) + 48LL) )
*a2 = 1;
return 0;
}
}
else if ( *(_BYTE *)(a1 + 748) )
{
return 0;
}
result = sub_10057C0B0(a1);
if ( (_DWORD)result )
return result;
if ( *(_BYTE *)(a1 + 750) && *(_BYTE *)(a1 + 740) && *(_DWORD *)(a1 + 1592) != 2 )
return 0;
v5 = *(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)(a1 + 800) + 40LL);
if ( v5 )
{
result = v5(a1, a2);
if ( (_DWORD)result )
return result;
}
else
{
*a2 = 1;
}
*(_BYTE *)(a1 + 748) = 1;
return 0;
}