//
// CMS_RecipientEncryptedKey_get0_id from 0xa892f0 to 0xa893b8 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x83dec
//
// 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_RecipientEncryptedKey_get0_id(int **a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6)
{
int *v6; // r12
int result; // r0
v6 = *a1;
result = **a1;
if ( !result )
{
if ( a5 )
*a5 = *(_DWORD *)v6[1];
if ( a6 )
*a6 = *(_DWORD *)(v6[1] + 4);
if ( a2 )
*a2 = 0;
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
return 1;
}
if ( result != 1 )
return 0;
if ( a2 )
*a2 = *(_DWORD *)v6[1];
if ( a3 )
*a3 = *(_DWORD *)(v6[1] + 4);
if ( a4 )
*a4 = *(_DWORD *)(v6[1] + 8);
if ( a5 )
*a5 = 0;
if ( !a6 )
return 1;
*a6 = 0;
return result;
}