//
// CMS_RecipientInfo_kekri_get0_id from 0xa87fe0 to 0xa88098 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x83b8c
//
// 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_kekri_get0_id(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6)
{
int v6; // r4
_DWORD *v7; // r0
_DWORD *v8; // r3
int v9; // r3
int result; // r0
if ( *a1 == 2 )
{
v6 = a1[1];
v7 = *(_DWORD **)(v6 + 4);
if ( a2 )
*a2 = *(_DWORD *)(v6 + 8);
if ( a3 )
*a3 = *v7;
if ( a4 )
*a4 = v7[1];
if ( a5 )
{
v8 = (_DWORD *)v7[2];
if ( v8 )
v8 = (_DWORD *)*v8;
*a5 = v8;
}
if ( a6 )
{
v9 = v7[2];
result = 1;
if ( v9 )
v9 = *(_DWORD *)(v9 + 4);
*a6 = v9;
}
else
{
return 1;
}
}
else
{
ERR_put_error(46, 137, 123, (int)"crypto/cms/cms_env.c", 570);
return 0;
}
return result;
}