//
// X509v3_addr_get_range from 0xa63330 to 0xa633ac (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x8221c
//
// 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:35 +0000
//
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_A61B28(a1, a3, a4, v5) )
return 0;
return v5;
}