//
// SSL_set_fd from 0xd3f868 to 0xd3f8ec (132 bytes)
//
// 2 xrefs:
// > sub_BB78D0 @ 0xbb8768
// > ??> @ 0xba168
//
// 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 SSL_set_fd(__int64 a1, unsigned int a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x19
v3 = BIO_s_socket();
v4 = BIO_new(v3);
v5 = v4;
if ( v4 )
{
BIO_int_ctrl(v4, 104, 0, a2);
SSL_set_bio(a1, v5, v5);
return 1;
}
else
{
ERR_put_error(20, 192, 7, "ssl/ssl_lib.c", 1161);
return 0;
}
}