//
// BIO_new_buffer_ssl_connect from 0x786680 to 0x7866d8 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x59f6c
//
// 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 BIO_new_buffer_ssl_connect(int a1)
{
int v2; // r0
int v3; // r4
int v4; // r5
int result; // r0
v2 = BIO_f_buffer();
v3 = BIO_new(v2);
if ( !v3 )
return 0;
v4 = BIO_new_ssl_connect(a1);
if ( !v4 || (result = BIO_push(v3, v4)) == 0 )
{
BIO_free(v3);
BIO_free(v4);
return 0;
}
return result;
}