//
// BIO_socket_ioctl from 0x7cef6c to 0x7cefbc (80 bytes)
//
// 2 xrefs:
// > BIO_socket_nbio @ 0x7cf2f0
// > ??> @ 0x5f62c
//
// 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
//
int __fastcall BIO_socket_ioctl(int a1, unsigned int a2)
{
int result; // r0
int v3; // r4
_DWORD *v4; // r0
result = ioctl(a1, a2);
v3 = result;
if ( result < 0 )
{
v4 = (_DWORD *)_errno();
ERR_put_error(2, 5, *v4, "crypto/bio/b_sock.c", 206);
return v3;
}
return result;
}