//
// BIO_socket from 0xff359c to 0xff3644 (168 bytes)
//
// 5 xrefs:
// > BIO_get_accept_socket @ 0xff327c
// > sub_FF571C @ 0xff584c
// > sub_FF5F74 @ 0xff60e4
// > sub_FF6400 @ 0xff6570
// > ??> @ 0x7a368
//
// 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:47 +0000
//
__int64 __fastcall BIO_socket(int a1, int a2, int a3)
{
unsigned int v4; // w19
unsigned int *v6; // x0
if ( (unsigned int)BIO_sock_init() != 1 )
return 0xFFFFFFFFLL;
v4 = socket(a1, a2, a3);
if ( v4 == -1 )
{
v6 = (unsigned int *)__errno();
ERR_put_error(2, 4, *v6, "crypto/bio/b_sock2.c", 49);
ERR_put_error(32, 140, 118, "crypto/bio/b_sock2.c", 50);
}
return v4;
}