//
// BIO_free_all from 0xd76fec to 0xd77028 (60 bytes)
//
// 17 xrefs:
// > SSL_set0_rbio @ 0xd3f67c
// > SSL_set0_wbio @ 0xd3f6c4
// > SSL_free @ 0xd42a90
// > SSL_free @ 0xd42a98
// > BIO_dup_chain @ 0xd77104
// > PKCS7_dataInit @ 0xdcc5b8
// > PKCS7_dataInit @ 0xdcc5c0
// > PKCS7_dataDecode @ 0xdcccd8
// > PKCS7_dataDecode @ 0xdccce0
// > PKCS7_dataDecode @ 0xdccce8
// > PKCS7_dataDecode @ 0xdcccf0
// > SRP_VBASE_init @ 0xddf9a4
// > sub_DFF0C8 @ 0xdff4ec
// > sub_DFF0C8 @ 0xdff578
// > sub_DFF0C8 @ 0xdff5b4
// > cms_SignedData_init_bio @ 0xe22020
// > ??> @ 0x87870
//
// 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
//
__int64 __fastcall BIO_free_all(__int64 result)
{
__int64 v1; // x1
int v2; // w20
__int64 v3; // x19
v1 = result;
do
{
if ( !v1 )
break;
v2 = *(_DWORD *)(v1 + 72);
v3 = *(_QWORD *)(v1 + 56);
result = BIO_free((_QWORD *)v1);
v1 = v3;
}
while ( v2 <= 1 );
return result;
}