//
// OPENSSL_sk_delete_ptr from 0x838834 to 0x83888c (88 bytes)
//
// 4 xrefs:
// > sub_843DE0 @ 0x8441ec
// > _CONF_add_string @ 0x87883c
// > engine_table_register @ 0x8b4488
// > ??> @ 0x667bc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall OPENSSL_sk_delete_ptr(int *a1, int a2)
{
_DWORD *v2; // r2
int v3; // r3
int v4; // t1
if ( *a1 <= 0 )
return 0;
v2 = (_DWORD *)a1[1];
if ( *v2 != a2 )
{
v3 = 0;
while ( ++v3 != *a1 )
{
v4 = v2[1];
++v2;
if ( v4 == a2 )
return OPENSSL_sk_delete(a1, v3);
}
return 0;
}
v3 = 0;
return OPENSSL_sk_delete(a1, v3);
}