//
// BIO_socket_ioctl from 0x9e3b6c to 0x9e3bbc (80 bytes)
//
// 2 xrefs:
// > BIO_socket_nbio @ 0x9e3ef0
// > ??> @ 0x790ac
//
// 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_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;
}