//
// OPENSSL_LH_doall_arg from 0xa215e4 to 0xa21648 (100 bytes)
//
// 7 xrefs:
// > SSL_CTX_flush_sessions @ 0x9b35f4
// > OBJ_NAME_do_all @ 0xa30938
// > _CONF_free_data @ 0xa8d5d4
// > sub_A8D764 @ 0xa8d778
// > engine_table_unregister @ 0xac960c
// > engine_table_doall @ 0xac97dc
// > ??> @ 0x7665c
//
// 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_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;
}