//
// CMS_RecipientEncryptedKey_get0_id from 0xe1efc4 to 0xe1f064 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x6ae30
//
// 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_RecipientEncryptedKey_get0_id(
unsigned int **a1,
_QWORD *a2,
_QWORD *a3,
_QWORD *a4,
_QWORD *a5,
_QWORD *a6)
{
__int64 v6; // x6
__int64 result; // x0
v6 = (__int64)*a1;
result = **a1;
if ( !(_DWORD)result )
{
if ( a5 )
*a5 = **(_QWORD **)(v6 + 8);
if ( a6 )
*a6 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL);
if ( a2 )
*a2 = 0;
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
return 1;
}
if ( (_DWORD)result != 1 )
return 0;
if ( a2 )
*a2 = **(_QWORD **)(v6 + 8);
if ( a3 )
*a3 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL);
if ( a4 )
*a4 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 16LL);
if ( a5 )
*a5 = 0;
if ( !a6 )
return 1;
*a6 = 0;
return result;
}