//
// OPENSSL_LH_doall from 0x1031ed8 to 0x1031f4c (116 bytes)
//
// 7 xrefs:
// > OBJ_NAME_cleanup @ 0x103fa2c
// > obj_cleanup_int @ 0x10401e8
// > obj_cleanup_int @ 0x10401f8
// > obj_cleanup_int @ 0x1040208
// > _CONF_free_data @ 0x10a1540
// > engine_table_cleanup @ 0x10dc494
// > ??> @ 0xc8a40
//
// 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:16:21 +0000
//
__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;
}