//
// SSL_set_fd from 0x7968e4 to 0x79695c (120 bytes)
//
// 2 xrefs:
// > sub_643938 @ 0x6443fe
// > ??> @ 0x553bc
//
// 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
//
int __fastcall SSL_set_fd(int a1, int a2)
{
int v4; // r0
int v5; // r0
int v6; // r4
v4 = BIO_s_socket();
v5 = BIO_new(v4);
v6 = v5;
if ( v5 )
{
BIO_int_ctrl(v5, 104, 0, a2);
SSL_set_bio(a1, v6, v6);
return 1;
}
else
{
ERR_put_error(20, 192, 7, "ssl/ssl_lib.c", 1161);
return 0;
}
}