//
// OBJ_add_sigid from 0xa320e8 to 0xa321f0 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x7dd8c
//
// 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:05 +0000
//
int __fastcall OBJ_add_sigid(int a1, int a2, int a3)
{
_DWORD *v6; // r0
void *v7; // r4
if ( !dword_D357A0 )
{
dword_D357A0 = OPENSSL_sk_new(sub_A31F0C);
if ( !dword_D357A0 )
return 0;
}
if ( !dword_D357A4 )
{
dword_D357A4 = OPENSSL_sk_new(sub_A31F24);
if ( !dword_D357A4 )
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_D357A0, v6) )
{
if ( !OPENSSL_sk_push(dword_D357A4, v7) )
return 0;
OPENSSL_sk_sort(dword_D357A0);
OPENSSL_sk_sort(dword_D357A4);
return 1;
}
else
{
CRYPTO_free(v7, (int)"crypto/objects/obj_xref.c", 114);
return 0;
}
}