//
// PKCS12_SAFEBAG_get_bag_nid from 0x10498c0 to 0x1049904 (68 bytes)
//
// 3 xrefs:
// > sub_1048408 @ 0x10484f4
// > PKCS12_parse @ 0x10488c4
// > ??> @ 0xd6078
//
// 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:35 +0000
//
__int64 __fastcall PKCS12_SAFEBAG_get_bag_nid(__int64 a1)
{
if ( (unsigned int)PKCS12_SAFEBAG_get_nid((__int64 *)a1) - 152 > 2 )
return 0xFFFFFFFFLL;
else
return OBJ_obj2nid(**(_QWORD **)(a1 + 8));
}