//
// OBJ_NAME_remove from 0xa30830 to 0xa308d8 (168 bytes)
//
// 2 xrefs:
// > sub_A308E0 @ 0xa3090c
// > ??> @ 0x7dcfc
//
// 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:08:04 +0000
//
int __fastcall OBJ_NAME_remove(int a1, int a2)
{
_DWORD *v2; // r5
int v4; // r0
_DWORD v5[4]; // [sp+0h] [bp-14h] BYREF
if ( !dword_D35794 )
return 0;
v5[0] = a2 & 0xFFFF7FFF;
v5[2] = a1;
v2 = (_DWORD *)OPENSSL_LH_delete((int *)dword_D35794, (int)v5);
if ( !v2 )
return 0;
if ( dword_D35790 )
{
if ( OPENSSL_sk_num(dword_D35790) > *v2 )
{
v4 = OPENSSL_sk_value(dword_D35790, *v2);
(*(void (__fastcall **)(_DWORD, _DWORD, _DWORD))(v4 + 8))(v2[2], *v2, v2[3]);
}
}
CRYPTO_free(v2, (int)"crypto/objects/o_names.c", 255);
return 1;
}