//
// BIO_new_connect from 0xff6a20 to 0xff6a78 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x5e798
//
// 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:48 +0000
//
__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;
}