//
// BIO_new_connect from 0xd786c0 to 0xd78718 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x42030
//
// 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
//
__int64 __fastcall BIO_new_connect(__int64 a1)
{
void *v2; // x0
__int64 result; // x0
_QWORD *v4; // x19
__int64 v5; // x20
v2 = BIO_s_connect();
result = BIO_new((__int64)v2);
v4 = (_QWORD *)result;
if ( result )
{
v5 = BIO_ctrl(result, 0x64u, 0, a1);
result = (__int64)v4;
if ( !v5 )
{
BIO_free(v4);
return 0;
}
}
return result;
}