//
// PKCS12_get0_mac from 0xa39c18 to 0xa39c98 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x7f29c
//
// 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:09 +0000
//
_DWORD *__fastcall PKCS12_get0_mac(_DWORD *result, _DWORD *a2, _DWORD *a3, _DWORD *a4, int a5)
{
_DWORD *v5; // r12
v5 = *(_DWORD **)(a5 + 4);
if ( v5 )
{
result = (_DWORD *)X509_SIG_get0(*v5, a2, result);
if ( a3 )
*a3 = *(_DWORD *)(*(_DWORD *)(a5 + 4) + 4);
if ( a4 )
*a4 = *(_DWORD *)(*(_DWORD *)(a5 + 4) + 8);
}
else
{
if ( result )
*result = 0;
if ( a2 )
*a2 = 0;
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
}
return result;
}