//
// BIO_free_all from 0xff534c to 0xff5388 (60 bytes)
//
// 17 xrefs:
// > SSL_set0_rbio @ 0xfbd9d0
// > SSL_set0_wbio @ 0xfbda18
// > SSL_free @ 0xfc0de4
// > SSL_free @ 0xfc0dec
// > BIO_dup_chain @ 0xff5464
// > PKCS7_dataInit @ 0x104a918
// > PKCS7_dataInit @ 0x104a920
// > PKCS7_dataDecode @ 0x104b038
// > PKCS7_dataDecode @ 0x104b040
// > PKCS7_dataDecode @ 0x104b048
// > PKCS7_dataDecode @ 0x104b050
// > SRP_VBASE_init @ 0x105dce4
// > sub_107D408 @ 0x107d82c
// > sub_107D408 @ 0x107d8b8
// > sub_107D408 @ 0x107d8f4
// > cms_SignedData_init_bio @ 0x10a0320
// > ??> @ 0xb3bd8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:48 +0000
//
__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;
}