//
// CMS_RecipientInfo_kekri_get0_id from 0xe1ddfc to 0xe1deb8 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0xa83c0
//
// 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_kekri_get0_id(
__int64 a1,
_QWORD *a2,
_QWORD *a3,
_QWORD *a4,
_QWORD *a5,
_QWORD *a6)
{
__int64 v6; // x6
_QWORD *v7; // x0
_QWORD *v8; // x1
__int64 v9; // x0
__int64 v10; // x1
__int64 result; // x0
if ( *(_DWORD *)a1 == 2 )
{
v6 = *(_QWORD *)(a1 + 8);
v7 = *(_QWORD **)(v6 + 8);
if ( a2 )
*a2 = *(_QWORD *)(v6 + 16);
if ( a3 )
*a3 = *v7;
if ( a4 )
*a4 = v7[1];
if ( a5 )
{
v8 = (_QWORD *)v7[2];
if ( v8 )
*a5 = *v8;
else
*a5 = 0;
}
if ( a6 )
{
v9 = v7[2];
if ( v9 )
{
v10 = *(_QWORD *)(v9 + 8);
result = 1;
*a6 = v10;
}
else
{
*a6 = 0;
return 1;
}
}
else
{
return 1;
}
}
else
{
ERR_put_error(46, 137, 123, (__int64)"crypto/cms/cms_env.c", 570);
return 0;
}
return result;
}