//
// BIO_sock_info from 0xd7515c to 0xd7523c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x7e0f0
//
// 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 BIO_sock_info(int a1, int a2)
{
struct sockaddr *v3; // x0
__int64 result; // x0
unsigned int *v5; // x0
socklen_t v6; // [xsp+2Ch] [xbp+2Ch] BYREF
if ( a2 )
{
ERR_put_error(32, 141, 140, "crypto/bio/b_sock.c", 375);
}
else
{
v6 = 112;
BIO_ADDR_sockaddr_noconst();
if ( getsockname(a1, v3, &v6) == -1 )
{
v5 = (unsigned int *)__errno();
ERR_put_error(2, 16, *v5, "crypto/bio/b_sock.c", 364);
ERR_put_error(32, 141, 132, "crypto/bio/b_sock.c", 365);
}
else
{
result = 1;
if ( v6 <= 0x70 )
return result;
ERR_put_error(32, 141, 133, "crypto/bio/b_sock.c", 369);
}
}
return 0;
}