//
// sub_A7A64C from 0xa7a64c to 0xa7a748 (252 bytes)
//
// 3 xrefs:
// > ASN1_str2mask @ 0xa7ad9c
// > ASN1_str2mask @ 0xa7ada8
// > ??> @ 0xa7adb8
//
// 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:46 +0000
//
int __fastcall sub_A7A64C(const char *a1, size_t a2, _DWORD *a3)
{
size_t v4; // r5
char **v6; // r4
unsigned int v7; // r0
int v9; // r3
if ( !a1 )
return 0;
v4 = a2;
if ( a2 == 3 )
{
if ( !strncmp(a1, "DIR", 3u) )
{
*a3 |= 0x2906u;
return 1;
}
}
else if ( a2 == -1 )
{
v4 = strlen(a1);
}
v6 = &off_C80A24;
dword_D35AEC = (int)&off_C80A24;
while ( v6[1] != (char *)v4 || strncmp(*v6, a1, v4) )
{
v6 += 3;
dword_D35AEC = (int)v6;
if ( v6 == (char **)&unk_C80C70 )
return 0;
}
v7 = (unsigned int)v6[2];
if ( !v7 )
return 0;
if ( (v7 & 0x10000) != 0 )
return 0;
v9 = ASN1_tag2bit(v7);
if ( !v9 )
return 0;
*a3 |= v9;
return 1;
}