//
// OPENSSL_LH_doall_arg from 0x80c9e4 to 0x80ca48 (100 bytes)
//
// 7 xrefs:
// > SSL_CTX_flush_sessions @ 0x79e9f0
// > OBJ_NAME_do_all @ 0x81bd38
// > _CONF_free_data @ 0x8789d4
// > sub_878B64 @ 0x878b78
// > engine_table_unregister @ 0x8b460c
// > engine_table_doall @ 0x8b47dc
// > ??> @ 0x5cbdc
//
// 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_LH_doall_arg(int result, int (__fastcall *a2)(_DWORD, int), int a3)
{
int v3; // r3
int v4; // r8
_DWORD *v7; // r9
int v8; // r7
_DWORD *v9; // r3
_DWORD *v10; // r4
if ( result )
{
v3 = *(_DWORD *)(result + 12);
v4 = v3 - 1;
if ( v3 - 1 >= 0 )
{
v7 = (_DWORD *)result;
v8 = 4 * (v3 + 0x3FFFFFFF);
do
{
v9 = *(_DWORD **)(*v7 + v8);
if ( v9 )
{
do
{
v10 = (_DWORD *)v9[1];
result = a2(*v9, a3);
v9 = v10;
}
while ( v10 );
}
--v4;
v8 -= 4;
}
while ( v4 != -1 );
}
}
return result;
}