//
// sub_B87900 from 0xb87900 to 0xb87978 (120 bytes)
//
// 1 xrefs:
// > sub_B98800 @ 0xb98cc8
//
// 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_B87900(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x2
result = *(_QWORD *)a1;
if ( *(_BYTE *)(result + 1576) )
{
if ( *(_BYTE *)(a1 + 959) )
{
return sub_B7B528(
result,
"Connected to %s (%s) port %ld (#%ld)\n",
*(_QWORD *)(a1 + 304),
a1 + 120,
*(_QWORD *)(a1 + 408),
*(_QWORD *)(a1 + 80));
}
else
{
if ( *(_BYTE *)(a1 + 958) )
v3 = *(_QWORD *)(a1 + 368);
else
v3 = *(_QWORD *)(a1 + 200);
return sub_B7B528(
result,
"Connected to %s (%s) port %ld (#%ld)\n",
v3,
a1 + 120,
*(_QWORD *)(a1 + 408),
*(_QWORD *)(a1 + 80));
}
}
return result;
}