//
// PKCS12_unpack_p7encdata from 0xad0488 to 0xad04e0 (88 bytes)
//
// 2 xrefs:
// > PKCS12_parse @ 0xa39950
// > ??> @ 0x7f26c
//
// 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:09:23 +0000
//
int __fastcall PKCS12_unpack_p7encdata(int a1, int a2, int a3)
{
if ( OBJ_obj2nid(*(_DWORD *)(a1 + 16)) == (_BYTE *)&dword_18 + 2 )
return PKCS12_item_decrypt_d2i(
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 4) + 4),
PKCS12_SAFEBAGS_it,
a2,
a3,
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 20) + 4) + 8),
1);
else
return 0;
}