//
// SSL_set_fd from 0xfbdbbc to 0xfbdc40 (132 bytes)
//
// 2 xrefs:
// > sub_E2DA90 @ 0xe2e928
// > ??> @ 0xf2c20
//
// 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:19 +0000
//
__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;
}
}