#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
#define X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH 181
#define X509_V_ERR_AKID_SKID_MISMATCH 180
#define X509_V_ERR_APPLICATION_VERIFICATION 179
#define X509_V_ERR_CERT_CHAIN_TOO_LONG 178
#define X509_V_ERR_CERT_HAS_EXPIRED 177
#define X509_V_ERR_CERT_NOT_YET_VALID 176
#define X509_V_ERR_CERT_REJECTED 175
#define X509_V_ERR_CERT_REVOKED 174
#define X509_V_ERR_CERT_SIGNATURE_FAILURE 173
#define X509_V_ERR_CERT_UNTRUSTED 172
#define X509_V_ERR_CRL_HAS_EXPIRED 171
#define X509_V_ERR_CRL_NOT_YET_VALID 170
#define X509_V_ERR_CRL_PATH_VALIDATION_ERROR 169
#define X509_V_ERR_CRL_SIGNATURE_FAILURE 168
#define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT 167
#define X509_V_ERR_DIFFERENT_CRL_SCOPE 166
#define X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD 165
#define X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD 164
#define X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD 163
#define X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD 162
#define X509_V_ERR_EXCLUDED_VIOLATION 161
#define X509_V_ERR_INVALID_CA 160
#define X509_V_ERR_INVALID_EXTENSION 159
#define X509_V_ERR_INVALID_NON_CA 158
#define X509_V_ERR_INVALID_POLICY_EXTENSION 157
#define X509_V_ERR_INVALID_PURPOSE 156
#define X509_V_ERR_KEYUSAGE_NO_CERTSIGN 155
#define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 154
#define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 153
#define X509_V_ERR_NO_EXPLICIT_POLICY 152
#define X509_V_ERR_OUT_OF_MEM 151
#define X509_V_ERR_PATH_LENGTH_EXCEEDED 150
#define X509_V_ERR_PERMITTED_VIOLATION 149
#define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 148
#define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 147
#define X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN 146
#define X509_V_ERR_SUBJECT_ISSUER_MISMATCH 145
#define X509_V_ERR_SUBTREE_MINMAX 144
#define X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY 143
#define X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE 142
#define X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE 141
#define X509_V_ERR_UNABLE_TO_GET_CRL 140
#define X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER 139
#define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT 138
#define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY 137
#define X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE 136
#define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 135
#define X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION 134
#define X509_V_ERR_UNNESTED_RESOURCE 133
#define X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX 132
#define X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE 131
#define X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE 130
#define X509_V_ERR_UNSUPPORTED_NAME_SYNTAX 129
#define X509_V_OK 128
int /*<<< orphan*/ snprintf(char *, int, char *, long);
const char *X509_verify_cert_error_string(long n) {
  static char buf[100];
  switch ((int)n) {
  case X509_V_OK:
    return ("ok");
  case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
    return ("unable to get issuer certificate");
  case X509_V_ERR_UNABLE_TO_GET_CRL:
    return ("unable to get certificate CRL");
  case X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE:
    return ("unable to decrypt certificate's signature");
  case X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE:
    return ("unable to decrypt CRL's signature");
  case X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY:
    return ("unable to decode issuer public key");
  case X509_V_ERR_CERT_SIGNATURE_FAILURE:
    return ("certificate signature failure");
  case X509_V_ERR_CRL_SIGNATURE_FAILURE:
    return ("CRL signature failure");
  case X509_V_ERR_CERT_NOT_YET_VALID:
    return ("certificate is not yet valid");
  case X509_V_ERR_CRL_NOT_YET_VALID:
    return ("CRL is not yet valid");
  case X509_V_ERR_CERT_HAS_EXPIRED:
    return ("certificate has expired");
  case X509_V_ERR_CRL_HAS_EXPIRED:
    return ("CRL has expired");
  case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:
    return ("format error in certificate's notBefore field");
  case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:
    return ("format error in certificate's notAfter field");
  case X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD:
    return ("format error in CRL's lastUpdate field");
  case X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD:
    return ("format error in CRL's nextUpdate field");
  case X509_V_ERR_OUT_OF_MEM:
    return ("out of memory");
  case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
    return ("self signed certificate");
  case X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN:
    return ("self signed certificate in certificate chain");
  case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
    return ("unable to get local issuer certificate");
  case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE:
    return ("unable to verify the first certificate");
  case X509_V_ERR_CERT_CHAIN_TOO_LONG:
    return ("certificate chain too long");
  case X509_V_ERR_CERT_REVOKED:
    return ("certificate revoked");
  case X509_V_ERR_INVALID_CA:
    return ("invalid CA certificate");
  case X509_V_ERR_INVALID_NON_CA:
    return ("invalid non-CA certificate (has CA markings)");
  case X509_V_ERR_PATH_LENGTH_EXCEEDED:
    return ("path length constraint exceeded");
  case X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED:
    return ("proxy path length constraint exceeded");
  case X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED:
    return ("proxy certificates not allowed, please set the appropriate flag");
  case X509_V_ERR_INVALID_PURPOSE:
    return ("unsupported certificate purpose");
  case X509_V_ERR_CERT_UNTRUSTED:
    return ("certificate not trusted");
  case X509_V_ERR_CERT_REJECTED:
    return ("certificate rejected");
  case X509_V_ERR_APPLICATION_VERIFICATION:
    return ("application verification failure");
  case X509_V_ERR_SUBJECT_ISSUER_MISMATCH:
    return ("subject issuer mismatch");
  case X509_V_ERR_AKID_SKID_MISMATCH:
    return ("authority and subject key identifier mismatch");
  case X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH:
    return ("authority and issuer serial number mismatch");
  case X509_V_ERR_KEYUSAGE_NO_CERTSIGN:
    return ("key usage does not include certificate signing");
  case X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER:
    return ("unable to get CRL issuer certificate");
  case X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION:
    return ("unhandled critical extension");
  case X509_V_ERR_KEYUSAGE_NO_CRL_SIGN:
    return ("key usage does not include CRL signing");
  case X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE:
    return ("key usage does not include digital signature");
  case X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION:
    return ("unhandled critical CRL extension");
  case X509_V_ERR_INVALID_EXTENSION:
    return ("invalid or inconsistent certificate extension");
  case X509_V_ERR_INVALID_POLICY_EXTENSION:
    return ("invalid or inconsistent certificate policy extension");
  case X509_V_ERR_NO_EXPLICIT_POLICY:
    return ("no explicit policy");
  case X509_V_ERR_DIFFERENT_CRL_SCOPE:
    return ("Different CRL scope");
  case X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE:
    return ("Unsupported extension feature");
  case X509_V_ERR_UNNESTED_RESOURCE:
    return ("RFC 3779 resource not subset of parent's resources");
  case X509_V_ERR_PERMITTED_VIOLATION:
    return ("permitted subtree violation");
  case X509_V_ERR_EXCLUDED_VIOLATION:
    return ("excluded subtree violation");
  case X509_V_ERR_SUBTREE_MINMAX:
    return ("name constraints minimum and maximum not supported");
  case X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE:
    return ("unsupported name constraint type");
  case X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX:
    return ("unsupported or invalid name constraint syntax");
  case X509_V_ERR_UNSUPPORTED_NAME_SYNTAX:
    return ("unsupported or invalid name syntax");
  case X509_V_ERR_CRL_PATH_VALIDATION_ERROR:
    return ("CRL path validation error");
  default:
    (void)snprintf(buf, sizeof buf, "error number %ld", n);
    return (buf);
  }
}


