//
// BIO_sock_info from 0xff34bc to 0xff359c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0xa8148
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:47 +0000
//
__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;
}