//
// sub_108BE3C from 0x108be3c to 0x108bf68 (300 bytes)
//
// 2 xrefs:
// > ASN1_str2mask @ 0x108c55c
// > ASN1_str2mask @ 0x108c568
//
// 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:17:15 +0000
//
__int64 __fastcall sub_108BE3C(char *a1, int a2, _QWORD *a3)
{
int v4; // w20
char **v6; // x19
unsigned int v7; // w0
__int64 v9; // x1
v4 = a2;
if ( !a1 )
return 0;
if ( a2 == 3 )
{
if ( !strncmp(a1, "DIR", 3u) )
{
*a3 |= 0x2906uLL;
return 1;
}
}
else if ( a2 == -1 )
{
v4 = strlen(a1);
}
v6 = &off_140F100;
qword_1568668 = (__int64)&off_140F100;
while ( *((_DWORD *)v6 + 2) != v4 || strncmp(*v6, a1, v4) )
{
v6 += 2;
qword_1568668 = (__int64)v6;
if ( v6 == (char **)&unk_140F410 )
return 0;
}
v7 = *((_DWORD *)v6 + 3);
if ( !v7 )
return 0;
if ( (v7 & 0x10000) != 0 )
return 0;
v9 = ASN1_tag2bit(v7);
if ( !v9 )
return 0;
*a3 |= v9;
return 1;
}