//
// CMS_RecipientInfo_ktri_get0_algs from 0x109bce0 to 0x109bd54 (116 bytes)
//
// 3 xrefs:
// > sub_1051350 @ 0x1051504
// > sub_1051350 @ 0x1051710
// > ??> @ 0x978e8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:28 +0000
//
__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;
}