x86 assembly (clang, -O0):
<X509_verify_cert_error_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x35,%eax
ja     14a5 <X509_verify_cert_error_string+0x395>
mov    -0x18(%rbp),%rax
lea    0xec4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf8c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xf90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xf9e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xfb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xfca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xfdd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xfeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xff1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0xffe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1003(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x100b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x100b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1029(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1046(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x105d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1074(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1072(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x107a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1097(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10ae(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10c5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10d0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10d4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10db(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10fe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10e8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x10fe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x112e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x113e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1146(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x114b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x115c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1164(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1182(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x119e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x11bd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x11d2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x11df(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x11f6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1213(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1224(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1242(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1267(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x126a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x126e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x127c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x129f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x12ab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x12b6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x12d9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x12ea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x1308(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
lea    0x131b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14cc <X509_verify_cert_error_string+0x3bc>
mov    -0x10(%rbp),%rcx
lea    0x2b90(%rip),%rdi
mov    $0x64,%esi
lea    0x1315(%rip),%rdx
call   1030 <snprintf@plt>
lea    0x2b78(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<X509_verify_cert_error_string>:
push   %rbx
lea    -0x80(%rdi),%eax
cmp    $0x36,%eax
jae    112b <X509_verify_cert_error_string+0x1b>
cltq
lea    0x15ea(%rip),%rcx
movslq (%rcx,%rax,4),%rbx
add    %rcx,%rbx
jmp    1149 <X509_verify_cert_error_string+0x39>
mov    %rdi,%rcx
lea    0x2f0b(%rip),%rbx
lea    0x15bd(%rip),%rdx
mov    %rbx,%rdi
mov    $0x64,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@X509_verify_cert_error_string.buf = internal global [100 x i8] zeroinitializer
@.str = [3 x i8] c"ok\00"
@.str.1 = [33 x i8] c"unable to get issuer certificate\00"
@.str.2 = [30 x i8] c"unable to get certificate CRL\00"
@.str.3 = [42 x i8] c"unable to decrypt certificate's signature\00"
@.str.4 = [34 x i8] c"unable to decrypt CRL's signature\00"
@.str.5 = [35 x i8] c"unable to decode issuer public key\00"
@.str.6 = [30 x i8] c"certificate signature failure\00"
@.str.7 = [22 x i8] c"CRL signature failure\00"
@.str.8 = [29 x i8] c"certificate is not yet valid\00"
@.str.9 = [21 x i8] c"CRL is not yet valid\00"
@.str.10 = [24 x i8] c"certificate has expired\00"
@.str.11 = [16 x i8] c"CRL has expired\00"
@.str.12 = [46 x i8] c"format error in certificate's notBefore field\00"
@.str.13 = [45 x i8] c"format error in certificate's notAfter field\00"
@.str.14 = [39 x i8] c"format error in CRL's lastUpdate field\00"
@.str.15 = [39 x i8] c"format error in CRL's nextUpdate field\00"
@.str.16 = [14 x i8] c"out of memory\00"
@.str.17 = [24 x i8] c"self signed certificate\00"
@.str.18 = [45 x i8] c"self signed certificate in certificate chain\00"
@.str.19 = [39 x i8] c"unable to get local issuer certificate\00"
@.str.20 = [39 x i8] c"unable to verify the first certificate\00"
@.str.21 = [27 x i8] c"certificate chain too long\00"
@.str.22 = [20 x i8] c"certificate revoked\00"
@.str.23 = [23 x i8] c"invalid CA certificate\00"
@.str.24 = [45 x i8] c"invalid non-CA certificate (has CA markings)\00"
@.str.25 = [32 x i8] c"path length constraint exceeded\00"
@.str.26 = [38 x i8] c"proxy path length constraint exceeded\00"
@.str.27 = [64 x i8] c"proxy certificates not allowed, please set the appropriate flag\00"
@.str.28 = [32 x i8] c"unsupported certificate purpose\00"
@.str.29 = [24 x i8] c"certificate not trusted\00"
@.str.30 = [21 x i8] c"certificate rejected\00"
@.str.31 = [33 x i8] c"application verification failure\00"
@.str.32 = [24 x i8] c"subject issuer mismatch\00"
@.str.33 = [46 x i8] c"authority and subject key identifier mismatch\00"
@.str.34 = [44 x i8] c"authority and issuer serial number mismatch\00"
@.str.35 = [47 x i8] c"key usage does not include certificate signing\00"
@.str.36 = [37 x i8] c"unable to get CRL issuer certificate\00"
@.str.37 = [29 x i8] c"unhandled critical extension\00"
@.str.38 = [39 x i8] c"key usage does not include CRL signing\00"
@.str.39 = [45 x i8] c"key usage does not include digital signature\00"
@.str.40 = [33 x i8] c"unhandled critical CRL extension\00"
@.str.41 = [46 x i8] c"invalid or inconsistent certificate extension\00"
@.str.42 = [53 x i8] c"invalid or inconsistent certificate policy extension\00"
@.str.43 = [19 x i8] c"no explicit policy\00"
@.str.44 = [20 x i8] c"Different CRL scope\00"
@.str.45 = [30 x i8] c"Unsupported extension feature\00"
@.str.46 = [51 x i8] c"RFC 3779 resource not subset of parent's resources\00"
@.str.47 = [28 x i8] c"permitted subtree violation\00"
@.str.48 = [27 x i8] c"excluded subtree violation\00"
@.str.49 = [51 x i8] c"name constraints minimum and maximum not supported\00"
@.str.50 = [33 x i8] c"unsupported name constraint type\00"
@.str.51 = [46 x i8] c"unsupported or invalid name constraint syntax\00"
@.str.52 = [35 x i8] c"unsupported or invalid name syntax\00"
@.str.53 = [26 x i8] c"CRL path validation error\00"
@.str.54 = [17 x i8] c"error number %ld\00"
define i8* @X509_verify_cert_error_string(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = trunc i64 %4 to i32
switch i32 %5, label %60 [
i32 128, label %6
i32 138, label %7
i32 140, label %8
i32 142, label %9
i32 141, label %10
i32 143, label %11
i32 173, label %12
i32 168, label %13
i32 176, label %14
i32 170, label %15
i32 177, label %16
i32 171, label %17
i32 164, label %18
i32 165, label %19
i32 163, label %20
i32 162, label %21
i32 151, label %22
i32 167, label %23
i32 146, label %24
i32 137, label %25
i32 136, label %26
i32 178, label %27
i32 174, label %28
i32 160, label %29
i32 158, label %30
i32 150, label %31
i32 147, label %32
i32 148, label %33
i32 156, label %34
i32 172, label %35
i32 175, label %36
i32 179, label %37
i32 145, label %38
i32 180, label %39
i32 181, label %40
i32 155, label %41
i32 139, label %42
i32 134, label %43
i32 154, label %44
i32 153, label %45
i32 135, label %46
i32 159, label %47
i32 157, label %48
i32 152, label %49
i32 166, label %50
i32 130, label %51
i32 133, label %52
i32 149, label %53
i32 161, label %54
i32 144, label %55
i32 131, label %56
i32 132, label %57
i32 129, label %58
i32 169, label %59
]
6: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %63
7: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %63
8: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %63
9: ; preds = %1
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %63
10: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %63
11: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %63
12: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %63
13: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %63
14: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %63
15: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %63
16: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %63
17: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %63
18: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %63
19: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %63
20: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %63
21: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %63
22: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %63
23: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %63
24: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %63
25: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %63
26: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %63
27: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %63
28: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %63
29: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %63
30: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %63
31: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %63
32: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %63
33: ; preds = %1
store i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %63
34: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %63
35: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %63
36: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %63
37: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %63
38: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %63
39: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %63
40: ; preds = %1
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %63
41: ; preds = %1
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %63
42: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %63
43: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %63
44: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %63
45: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %63
46: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %63
47: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %63
48: ; preds = %1
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %63
49: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %63
50: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %63
51: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.45, i64 0, i64 0), i8** %2
br label %63
52: ; preds = %1
store i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.46, i64 0, i64 0), i8** %2
br label %63
53: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.47, i64 0, i64 0), i8** %2
br label %63
54: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.48, i64 0, i64 0), i8** %2
br label %63
55: ; preds = %1
store i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.49, i64 0, i64 0), i8** %2
br label %63
56: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.50, i64 0, i64 0), i8** %2
br label %63
57: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.51, i64 0, i64 0), i8** %2
br label %63
58: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.52, i64 0, i64 0), i8** %2
br label %63
59: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.53, i64 0, i64 0), i8** %2
br label %63
60: ; preds = %1
%61 = load i64, i64* %3
%62 = call i32 @snprintf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @X509_verify_cert_error_string.buf, i64 0, i64 0), i32 100, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.54, i64 0, i64 0), i64 %61)
store i8* getelementptr inbounds ([100 x i8], [100 x i8]* @X509_verify_cert_error_string.buf, i64 0, i64 0), i8** %2
br label %63
63: ; preds = %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%64 = load i8*, i8** %2
ret i8* %64
}

LLVM IR (-O2):
@X509_verify_cert_error_string.buf = internal global [100 x i8] zeroinitializer
@.str = [3 x i8] c"ok\00"
@.str.1 = [33 x i8] c"unable to get issuer certificate\00"
@.str.2 = [30 x i8] c"unable to get certificate CRL\00"
@.str.3 = [42 x i8] c"unable to decrypt certificate's signature\00"
@.str.4 = [34 x i8] c"unable to decrypt CRL's signature\00"
@.str.5 = [35 x i8] c"unable to decode issuer public key\00"
@.str.6 = [30 x i8] c"certificate signature failure\00"
@.str.7 = [22 x i8] c"CRL signature failure\00"
@.str.8 = [29 x i8] c"certificate is not yet valid\00"
@.str.9 = [21 x i8] c"CRL is not yet valid\00"
@.str.10 = [24 x i8] c"certificate has expired\00"
@.str.11 = [16 x i8] c"CRL has expired\00"
@.str.12 = [46 x i8] c"format error in certificate's notBefore field\00"
@.str.13 = [45 x i8] c"format error in certificate's notAfter field\00"
@.str.14 = [39 x i8] c"format error in CRL's lastUpdate field\00"
@.str.15 = [39 x i8] c"format error in CRL's nextUpdate field\00"
@.str.16 = [14 x i8] c"out of memory\00"
@.str.17 = [24 x i8] c"self signed certificate\00"
@.str.18 = [45 x i8] c"self signed certificate in certificate chain\00"
@.str.19 = [39 x i8] c"unable to get local issuer certificate\00"
@.str.20 = [39 x i8] c"unable to verify the first certificate\00"
@.str.21 = [27 x i8] c"certificate chain too long\00"
@.str.22 = [20 x i8] c"certificate revoked\00"
@.str.23 = [23 x i8] c"invalid CA certificate\00"
@.str.24 = [45 x i8] c"invalid non-CA certificate (has CA markings)\00"
@.str.25 = [32 x i8] c"path length constraint exceeded\00"
@.str.26 = [38 x i8] c"proxy path length constraint exceeded\00"
@.str.27 = [64 x i8] c"proxy certificates not allowed, please set the appropriate flag\00"
@.str.28 = [32 x i8] c"unsupported certificate purpose\00"
@.str.29 = [24 x i8] c"certificate not trusted\00"
@.str.30 = [21 x i8] c"certificate rejected\00"
@.str.31 = [33 x i8] c"application verification failure\00"
@.str.32 = [24 x i8] c"subject issuer mismatch\00"
@.str.33 = [46 x i8] c"authority and subject key identifier mismatch\00"
@.str.34 = [44 x i8] c"authority and issuer serial number mismatch\00"
@.str.35 = [47 x i8] c"key usage does not include certificate signing\00"
@.str.36 = [37 x i8] c"unable to get CRL issuer certificate\00"
@.str.37 = [29 x i8] c"unhandled critical extension\00"
@.str.38 = [39 x i8] c"key usage does not include CRL signing\00"
@.str.39 = [45 x i8] c"key usage does not include digital signature\00"
@.str.40 = [33 x i8] c"unhandled critical CRL extension\00"
@.str.41 = [46 x i8] c"invalid or inconsistent certificate extension\00"
@.str.42 = [53 x i8] c"invalid or inconsistent certificate policy extension\00"
@.str.43 = [19 x i8] c"no explicit policy\00"
@.str.44 = [20 x i8] c"Different CRL scope\00"
@.str.45 = [30 x i8] c"Unsupported extension feature\00"
@.str.46 = [51 x i8] c"RFC 3779 resource not subset of parent's resources\00"
@.str.47 = [28 x i8] c"permitted subtree violation\00"
@.str.48 = [27 x i8] c"excluded subtree violation\00"
@.str.49 = [51 x i8] c"name constraints minimum and maximum not supported\00"
@.str.50 = [33 x i8] c"unsupported name constraint type\00"
@.str.51 = [46 x i8] c"unsupported or invalid name constraint syntax\00"
@.str.52 = [35 x i8] c"unsupported or invalid name syntax\00"
@.str.53 = [26 x i8] c"CRL path validation error\00"
@.str.54 = [17 x i8] c"error number %ld\00"
@reltable.X509_verify_cert_error_string = [54 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.52 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.45 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.50 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([46 x i8]* @.str.51 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([51 x i8]* @.str.46 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.37 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.40 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.20 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.19 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.1 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.36 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.2 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.4 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.3 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.5 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([51 x i8]* @.str.49 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.32 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.18 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.26 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([64 x i8]* @.str.27 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.47 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.25 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.16 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.43 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.39 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.38 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.35 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.28 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([53 x i8]* @.str.42 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.24 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([46 x i8]* @.str.41 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.23 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.48 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.15 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.14 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([46 x i8]* @.str.12 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.13 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.44 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.17 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.7 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.53 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.9 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.11 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.29 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.6 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.22 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.30 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.8 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.10 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.21 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.31 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([46 x i8]* @.str.33 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.34 to i64), i64 ptrtoint ([54 x i32]* @reltable.X509_verify_cert_error_string to i64)) to i32)]
define i8* @X509_verify_cert_error_string(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = add i32 %2, -128
%4 = icmp ult i32 %3, 54
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @snprintf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @X509_verify_cert_error_string.buf, i64 0, i64 0), i32 100, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.54, i64 0, i64 0), i64 %0)
br label %11
7: ; preds = %1
%8 = sext i32 %3 to i64
%9 = shl i64 %8, 2
%10 = call i8* @llvm.load.relative.i64(i8* bitcast ([54 x i32]* @reltable.X509_verify_cert_error_string to i8*), i64 %9)
br label %11
11: ; preds = %7, %5
%12 = phi i8* [ getelementptr inbounds ([100 x i8], [100 x i8]* @X509_verify_cert_error_string.buf, i64 0, i64 0), %5 ], [ %10, %7 ]
ret i8* %12
}