//
// ASN1_STRING_set_default_mask_asc from 0x108a858 to 0x108a934 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0xbae80
//
// 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 ASN1_STRING_set_default_mask_asc(const char *a1)
{
unsigned __int64 v3; // x0
char *v4; // [xsp+28h] [xbp+28h] BYREF
if ( !strncmp(a1, "MASK:", 5u) )
{
if ( !a1[5] )
return 0;
v3 = strtoul(a1 + 5, &v4, 0);
if ( *v4 )
return 0;
}
else if ( !strcmp(a1, "nombstr") )
{
v3 = -10241;
}
else if ( !strcmp(a1, "pkix") )
{
v3 = -5;
}
else if ( !strcmp(a1, "utf8only") )
{
v3 = 0x2000;
}
else
{
if ( strcmp(a1, "default") )
return 0;
v3 = 0xFFFFFFFFLL;
}
ASN1_STRING_set_default_mask(v3);
return 1;
}