//
// BIO_new_connect from 0x7d2898 to 0x7d28e4 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f96c
//
// 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
//
_DWORD *__fastcall BIO_new_connect(int a1)
{
void *v2; // r0
_DWORD *v3; // r0
_DWORD *v4; // r4
int v5; // r5
_DWORD *result; // r0
v2 = BIO_s_connect();
v3 = BIO_new((int)v2);
v4 = v3;
if ( !v3 )
return nullptr;
v5 = BIO_ctrl(v3, 100, 0, a1);
result = v4;
if ( !v5 )
{
BIO_free(v4);
return nullptr;
}
return result;
}