//
// OBJ_create from 0x1040e70 to 0x1040f54 (228 bytes)
//
// 4 xrefs:
// > OBJ_create_objects @ 0x1041028
// > sub_108C57C @ 0x108c624
// > sub_108C57C @ 0x108c6e8
// > ??> @ 0xa8a78
//
// 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:29 +0000
//
__int64 __fastcall OBJ_create(char *a1, __int64 a2, __int64 a3)
{
int v6; // w2
int v7; // w3
int v8; // w4
int v9; // w5
int v10; // w6
int v11; // w7
unsigned int v12; // w19
char **v14; // x22
int v15; // w0
unsigned int v16; // w0
char vars0; // [xsp+0h] [xbp+0h]
if ( (unsigned int)OBJ_sn2nid(a2) || (v12 = (unsigned int)OBJ_ln2nid(a3)) != 0 )
{
ERR_put_error(8, 100, 102, (__int64)"crypto/objects/obj_dat.c", 689);
return 0;
}
else
{
v14 = OBJ_txt2obj(a1, 1, v6, v7, v8, v9, v10, v11, vars0);
if ( (unsigned int)OBJ_obj2nid((__int64)v14) )
{
ERR_put_error(8, 100, 102, (__int64)"crypto/objects/obj_dat.c", 698);
}
else
{
v15 = OBJ_new_nid(1);
*v14 = (char *)a2;
*((_DWORD *)v14 + 4) = v15;
v14[1] = (char *)a3;
v16 = OBJ_add_object((__int64)v14);
*v14 = nullptr;
v12 = v16;
v14[1] = nullptr;
}
ASN1_OBJECT_free((__int64)v14);
return v12;
}
}