//
// BIO_ADDRINFO_protocol from 0x9e0b34 to 0x9e0b80 (76 bytes)
//
// 5 xrefs:
// > BIO_get_accept_socket @ 0x9e3c90
// > sub_9E60BC @ 0x9e61fc
// > sub_9E6944 @ 0x9e6af0
// > sub_9E6E44 @ 0x9e6ff8
// > ??> @ 0x78eac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:20 +0000
//
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;
}