//
// SMIME_write_CMS from 0xa89020 to 0xa89090 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x83d5c
//
// 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:53 +0000
//
int __fastcall SMIME_write_CMS(int a1, int *a2, int a3, int a4)
{
char *v8; // r5
int v9; // r0
char *v10; // r0
int v11; // r3
v8 = OBJ_obj2nid(*a2);
v9 = CMS_get0_eContentType(a2);
v10 = OBJ_obj2nid(v9);
if ( v8 == (_BYTE *)&dword_14 + 2 )
v11 = *(_DWORD *)(a2[1] + 4);
else
v11 = 0;
return SMIME_write_ASN1(a1, a2, a3, a4, v8, v10, v11, CMS_ContentInfo_it);
}