//
// CMS_RecipientInfo_kari_get0_alg from 0xe1eda8 to 0xe1ee10 (104 bytes)
//
// 5 xrefs:
// > sub_D869F4 @ 0xd86b94
// > sub_D869F4 @ 0xd86cfc
// > sub_D8B4C0 @ 0xd8b7d4
// > sub_D8B4C0 @ 0xd8b988
// > ??> @ 0x44ac0
//
// 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_kari_get0_alg(unsigned int *a1, _QWORD *a2, _QWORD *a3)
{
__int64 result; // x0
result = *a1;
if ( (_DWORD)result == 1 )
{
if ( a2 )
*a2 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 24LL);
if ( a3 )
*a3 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 16LL);
}
else
{
ERR_put_error(46, 175, 181, (__int64)"crypto/cms/cms_kari.c", 28);
return 0;
}
return result;
}