//
// PKCS12_SAFEBAG_get_bag_nid from 0xa3a910 to 0xa3a940 (48 bytes)
//
// 3 xrefs:
// > sub_A39418 @ 0xa39504
// > PKCS12_parse @ 0xa397fc
// > ??> @ 0x7f1dc
//
// 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:10 +0000
//
char *__fastcall PKCS12_SAFEBAG_get_bag_nid(int a1)
{
if ( (unsigned int)(PKCS12_SAFEBAG_get_nid((int *)a1) - 152) > 2 )
return (char *)-1;
else
return OBJ_obj2nid(**(_DWORD **)(a1 + 4));
}