//
// BIO_sock_info from 0x9e3f08 to 0x9e3ff0 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x7914c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:22 +0000
//
int __fastcall BIO_sock_info(int a1, int a2)
{
struct sockaddr *v3; // r0
_DWORD *v5; // r0
unsigned int v6; // [sp+Ch] [bp-8h] 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, (socklen_t *)&v6) == -1 )
{
v5 = (_DWORD *)_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
{
if ( v6 <= 0x70 )
return 1;
ERR_put_error(32, 141, 133, "crypto/bio/b_sock.c", 369);
}
}
return 0;
}