//
// X509v3_addr_get_afi from 0x84dfac to 0x84dfdc (48 bytes)
//
// 7 xrefs:
// > sub_84DFDC @ 0x84e05c
// > X509v3_addr_is_canonical @ 0x84e868
// > X509v3_addr_canonize @ 0x84eef4
// > X509v3_addr_subset @ 0x84ffac
// > X509v3_addr_validate_path @ 0x8501ac
// > X509v3_addr_validate_resource_set @ 0x8505e4
// > ??> @ 0x6875c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_DWORD *__fastcall X509v3_addr_get_afi(_DWORD *result)
{
unsigned __int8 *v1; // r3
if ( result )
{
result = (_DWORD *)*result;
if ( result )
{
v1 = (unsigned __int8 *)result[2];
if ( v1 )
return (_DWORD *)(v1[1] | (*v1 << 8));
else
return nullptr;
}
}
return result;
}