//
// BIO_free_all from 0x7d110c to 0x7d113c (48 bytes)
//
// 17 xrefs:
// > SSL_set0_rbio @ 0x796728
// > SSL_set0_wbio @ 0x796758
// > SSL_free @ 0x799f78
// > SSL_free @ 0x799f80
// > BIO_dup_chain @ 0x7d11f4
// > PKCS7_dataInit @ 0x8270c8
// > PKCS7_dataInit @ 0x8270d0
// > PKCS7_dataDecode @ 0x827470
// > PKCS7_dataDecode @ 0x827478
// > PKCS7_dataDecode @ 0x827480
// > PKCS7_dataDecode @ 0x827488
// > SRP_VBASE_init @ 0x837a80
// > sub_858480 @ 0x858974
// > sub_858480 @ 0x858a4c
// > sub_858480 @ 0x858acc
// > cms_SignedData_init_bio @ 0x87774c
// > ??> @ 0x5ba7c
//
// 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
//
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;
}