//
// OPENSSL_LH_doall from 0xdb3b78 to 0xdb3bec (116 bytes)
//
// 7 xrefs:
// > OBJ_NAME_cleanup @ 0xdc16cc
// > obj_cleanup_int @ 0xdc1e88
// > obj_cleanup_int @ 0xdc1e98
// > obj_cleanup_int @ 0xdc1ea8
// > _CONF_free_data @ 0xe23240
// > engine_table_cleanup @ 0xe5e494
// > ??> @ 0x97f98
//
// 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 OPENSSL_LH_doall(__int64 result, __int64 (__fastcall *a2)(_QWORD))
{
int v2; // w21
_QWORD *v4; // x23
__int64 v5; // x22
_QWORD *v6; // x2
_QWORD *v7; // x19
if ( result )
{
v2 = *(_DWORD *)(result + 24) - 1;
if ( v2 >= 0 )
{
v4 = (_QWORD *)result;
v5 = 8LL * v2;
do
{
v6 = *(_QWORD **)(*v4 + v5);
if ( v6 )
{
do
{
v7 = (_QWORD *)v6[1];
result = a2(*v6);
v6 = v7;
}
while ( v7 );
}
--v2;
v5 -= 8;
}
while ( v2 != -1 );
}
}
return result;
}