//
// OPENSSL_LH_doall_arg from 0x1031f4c to 0x1031fc8 (124 bytes)
//
// 7 xrefs:
// > SSL_CTX_flush_sessions @ 0xfc5630
// > OBJ_NAME_do_all @ 0x103f900
// > _CONF_free_data @ 0x10a1530
// > sub_10A16FC @ 0x10a1714
// > engine_table_unregister @ 0x10dc448
// > engine_table_doall @ 0x10dc5fc
// > ??> @ 0xcadf8
//
// 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_arg(__int64 result, __int64 (__fastcall *a2)(_QWORD, __int64), __int64 a3)
{
int v3; // w22
_QWORD *v6; // x24
__int64 v7; // x23
_QWORD *v8; // x3
_QWORD *v9; // x19
if ( result )
{
v3 = *(_DWORD *)(result + 24) - 1;
if ( v3 >= 0 )
{
v6 = (_QWORD *)result;
v7 = 8LL * v3;
do
{
v8 = *(_QWORD **)(*v6 + v7);
if ( v8 )
{
do
{
v9 = (_QWORD *)v8[1];
result = a2(*v8, a3);
v8 = v9;
}
while ( v9 );
}
--v3;
v7 -= 8;
}
while ( v3 != -1 );
}
}
return result;
}