//
// SSL_set_fd from 0x9ab4e8 to 0x9ab560 (120 bytes)
//
// 2 xrefs:
// > sub_8539B8 @ 0x85447e
// > ??> @ 0x682ec
//
// 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:06:53 +0000
//
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;
}
}