//
// BIO_ADDRINFO_free from 0xd71fd8 to 0xd72050 (120 bytes)
//
// 8 xrefs:
// > BIO_lookup @ 0xd72374
// > BIO_get_host_ip @ 0xd74c58
// > BIO_get_port @ 0xd74d70
// > BIO_get_accept_socket @ 0xd74eb0
// > sub_D777D0 @ 0xd779d4
// > sub_D777D0 @ 0xd77b24
// > BIO_CONNECT_free @ 0xd785f8
// > ??> @ 0x76de8
//
// 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
//
void __fastcall BIO_ADDRINFO_free(struct addrinfo *a1)
{
struct addrinfo *v1; // x19
struct addrinfo *ai_next; // x21
struct addrinfo *v3; // x0
v1 = a1;
if ( a1 )
{
if ( a1->ai_family == 1 )
{
do
{
ai_next = v1->ai_next;
CRYPTO_free(v1->ai_addr, "crypto/bio/b_addr.c", 436);
v3 = v1;
v1 = ai_next;
CRYPTO_free(v3, "crypto/bio/b_addr.c", 437);
}
while ( ai_next );
}
else
{
freeaddrinfo(a1);
}
}
}