//
// PKCS12_unpack_p7encdata from 0x10e3984 to 0x10e39f0 (108 bytes)
//
// 2 xrefs:
// > PKCS12_parse @ 0x10487d0
// > ??> @ 0xb4f40
//
// 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:17:50 +0000
//
__int64 __fastcall PKCS12_unpack_p7encdata(__int64 a1, __int64 a2, unsigned int a3)
{
if ( (unsigned int)OBJ_obj2nid(*(_QWORD *)(a1 + 24)) == 26 )
return PKCS12_item_decrypt_d2i(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL) + 8LL),
&PKCS12_SAFEBAGS_it,
a2,
a3,
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL) + 16LL),
1);
else
return 0;
}