//
// BIO_ADDRINFO_free from 0x7cbfa4 to 0x7cbffc (88 bytes)
//
// 8 xrefs:
// > BIO_lookup @ 0x7cc428
// > BIO_get_host_ip @ 0x7cedc8
// > BIO_get_port @ 0x7ceeec
// > BIO_get_accept_socket @ 0x7cf038
// > sub_7D1934 @ 0x7d1b34
// > sub_7D1934 @ 0x7d1c64
// > BIO_CONNECT_free @ 0x7d27f0
// > ??> @ 0x5f46c
//
// 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; // r4
struct addrinfo *ai_next; // r5
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);
CRYPTO_free(v1, "crypto/bio/b_addr.c", 437);
v1 = ai_next;
}
while ( ai_next );
}
else
{
freeaddrinfo(a1);
}
}
}