//
// BIO_ADDRINFO_free from 0x9e0ba4 to 0x9e0bfc (88 bytes)
//
// 8 xrefs:
// > BIO_lookup @ 0x9e1028
// > BIO_get_host_ip @ 0x9e39c8
// > BIO_get_port @ 0x9e3aec
// > BIO_get_accept_socket @ 0x9e3c38
// > sub_9E6534 @ 0x9e6734
// > sub_9E6534 @ 0x9e6864
// > BIO_CONNECT_free @ 0x9e73f0
// > ??> @ 0x78eec
//
// 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
//
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);
}
}
}