//
// BIO_new_buffer_ssl_connect from 0x99b284 to 0x99b2dc (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x739ec
//
// 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:44 +0000
//
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;
}