//
// X509V3_get_value_bool from 0x1081e88 to 0x1082010 (392 bytes)
//
// 8 xrefs:
// > sub_10270E0 @ 0x1027184
// > sub_107B5D0 @ 0x107b8d8
// > sub_107B5D0 @ 0x107b900
// > sub_107B5D0 @ 0x107b918
// > sub_107B5D0 @ 0x107b938
// > sub_108B494 @ 0x108b918
// > sub_10EDDB0 @ 0x10ede74
// > ??> @ 0x510e8
//
// 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:10 +0000
//
__int64 __fastcall X509V3_get_value_bool(__int64 a1, _DWORD *a2)
{
const char *v2; // x19
__int64 result; // x0
v2 = *(const char **)(a1 + 16);
if ( !v2 )
{
LABEL_17:
ERR_put_error(34, 110, 104, (__int64)"crypto/x509v3/v3_utl.c", 219);
ERR_add_error_data(6, "section:", *(_QWORD *)a1, ",name:", *(_QWORD *)(a1 + 8), ",value:", *(_QWORD *)(a1 + 16));
return 0;
}
if ( strcmp(*(const char **)(a1 + 16), "TRUE")
&& strcmp(v2, "true")
&& strcmp(v2, "Y")
&& strcmp(v2, "y")
&& strcmp(v2, "YES")
&& strcmp(v2, "yes") )
{
if ( !strcmp(v2, "FALSE")
|| !strcmp(v2, "false")
|| !strcmp(v2, "N")
|| !strcmp(v2, "n")
|| !strcmp(v2, "NO")
|| !strcmp(v2, "no") )
{
*a2 = 0;
return 1;
}
goto LABEL_17;
}
result = 1;
*a2 = 255;
return result;
}