//
// cms_EncryptedContent_init from 0x8cf924 to 0x8cf998 (116 bytes)
//
// 3 xrefs:
// > CMS_EnvelopedData_create @ 0x872e98
// > CMS_EncryptedData_set1_key @ 0x8cfa14
// > ??> @ 0x6a07c
//
// 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 cms_EncryptedContent_init(char ***a1, char **a2, const void *a3, void *a4)
{
char **v8; // r0
int v9; // r12
char **v10; // r0
a1[3] = a2;
if ( a3 )
{
v8 = (char **)CRYPTO_malloc(a4, (int)"crypto/cms/cms_enc.c", 171);
v9 = (int)v8;
a1[4] = v8;
if ( !v8 )
return v9;
memcpy(v8, a3, (size_t)a4);
}
a1[5] = (char **)a4;
if ( !a2 )
return 1;
v10 = OBJ_nid2obj(0x15u);
v9 = 1;
*a1 = v10;
return v9;
}