//
// CMS_RecipientInfo_ktri_get0_algs from 0xe1d9e0 to 0xe1da54 (116 bytes)
//
// 3 xrefs:
// > sub_DD2FF0 @ 0xdd31a4
// > sub_DD2FF0 @ 0xdd33b0
// > ??> @ 0x708d8
//
// 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_RecipientInfo_ktri_get0_algs(__int64 a1, _QWORD *a2, _QWORD *a3, _QWORD *a4)
{
_QWORD *v4; // x0
__int64 v5; // x1
__int64 result; // x0
if ( *(_DWORD *)a1 )
{
ERR_put_error(46, 142, 124, (__int64)"crypto/cms/cms_env.c", 238);
return 0;
}
else
{
v4 = *(_QWORD **)(a1 + 8);
if ( a2 )
*a2 = v4[5];
if ( a3 )
*a3 = v4[4];
if ( a4 )
{
v5 = v4[2];
result = 1;
*a4 = v5;
}
else
{
return 1;
}
}
return result;
}