//
// CMS_RecipientInfo_kari_get0_alg from 0xa890a4 to 0xa89110 (108 bytes)
//
// 5 xrefs:
// > sub_9F3D50 @ 0x9f3eb8
// > sub_9F3D50 @ 0x9f408c
// > sub_9F8980 @ 0x9f8c78
// > sub_9F8980 @ 0x9f8dac
// > ??> @ 0x7a3fc
//
// 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 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;
}