//
// OPENSSL_DIR_end from 0x81ab18 to 0x81ab70 (88 bytes)
//
// 2 xrefs:
// > SSL_add_dir_cert_subjects_to_stack @ 0x792120
// > ??> @ 0x5b48c
//
// 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 OPENSSL_DIR_end(DIR ***a1)
{
int v2; // r5
if ( !a1 || !*a1 )
{
LABEL_6:
*(_DWORD *)_errno() = 22;
return 0;
}
v2 = closedir(**a1);
free(*a1);
if ( v2 != -1 )
{
if ( !v2 )
return 1;
goto LABEL_6;
}
return 0;
}