//
// sub_10056066C from 0x10056066c to 0x100560714 (168 bytes)
//
// 1 xrefs:
// > sub_10055CD64 @ 0x10055e430
//
// 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_10056066C(__int64 a1, size_t a2)
{
if ( !(*(_QWORD *)(*(_QWORD *)(a1 + 920) + 24LL) + *(_QWORD *)(*(_QWORD *)(a1 + 928) + 24LL)) && !*(_BYTE *)(a1 + 72) )
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 800) + 122LL) & 4) == 0 )
{
if ( !(unsigned int)sub_100570DE8(*(unsigned int *)(a1 + 464), 0xFFFFFFFFLL, 0xFFFFFFFFLL, 0) )
return 0;
goto LABEL_7;
}
if ( (sub_10057B8E0(a1) & 1) != 0 )
{
LABEL_7:
*(_QWORD *)a1 = a2;
sub_1005524A4(a2, "Connection %ld seems to be dead!\n", *(_QWORD *)(a1 + 80));
sub_10055C450((__int64 *)a1, 1);
}
}
return 0;
}