//
// BIO_ADDRINFO_protocol from 0xff02c4 to 0xff0314 (80 bytes)
//
// 5 xrefs:
// > BIO_get_accept_socket @ 0xff3268
// > sub_FF571C @ 0xff5838
// > sub_FF5F74 @ 0xff60d0
// > sub_FF6400 @ 0xff655c
// > ??> @ 0x90298
//
// 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:45 +0000
//
__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;
}