//
// BIO_new_ssl from 0xfae230 to 0xfae2b0 (128 bytes)
//
// 2 xrefs:
// > BIO_new_ssl_connect @ 0xfae2d8
// > ??> @ 0x6cec8
//
// 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:09 +0000
//
__int64 __fastcall BIO_new_ssl(__int64 a1, int a2)
{
void *v4; // x0
__int64 result; // x0
__int64 v6; // x19
__int64 v7; // x0
__int64 v8; // x20
v4 = BIO_f_ssl();
result = BIO_new(v4);
v6 = result;
if ( result )
{
v7 = SSL_new(a1);
v8 = v7;
if ( v7 )
{
if ( a2 )
SSL_set_connect_state(v7);
else
SSL_set_accept_state(v7);
BIO_ctrl(v6, 109, 1, v8);
return v6;
}
else
{
BIO_free(v6);
return 0;
}
}
return result;
}