//
// OPENSSL_LH_doall from 0xa21588 to 0xa215e4 (92 bytes)
//
// 7 xrefs:
// > OBJ_NAME_cleanup @ 0xa30a68
// > obj_cleanup_int @ 0xa30d68
// > obj_cleanup_int @ 0xa30d78
// > obj_cleanup_int @ 0xa30d88
// > _CONF_free_data @ 0xa8d5e4
// > engine_table_cleanup @ 0xac9650
// > ??> @ 0x7db7c
//
// 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:07:55 +0000
//
int __fastcall OPENSSL_LH_doall(int result, int (__fastcall *a2)(_DWORD))
{
int v2; // r3
int v3; // r7
_DWORD *v5; // r8
int v6; // r6
_DWORD *v7; // r3
_DWORD *v8; // r4
if ( result )
{
v2 = *(_DWORD *)(result + 12);
v3 = v2 - 1;
if ( v2 - 1 >= 0 )
{
v5 = (_DWORD *)result;
v6 = 4 * (v2 + 0x3FFFFFFF);
do
{
v7 = *(_DWORD **)(*v5 + v6);
if ( v7 )
{
do
{
v8 = (_DWORD *)v7[1];
result = a2(*v7);
v7 = v8;
}
while ( v8 );
}
--v3;
v6 -= 4;
}
while ( v3 != -1 );
}
}
return result;
}