//
// CMS_RecipientInfo_kari_get0_alg from 0x8744a4 to 0x874510 (108 bytes)
//
// 5 xrefs:
// > sub_7DF150 @ 0x7df2b8
// > sub_7DF150 @ 0x7df48c
// > sub_7E3D80 @ 0x7e4078
// > sub_7E3D80 @ 0x7e41ac
// > ??> @ 0x6097c
//
// 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
//
int __fastcall CMS_RecipientInfo_kari_get0_alg(_DWORD *a1, _DWORD *a2, _DWORD *a3)
{
int result; // r0
if ( *a1 == 1 )
{
if ( a2 )
*a2 = *(_DWORD *)(a1[1] + 12);
if ( a3 )
a2 = (_DWORD *)a1[1];
result = 1;
if ( a3 )
*a3 = a2[2];
}
else
{
ERR_put_error(46, 175, 181, (int)"crypto/cms/cms_kari.c", 28);
return 0;
}
return result;
}