//
// BIO_free_all from 0x9e5d0c to 0x9e5d3c (48 bytes)
//
// 17 xrefs:
// > SSL_set0_rbio @ 0x9ab32c
// > SSL_set0_wbio @ 0x9ab35c
// > SSL_free @ 0x9aeb7c
// > SSL_free @ 0x9aeb84
// > BIO_dup_chain @ 0x9e5df4
// > PKCS7_dataInit @ 0xa3bcc8
// > PKCS7_dataInit @ 0xa3bcd0
// > PKCS7_dataDecode @ 0xa3c070
// > PKCS7_dataDecode @ 0xa3c078
// > PKCS7_dataDecode @ 0xa3c080
// > PKCS7_dataDecode @ 0xa3c088
// > SRP_VBASE_init @ 0xa4c680
// > sub_A6D080 @ 0xa6d574
// > sub_A6D080 @ 0xa6d64c
// > sub_A6D080 @ 0xa6d6cc
// > cms_SignedData_init_bio @ 0xa8c34c
// > ??> @ 0x754fc
//
// 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:23 +0000
//
int __fastcall BIO_free_all(int result)
{
_DWORD *v1; // r3
int v2; // r5
_DWORD *v3; // r4
v1 = (_DWORD *)result;
if ( result )
{
do
{
v2 = v1[11];
v3 = (_DWORD *)v1[9];
result = BIO_free(v1);
if ( v2 > 1 )
break;
v1 = v3;
}
while ( v3 );
}
return result;
}