//
// BIO_socket_ioctl from 0xff3144 to 0xff31a0 (92 bytes)
//
// 2 xrefs:
// > BIO_socket_nbio @ 0xff34a8
// > ??> @ 0xb4898
//
// 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:46 +0000
//
__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;
}