//
// SSL_set_rfd from 0x9ab63c to 0x9ab704 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x755ac
//
// 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_rfd(int a1, int a2)
{
int wbio; // r4
int v5; // r0
int v6; // r0
int v7; // r4
wbio = SSL_get_wbio(a1);
if ( wbio && BIO_method_type() == 1285 && BIO_ctrl(wbio, 105, 0, 0) == a2 )
{
BIO_up_ref(wbio);
SSL_set0_rbio(a1, wbio);
return 1;
}
else
{
v5 = BIO_s_socket();
v6 = BIO_new(v5);
v7 = v6;
if ( v6 )
{
BIO_int_ctrl(v6, 104, 0, a2);
SSL_set0_rbio(a1, v7);
return 1;
}
else
{
ERR_put_error(20, 194, 7, "ssl/ssl_lib.c", 1201);
return 0;
}
}
}