//
// BIO_ADDRINFO_protocol from 0xd71f64 to 0xd71fb4 (80 bytes)
//
// 5 xrefs:
// > BIO_get_accept_socket @ 0xd74f08
// > sub_D773BC @ 0xd774d8
// > sub_D77C14 @ 0xd77d70
// > sub_D780A0 @ 0xd781fc
// > ??> @ 0x6a938
//
// 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_ADDRINFO_protocol(_DWORD *a1)
{
unsigned int v1; // w1
int v2; // w0
if ( !a1 )
return 0;
v1 = a1[3];
if ( v1 || a1[1] == 1 )
return v1;
v2 = a1[2];
if ( v2 != 1 )
{
if ( v2 == 2 )
return 17;
else
return 0;
}
return 6;
}