//
// BIO_socket_ioctl from 0xd74de4 to 0xd74e40 (92 bytes)
//
// 2 xrefs:
// > BIO_socket_nbio @ 0xd75148
// > ??> @ 0x881b8
//
// 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_socket_ioctl(int a1, unsigned __int64 a2)
{
unsigned int v2; // w19
unsigned int *v4; // x0
v2 = ioctl(a1, a2);
if ( (v2 & 0x80000000) != 0 )
{
v4 = (unsigned int *)__errno();
ERR_put_error(2, 5, *v4, "crypto/bio/b_sock.c", 206);
}
return v2;
}