//
// OBJ_add_sigid from 0x1041420 to 0x1041558 (312 bytes)
//
// 1 xrefs:
// > ??> @ 0x821b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:30 +0000
//
__int64 __fastcall OBJ_add_sigid(int a1, int a2, int a3)
{
_DWORD *v6; // x20
__int64 v7; // x0
if ( !qword_1567FA0 )
{
qword_1567FA0 = OPENSSL_sk_new(sub_1041248);
if ( !qword_1567FA0 )
return 0;
}
if ( !qword_1567FA8 )
{
qword_1567FA8 = OPENSSL_sk_new(sub_1041260);
if ( !qword_1567FA8 )
return 0;
}
v6 = CRYPTO_malloc(&byte_9[3], (__int64)"crypto/objects/obj_xref.c", 106);
if ( !v6 )
return 0;
v7 = qword_1567FA0;
v6[2] = a3;
*v6 = a1;
v6[1] = a2;
if ( (unsigned int)OPENSSL_sk_push(v7, v6) )
{
if ( !(unsigned int)OPENSSL_sk_push(qword_1567FA8, v6) )
return 0;
OPENSSL_sk_sort(qword_1567FA0);
OPENSSL_sk_sort(qword_1567FA8);
return 1;
}
else
{
CRYPTO_free(v6, (__int64)"crypto/objects/obj_xref.c", 114);
return 0;
}
}