//
// PKCS12_get0_mac from 0xdca874 to 0xdca908 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0xb8de8
//
// 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
//
_QWORD *__fastcall PKCS12_get0_mac(_QWORD *result, _QWORD *a2, _QWORD *a3, _QWORD *a4, __int64 a5)
{
_QWORD *v5; // x5
v5 = *(_QWORD **)(a5 + 8);
if ( v5 )
{
result = (_QWORD *)X509_SIG_get0(*v5);
if ( a3 )
{
result = *(_QWORD **)(*(_QWORD *)(a5 + 8) + 8LL);
*a3 = result;
}
if ( a4 )
{
result = *(_QWORD **)(*(_QWORD *)(a5 + 8) + 16LL);
*a4 = result;
}
}
else
{
if ( result )
*result = 0;
if ( a2 )
*a2 = 0;
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
}
return result;
}