//
// X509v3_addr_get_range from 0x84e730 to 0x84e7ac (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x6879c
//
// 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
//
int __fastcall X509v3_addr_get_range(int *a1, int a2, char *a3, char *a4, int a5)
{
int v5; // r4
bool v7; // zf
_BOOL4 v8; // r12
if ( a2 == 1 )
{
v5 = 4;
}
else
{
if ( a2 != 2 )
return 0;
v5 = 16;
}
v7 = a3 == nullptr;
if ( a3 )
v7 = a1 == nullptr;
if ( v7 )
return 0;
v8 = a5 < v5;
if ( !a4 )
v8 = 1;
if ( v8 || (unsigned int)*a1 > 1 || !sub_84CF28(a1, a3, a4, v5) )
return 0;
return v5;
}