//
// BIO_ADDRINFO_protocol from 0x7cbf34 to 0x7cbf80 (76 bytes)
//
// 5 xrefs:
// > BIO_get_accept_socket @ 0x7cf090
// > sub_7D14BC @ 0x7d15fc
// > sub_7D1D44 @ 0x7d1ef0
// > sub_7D2244 @ 0x7d23f8
// > ??> @ 0x5f42c
//
// 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
//
int __fastcall BIO_ADDRINFO_protocol(_DWORD *a1)
{
int result; // r0
int v3; // r0
if ( !a1 )
return 0;
result = a1[3];
if ( !result && a1[1] != 1 )
{
v3 = a1[2];
if ( v3 == 1 )
{
return 6;
}
else if ( v3 == 2 )
{
return 17;
}
else
{
return 0;
}
}
return result;
}