//
// CMS_get0_eContentType from 0xe1fc54 to 0xe1fd10 (188 bytes)
//
// 2 xrefs:
// > SMIME_write_CMS @ 0xe1ed54
// > ??> @ 0x6e178
//
// 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_get0_eContentType(__int64 *a1)
{
int v2; // w0
__int64 result; // x0
__int64 v4; // x1
v2 = OBJ_obj2nid(*a1);
if ( v2 == 25 )
goto LABEL_13;
if ( v2 <= 25 )
{
if ( v2 != 22 )
{
if ( v2 != 23 )
goto LABEL_6;
goto LABEL_9;
}
LABEL_13:
v4 = *(_QWORD *)(a1[1] + 16);
goto LABEL_10;
}
if ( v2 == 205 )
{
v4 = *(_QWORD *)(a1[1] + 40);
goto LABEL_10;
}
if ( v2 == 786 )
{
LABEL_9:
v4 = *(_QWORD *)(a1[1] + 24);
goto LABEL_10;
}
if ( v2 != 26 )
{
LABEL_6:
ERR_put_error(46, 130, 152, (__int64)"crypto/cms/cms_lib.c", 218);
return 0;
}
v4 = *(_QWORD *)(a1[1] + 8);
LABEL_10:
result = 0;
if ( v4 )
return *(_QWORD *)v4;
return result;
}