//
// OPENSSL_DIR_end from 0xa2f718 to 0xa2f770 (88 bytes)
//
// 2 xrefs:
// > SSL_add_dir_cert_subjects_to_stack @ 0x9a6d24
// > ??> @ 0x74f0c
//
// 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:08:03 +0000
//
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;
}