//
// sub_10DC148 from 0x10dc148 to 0x10dc1b4 (108 bytes)
//
// 2 xrefs:
// > engine_table_unregister @ 0x10dc43c
// > engine_table_unregister @ 0x10dc444
//
// 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:17:46 +0000
//
__int64 __fastcall sub_10DC148(__int64 a1, __int64 a2)
{
int v4; // w1
__int64 result; // x0
while ( 1 )
{
v4 = OPENSSL_sk_find(*(_QWORD *)(a1 + 8), a2);
if ( v4 < 0 )
break;
OPENSSL_sk_delete(*(int **)(a1 + 8), v4);
*(_DWORD *)(a1 + 24) = 0;
}
result = *(_QWORD *)(a1 + 16);
if ( result == a2 )
{
result = engine_unlocked_finish(a2, 0);
*(_QWORD *)(a1 + 16) = 0;
}
return result;
}