//
// PKCS12_get0_mac from 0x1048bd4 to 0x1048c68 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0xf1468
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:34 +0000
//
_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;
}