//
// sub_AC9330 from 0xac9330 to 0xac9388 (88 bytes)
//
// 3 xrefs:
// > engine_table_unregister @ 0xac9600
// > engine_table_unregister @ 0xac9608
// > ??> @ 0xac9620
//
// 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:09:19 +0000
//
int __fastcall sub_AC9330(int *a1, int a2)
{
int result; // r0
while ( 1 )
{
result = OPENSSL_sk_find(a1[1], a2);
if ( result < 0 )
break;
OPENSSL_sk_delete((int *)a1[1], result);
a1[3] = 0;
}
if ( a1[2] == a2 )
{
result = engine_unlocked_finish(a2, 0);
a1[2] = 0;
}
return result;
}