//
// OPENSSL_sk_delete_ptr from 0x105ea30 to 0x105ea84 (84 bytes)
//
// 5 xrefs:
// > sub_106A0CC @ 0x106a730
// > _CONF_add_string @ 0x10a139c
// > engine_table_register @ 0x10dc2c0
// > engine_table_register @ 0x10dc364
// > ??> @ 0xfb128
//
// 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:49 +0000
//
__int64 __fastcall OPENSSL_sk_delete_ptr(__int64 a1, __int64 a2)
{
_QWORD *v2; // x3
__int64 *v3; // x3
int v4; // w2
__int64 v5; // t1
if ( *(int *)a1 <= 0 )
return 0;
v2 = *(_QWORD **)(a1 + 8);
if ( *v2 != a2 )
{
v3 = v2 + 1;
v4 = 0;
while ( ++v4 != *(_DWORD *)a1 )
{
v5 = *v3++;
if ( v5 == a2 )
return OPENSSL_sk_delete((int *)a1, v4);
}
return 0;
}
v4 = 0;
return OPENSSL_sk_delete((int *)a1, v4);
}