//
// OBJ_NAME_remove from 0x81bc30 to 0x81bcd8 (168 bytes)
//
// 2 xrefs:
// > sub_81BCE0 @ 0x81bd0c
// > ??> @ 0x6427c
//
// 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 OBJ_NAME_remove(int a1, int a2)
{
_DWORD *v2; // r5
int v4; // r0
_DWORD v5[4]; // [sp+0h] [bp-14h] BYREF
if ( !dword_AD4508 )
return 0;
v5[0] = a2 & 0xFFFF7FFF;
v5[2] = a1;
v2 = (_DWORD *)OPENSSL_LH_delete((int *)dword_AD4508, (int)v5);
if ( !v2 )
return 0;
if ( dword_AD4504 )
{
if ( OPENSSL_sk_num(dword_AD4504) > *v2 )
{
v4 = OPENSSL_sk_value(dword_AD4504, *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;
}