//
// OBJ_add_sigid from 0x81d4e8 to 0x81d5f0 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x6430c
//
// 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_add_sigid(int a1, int a2, int a3)
{
_DWORD *v6; // r0
void *v7; // r4
if ( !dword_AD4514 )
{
dword_AD4514 = OPENSSL_sk_new(sub_81D30C);
if ( !dword_AD4514 )
return 0;
}
if ( !dword_AD4518 )
{
dword_AD4518 = OPENSSL_sk_new(sub_81D324);
if ( !dword_AD4518 )
return 0;
}
v6 = CRYPTO_malloc(&byte_9[3], (int)"crypto/objects/obj_xref.c", 106);
v7 = v6;
if ( !v6 )
return 0;
v6[1] = a2;
v6[2] = a3;
*v6 = a1;
if ( OPENSSL_sk_push(dword_AD4514, v6) )
{
if ( !OPENSSL_sk_push(dword_AD4518, v7) )
return 0;
OPENSSL_sk_sort(dword_AD4514);
OPENSSL_sk_sort(dword_AD4518);
return 1;
}
else
{
CRYPTO_free(v7, (int)"crypto/objects/obj_xref.c", 114);
return 0;
}
}