//
// X509V3_get_value_bool from 0xa71e40 to 0xa71ffc (444 bytes)
//
// 8 xrefs:
// > sub_A16DDC @ 0xa16e74
// > sub_A6B2F0 @ 0xa6b600
// > sub_A6B2F0 @ 0xa6b618
// > sub_A6B2F0 @ 0xa6b630
// > sub_A6B2F0 @ 0xa6b648
// > sub_A79B7C @ 0xa7a1d0
// > sub_AD9060 @ 0xad9110
// > ??> @ 0x7cf7c
//
// 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:42 +0000
//
int __fastcall X509V3_get_value_bool(int a1, _DWORD *a2)
{
const char *v2; // r4
v2 = *(const char **)(a1 + 8);
if ( v2 )
{
if ( !strcmp(*(const char **)(a1 + 8), "TRUE")
|| !strcmp(v2, "true")
|| !strcmp(v2, "Y")
|| !strcmp(v2, "y")
|| !strcmp(v2, "YES")
|| !strcmp(v2, "yes") )
{
*a2 = 255;
return 1;
}
if ( !strcmp(v2, "FALSE")
|| !strcmp(v2, "false")
|| !strcmp(v2, "N")
|| !strcmp(v2, "n")
|| !strcmp(v2, "NO")
|| !strcmp(v2, "no") )
{
*a2 = 0;
return 1;
}
}
ERR_put_error(34, 110, 104, (int)"crypto/x509v3/v3_utl.c", 219);
ERR_add_error_data(6, "section:", *(_DWORD *)a1, ",name:", *(_DWORD *)(a1 + 4), ",value:", *(_DWORD *)(a1 + 8));
return 0;
}