//
// CMS_get0_eContentType from 0x109df54 to 0x109e010 (188 bytes)
//
// 2 xrefs:
// > SMIME_write_CMS @ 0x109d054
// > ??> @ 0x948e8
//
// 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:17:30 +0000
//
__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;
}