//
// CMS_set1_eContentType from 0xa8a004 to 0xa8a0f4 (240 bytes)
//
// 1 xrefs:
// > ??> @ 0x83ecc
//
// 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:54 +0000
//
int __fastcall CMS_set1_eContentType(int *a1, const char **a2)
{
char *v4; // r0
const char ***v6; // r4
const char **v7; // r5
v4 = OBJ_obj2nid(*a1);
if ( v4 == (_BYTE *)&dword_18 + 1 )
goto LABEL_15;
if ( (int)v4 > 25 )
{
if ( v4 == (_BYTE *)&dword_CC + 1 )
{
v6 = *(const char ****)(a1[1] + 20);
goto LABEL_10;
}
if ( v4 != (_BYTE *)&stru_30C.st_value + 2 )
{
if ( v4 != (_BYTE *)&dword_18 + 2 )
{
LABEL_6:
ERR_put_error(46, 130, 152, (int)"crypto/cms/cms_lib.c", 218);
return 0;
}
v6 = *(const char ****)(a1[1] + 4);
goto LABEL_10;
}
goto LABEL_9;
}
if ( v4 == (_BYTE *)&dword_14 + 2 )
{
LABEL_15:
v6 = *(const char ****)(a1[1] + 8);
goto LABEL_10;
}
if ( v4 != (_BYTE *)&dword_14 + 3 )
goto LABEL_6;
LABEL_9:
v6 = *(const char ****)(a1[1] + 12);
LABEL_10:
if ( !v6 )
return 0;
if ( !a2 )
return 1;
v7 = OBJ_dup(a2);
if ( !v7 )
return 0;
ASN1_OBJECT_free(*v6);
*v6 = v7;
return 1;
}