//
// CMS_set1_eContentType from 0xe1fd10 to 0xe1fe10 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0x3fdb0
//
// 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
//
__int64 __fastcall CMS_set1_eContentType(__int64 *a1, __int64 a2)
{
int v3; // w0
__int64 *v5; // x19
__int64 v6; // x20
v3 = OBJ_obj2nid(*a1);
if ( v3 == 25 )
goto LABEL_14;
if ( v3 <= 25 )
{
if ( v3 != 22 )
{
if ( v3 != 23 )
goto LABEL_6;
goto LABEL_9;
}
LABEL_14:
v5 = *(__int64 **)(a1[1] + 16);
goto LABEL_10;
}
if ( v3 == 205 )
{
v5 = *(__int64 **)(a1[1] + 40);
goto LABEL_10;
}
if ( v3 == 786 )
{
LABEL_9:
v5 = *(__int64 **)(a1[1] + 24);
goto LABEL_10;
}
if ( v3 != 26 )
{
LABEL_6:
ERR_put_error(46, 130, 152, (__int64)"crypto/cms/cms_lib.c", 218);
return 0;
}
v5 = *(__int64 **)(a1[1] + 8);
LABEL_10:
if ( v5 )
{
if ( !a2 )
return 1;
v6 = OBJ_dup(a2);
if ( v6 )
{
ASN1_OBJECT_free(*v5);
*v5 = v6;
return 1;
}
}
return 0;
}