#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 */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ time_t;
typedef int /*<<< orphan*/ buff2;
struct TYPE_4__ {
  int length;
  unsigned char *data;
  scalar_t__ type;
  scalar_t__ flags;
};
typedef TYPE_1__ ASN1_TIME;

/* Variables and functions */
scalar_t__ V_ASN1_UTCTIME;
int /*<<< orphan*/ *X509_time_adj(TYPE_1__ *, long, int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(char *, char *, int);
int strcmp(char *, char *);
int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
  char *str;
  ASN1_TIME atm;
  long offset;
  char buff1[24], buff2[24], *p;
  int i, j, remaining;
  p = buff1;
  remaining = ctm->length;
  str = (char *)ctm->data;
  if (ctm->type == V_ASN1_UTCTIME) {
    int min_length = sizeof("YYMMDDHHMMZ") - 1;
    int max_length = sizeof("YYMMDDHHMMSS+hhmm") - 1;
    if (remaining < min_length || remaining > max_length)
      return 0;
    memcpy(p, str, 10);
    p += 10;
    str += 10;
    remaining -= 10;
  } else {
    int min_length = sizeof("YYYYMMDDHHMMZ") - 1;
    int max_length = sizeof("YYYYMMDDHHMMSS.fff+hhmm") - 1;
    if (remaining < min_length || remaining > max_length)
      return 0;
    memcpy(p, str, 12);
    p += 12;
    str += 12;
    remaining -= 12;
  }
  if ((*str == 'Z') || (*str == '-') || (*str == '+')) {
    *(p++) = '0';
    *(p++) = '0';
  } else {
    if (remaining < 2)
      return 0;
    *(p++) = *(str++);
    *(p++) = *(str++);
    remaining -= 2;
    if (remaining && *str == '.') {
      str++;
      remaining--;
      for (i = 0; i < 3 && remaining; i++, str++, remaining--) {
        if (*str < '0' || *str > '9')
          break;
      }
    }
  }
  *(p++) = 'Z';
  *(p++) = '\0';
  if (!remaining)
    return 0;
  if (*str == 'Z') {
    if (remaining != 1)
      return 0;
    offset = 0;
  } else {
    if ((*str != '+') && (*str != '-'))
      return 0;
    if (remaining != 5)
      return 0;
    if (str[1] < '0' || str[1] > '9' || str[2] < '0' || str[2] > '9' ||
        str[3] < '0' || str[3] > '9' || str[4] < '0' || str[4] > '9')
      return 0;
    offset = ((str[1] - '0') * 10 + (str[2] - '0')) * 60;
    offset += (str[3] - '0') * 10 + (str[4] - '0');
    if (*str == '-')
      offset = -offset;
  }
  atm.type = ctm->type;
  atm.flags = 0;
  atm.length = sizeof(buff2);
  atm.data = (unsigned char *)buff2;
  if (X509_time_adj(&atm, offset * 60, cmp_time) == NULL)
    return 0;
  if (ctm->type == V_ASN1_UTCTIME) {
    i = (buff1[0] - '0') * 10 + (buff1[1] - '0');
    if (i < 50)
      i += 100;
    j = (buff2[0] - '0') * 10 + (buff2[1] - '0');
    if (j < 50)
      j += 100;
    if (i < j)
      return -1;
    if (i > j)
      return 1;
  }
  i = strcmp(buff1, buff2);
  if (i == 0)
    return -1;
  else
    return i;
}


x86 assembly (clang, -O0):
<X509_cmp_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x94(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    0x2e6b(%rip),%rcx
cmp    (%rcx),%rax
jne    1209 <X509_cmp_time+0xd9>
movl   $0xb,-0x98(%rbp)
movl   $0x11,-0x9c(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jl     11b6 <X509_cmp_time+0x86>
mov    -0x94(%rbp),%eax
cmp    -0x9c(%rbp),%eax
jle    11c2 <X509_cmp_time+0x92>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x88(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xa,%edx
call   1040 <memcpy@plt>
mov    -0x88(%rbp),%rax
add    $0xa,%rax
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
add    $0xa,%rax
mov    %rax,-0x20(%rbp)
mov    -0x94(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0x94(%rbp)
jmp    128f <X509_cmp_time+0x15f>
movl   $0xd,-0xa0(%rbp)
movl   $0x17,-0xa4(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xa0(%rbp),%eax
jl     1241 <X509_cmp_time+0x111>
mov    -0x94(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jle    124d <X509_cmp_time+0x11d>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x88(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   1040 <memcpy@plt>
mov    -0x88(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x20(%rbp)
mov    -0x94(%rbp),%eax
sub    $0xc,%eax
mov    %eax,-0x94(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
je     12bf <X509_cmp_time+0x18f>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     12bf <X509_cmp_time+0x18f>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
jne    12f4 <X509_cmp_time+0x1c4>
mov    -0x88(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x88(%rbp)
movb   $0x30,(%rax)
mov    -0x88(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x88(%rbp)
movb   $0x30,(%rax)
jmp    1449 <X509_cmp_time+0x319>
cmpl   $0x2,-0x94(%rbp)
jge    130d <X509_cmp_time+0x1dd>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
mov    (%rax),%cl
mov    -0x88(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x88(%rbp)
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
mov    (%rax),%cl
mov    -0x88(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x88(%rbp)
mov    %cl,(%rax)
mov    -0x94(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
je     1444 <X509_cmp_time+0x314>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1444 <X509_cmp_time+0x314>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
movl   $0x0,-0x8c(%rbp)
xor    %eax,%eax
cmpl   $0x3,-0x8c(%rbp)
mov    %al,-0xa5(%rbp)
jge    13d3 <X509_cmp_time+0x2a3>
cmpl   $0x0,-0x94(%rbp)
setne  %al
mov    %al,-0xa5(%rbp)
mov    -0xa5(%rbp),%al
test   $0x1,%al
jne    13e6 <X509_cmp_time+0x2b6>
jmp    143f <X509_cmp_time+0x30f>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jl     1406 <X509_cmp_time+0x2d6>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
jle    140b <X509_cmp_time+0x2db>
jmp    143f <X509_cmp_time+0x30f>
jmp    1410 <X509_cmp_time+0x2e0>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x94(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x94(%rbp)
jmp    13ae <X509_cmp_time+0x27e>
jmp    1444 <X509_cmp_time+0x314>
jmp    1449 <X509_cmp_time+0x319>
mov    -0x88(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x88(%rbp)
movb   $0x5a,(%rax)
mov    -0x88(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x88(%rbp)
movb   $0x0,(%rax)
cmpl   $0x0,-0x94(%rbp)
jne    1492 <X509_cmp_time+0x362>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jne    14c8 <X509_cmp_time+0x398>
cmpl   $0x1,-0x94(%rbp)
je     14bb <X509_cmp_time+0x38b>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
movq   $0x0,-0x48(%rbp)
jmp    1609 <X509_cmp_time+0x4d9>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     14f4 <X509_cmp_time+0x3c4>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     14f4 <X509_cmp_time+0x3c4>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
cmpl   $0x5,-0x94(%rbp)
je     150d <X509_cmp_time+0x3dd>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x30,%eax
jl     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x39,%eax
jg     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x30,%eax
jl     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x39,%eax
jg     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x30,%eax
jl     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x39,%eax
jg     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x30,%eax
jl     1595 <X509_cmp_time+0x465>
mov    -0x20(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x39,%eax
jle    15a1 <X509_cmp_time+0x471>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
sub    $0x30,%eax
imul   $0xa,%eax,%eax
mov    -0x20(%rbp),%rcx
movsbl 0x2(%rcx),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
imul   $0x3c,%eax,%eax
cltq
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsbl 0x3(%rax),%eax
sub    $0x30,%eax
imul   $0xa,%eax,%eax
mov    -0x20(%rbp),%rcx
movsbl 0x4(%rcx),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
cltq
add    -0x48(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1604 <X509_cmp_time+0x4d4>
xor    %eax,%eax
sub    -0x48(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    1609 <X509_cmp_time+0x4d9>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x18,-0x40(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0x38(%rbp)
imul   $0x3c,-0x48(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    -0x40(%rbp),%rdi
call   1050 <X509_time_adj@plt>
cmp    $0x0,%rax
jne    1654 <X509_cmp_time+0x524>
movl   $0x0,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    0x297d(%rip),%rcx
cmp    (%rcx),%rax
jne    1717 <X509_cmp_time+0x5e7>
movsbl -0x60(%rbp),%eax
sub    $0x30,%eax
imul   $0xa,%eax,%eax
movsbl -0x5f(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x8c(%rbp)
cmpl   $0x32,-0x8c(%rbp)
jge    16a1 <X509_cmp_time+0x571>
mov    -0x8c(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x8c(%rbp)
movsbl -0x80(%rbp),%eax
sub    $0x30,%eax
imul   $0xa,%eax,%eax
movsbl -0x7f(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x90(%rbp)
cmpl   $0x32,-0x90(%rbp)
jge    16d6 <X509_cmp_time+0x5a6>
mov    -0x90(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x90(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x90(%rbp),%eax
jge    16f4 <X509_cmp_time+0x5c4>
movl   $0xffffffff,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x8c(%rbp),%eax
cmp    -0x90(%rbp),%eax
jle    1712 <X509_cmp_time+0x5e2>
movl   $0x1,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
jmp    1717 <X509_cmp_time+0x5e7>
lea    -0x60(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0x0,-0x8c(%rbp)
jne    1743 <X509_cmp_time+0x613>
movl   $0xffffffff,-0x4(%rbp)
jmp    174c <X509_cmp_time+0x61c>
mov    -0x8c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<X509_cmp_time>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,%r13
mov    (%rdi),%r12d
mov    0x8(%rdi),%rbp
mov    0x10(%rdi),%rax
mov    0x2e8d(%rip),%rcx
cmp    (%rcx),%rax
jne    1180 <X509_cmp_time+0x50>
lea    -0x12(%r12),%eax
xor    %r15d,%r15d
cmp    $0xfffffff9,%eax
jb     13da <X509_cmp_time+0x2aa>
mov    %rsi,0x8(%rsp)
mov    $0xfffffff6,%ebx
mov    $0xa,%r14d
mov    $0xa,%edx
jmp    11a6 <X509_cmp_time+0x76>
lea    -0x18(%r12),%eax
xor    %r15d,%r15d
cmp    $0xfffffff5,%eax
jb     13da <X509_cmp_time+0x2aa>
mov    %rsi,0x8(%rsp)
mov    $0xfffffff4,%ebx
mov    $0xc,%r14d
mov    $0xc,%edx
lea    0x10(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <memcpy@plt>
add    %ebx,%r12d
mov    0x0(%rbp,%r14,1),%al
add    %r14,%rbp
lea    -0x2b(%rax),%ecx
cmp    $0x2f,%cl
ja     1377 <X509_cmp_time+0x247>
movzbl %cl,%ecx
movabs $0x800000000005,%rdx
bt     %rcx,%rdx
jae    1377 <X509_cmp_time+0x247>
movw   $0x3030,0x10(%rsp,%r14,1)
30
mov    %r12d,%ecx
mov    %rbp,%rax
movw   $0x5a,0x12(%rsp,%r14,1)
mov    0x2de2(%rip),%r14
mov    0x8(%rsp),%rdx
mov    (%rax),%bl
xor    %r15d,%r15d
cmp    $0x2b,%bl
je     12f3 <X509_cmp_time+0x1c3>
cmp    $0x2d,%bl
je     12f3 <X509_cmp_time+0x1c3>
cmp    $0x5a,%bl
jne    13da <X509_cmp_time+0x2aa>
xor    %esi,%esi
cmp    $0x1,%ecx
jne    13cd <X509_cmp_time+0x29d>
mov    0x10(%r13),%rax
mov    %rax,0x58(%rsp)
movq   $0x0,0x60(%rsp)
movl   $0x18,0x48(%rsp)
lea    0x30(%rsp),%rax
mov    %rax,0x50(%rsp)
lea    0x48(%rsp),%rdi
call   1050 <X509_time_adj@plt>
test   %rax,%rax
je     13da <X509_cmp_time+0x2aa>
mov    0x10(%r13),%rax
cmp    (%r14),%rax
jne    12d6 <X509_cmp_time+0x1a6>
movsbl 0x10(%rsp),%eax
lea    (%rax,%rax,4),%eax
movsbl 0x11(%rsp),%ecx
lea    (%rcx,%rax,2),%edx
cmp    $0x242,%edx
lea    -0x1ac(%rcx,%rax,2),%edx
lea    -0x210(%rcx,%rax,2),%eax
cmovl  %edx,%eax
movsbl 0x30(%rsp),%ecx
lea    (%rcx,%rcx,4),%ecx
movsbl 0x31(%rsp),%edx
lea    (%rdx,%rcx,2),%esi
cmp    $0x242,%esi
lea    -0x1ac(%rdx,%rcx,2),%esi
lea    -0x210(%rdx,%rcx,2),%ecx
cmovl  %esi,%ecx
mov    $0xffffffff,%r15d
cmp    %ecx,%eax
jl     13da <X509_cmp_time+0x2aa>
mov    $0x1,%r15d
jg     13da <X509_cmp_time+0x2aa>
lea    0x10(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   1030 <strcmp@plt>
cmp    $0x1,%eax
sbb    %r15d,%r15d
or     %eax,%r15d
jmp    13da <X509_cmp_time+0x2aa>
cmp    $0x5,%ecx
jne    13da <X509_cmp_time+0x2aa>
movsbq 0x1(%rax),%rcx
lea    -0x3a(%rcx),%esi
cmp    $0xf6,%sil
jb     13da <X509_cmp_time+0x2aa>
movsbq 0x2(%rax),%rsi
lea    -0x3a(%rsi),%edi
cmp    $0xf6,%dil
jb     13da <X509_cmp_time+0x2aa>
movsbq 0x3(%rax),%rdi
lea    -0x3a(%rdi),%ebp
cmp    $0xf6,%bpl
jb     13da <X509_cmp_time+0x2aa>
movzbl 0x4(%rax),%eax
lea    -0x3a(%rax),%ebp
cmp    $0xf6,%bpl
jb     13da <X509_cmp_time+0x2aa>
lea    (%rcx,%rcx,4),%ecx
lea    (%rsi,%rcx,2),%ecx
imul   $0x3c,%ecx,%ecx
mov    $0xffff8440,%esi
add    %ecx,%esi
lea    (%rdi,%rdi,4),%ecx
lea    (%rax,%rcx,2),%eax
add    $0xfffffdf0,%eax
add    %rsi,%rax
mov    %rax,%rcx
neg    %rcx
cmp    $0x2d,%bl
cmovne %rax,%rcx
imul   $0x3c,%rcx,%rsi
jmp    122e <X509_cmp_time+0xfe>
xor    %r15d,%r15d
cmp    $0x2,%r12d
jb     13da <X509_cmp_time+0x2aa>
mov    %al,0x10(%rsp,%r14,1)
mov    0x1(%rbp),%al
mov    %al,0x11(%rsp,%r14,1)
mov    %r12d,%ecx
add    $0xfffffffe,%ecx
je     13d2 <X509_cmp_time+0x2a2>
lea    0x2(%rbp),%rax
cmpb   $0x2e,(%rax)
jne    11ef <X509_cmp_time+0xbf>
mov    %r12d,%esi
add    $0xfffffffd,%esi
je     13d2 <X509_cmp_time+0x2a2>
lea    -0x4(%r12),%ecx
cmp    $0x2,%ecx
mov    $0x2,%edx
cmovb  %ecx,%edx
lea    0x3(%rbp),%rax
mov    0x3(%rbp),%bl
add    $0xc6,%bl
cmp    $0xf6,%bl
jae    13ec <X509_cmp_time+0x2bc>
mov    %esi,%ecx
jmp    1421 <X509_cmp_time+0x2f1>
xor    %r15d,%r15d
jmp    13da <X509_cmp_time+0x2aa>
movw   $0x5a,0x12(%rsp,%r14,1)
mov    %r15d,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x1,%rax
test   %edx,%edx
je     1421 <X509_cmp_time+0x2f1>
mov    (%rax),%bl
add    $0xc6,%bl
cmp    $0xf6,%bl
jb     1421 <X509_cmp_time+0x2f1>
add    $0x1,%rax
lea    -0x5(%r12),%ecx
cmp    $0x1,%edx
je     1421 <X509_cmp_time+0x2f1>
mov    (%rax),%dl
add    $0xc6,%dl
cmp    $0xf6,%dl
jb     1421 <X509_cmp_time+0x2f1>
add    $0x1,%rax
add    $0xfffffffa,%r12d
mov    %r12d,%ecx
movw   $0x5a,0x12(%rsp,%r14,1)
test   %ecx,%ecx
mov    0x2bae(%rip),%r14
mov    0x8(%rsp),%rdx
jne    1203 <X509_cmp_time+0xd3>
jmp    13da <X509_cmp_time+0x2aa>

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32, i8*, i64, i64 }
@V_ASN1_UTCTIME = global i64 0
define i32 @X509_cmp_time(%struct.TYPE_4__* %0, i32* %1) {
%3 = alloca i32
%4 = alloca %struct.TYPE_4__*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca %struct.TYPE_4__
%8 = alloca i64
%9 = alloca [24 x i8]
%10 = alloca [24 x i8]
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %4
store i32* %1, i32** %5
%19 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
store i8* %19, i8** %11
%20 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%21 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %20, i32 0, i32 0
%22 = load i32, i32* %21
store i32 %22, i32* %14
%23 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%24 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %23, i32 0, i32 1
%25 = load i8*, i8** %24
store i8* %25, i8** %6
%26 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%27 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %26, i32 0, i32 2
%28 = load i64, i64* %27
%29 = load i64, i64* @V_ASN1_UTCTIME
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %50
31: ; preds = %2
store i32 11, i32* %15
store i32 17, i32* %16
%32 = load i32, i32* %14
%33 = load i32, i32* %15
%34 = icmp slt i32 %32, %33
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = load i32, i32* %14
%37 = load i32, i32* %16
%38 = icmp sgt i32 %36, %37
br i1 %38, label %39, label %40
39: ; preds = %35, %31
store i32 0, i32* %3
br label %340
40: ; preds = %35
%41 = load i8*, i8** %11
%42 = load i8*, i8** %6
%43 = call i32 @memcpy(i8* %41, i8* %42, i32 10)
%44 = load i8*, i8** %11
%45 = getelementptr inbounds i8, i8* %44, i64 10
store i8* %45, i8** %11
%46 = load i8*, i8** %6
%47 = getelementptr inbounds i8, i8* %46, i64 10
store i8* %47, i8** %6
%48 = load i32, i32* %14
%49 = sub nsw i32 %48, 10
store i32 %49, i32* %14
br label %69
50: ; preds = %2
store i32 13, i32* %17
store i32 23, i32* %18
%51 = load i32, i32* %14
%52 = load i32, i32* %17
%53 = icmp slt i32 %51, %52
br i1 %53, label %58, label %54
54: ; preds = %50
%55 = load i32, i32* %14
%56 = load i32, i32* %18
%57 = icmp sgt i32 %55, %56
br i1 %57, label %58, label %59
58: ; preds = %54, %50
store i32 0, i32* %3
br label %340
59: ; preds = %54
%60 = load i8*, i8** %11
%61 = load i8*, i8** %6
%62 = call i32 @memcpy(i8* %60, i8* %61, i32 12)
%63 = load i8*, i8** %11
%64 = getelementptr inbounds i8, i8* %63, i64 12
store i8* %64, i8** %11
%65 = load i8*, i8** %6
%66 = getelementptr inbounds i8, i8* %65, i64 12
store i8* %66, i8** %6
%67 = load i32, i32* %14
%68 = sub nsw i32 %67, 12
store i32 %68, i32* %14
br label %69
69: ; preds = %59, %40
%70 = load i8*, i8** %6
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 90
br i1 %73, label %84, label %74
74: ; preds = %69
%75 = load i8*, i8** %6
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 45
br i1 %78, label %84, label %79
79: ; preds = %74
%80 = load i8*, i8** %6
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 43
br i1 %83, label %84, label %89
84: ; preds = %79, %74, %69
%85 = load i8*, i8** %11
%86 = getelementptr inbounds i8, i8* %85, i32 1
store i8* %86, i8** %11
store i8 48, i8* %85
%87 = load i8*, i8** %11
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %11
store i8 48, i8* %87
br label %147
89: ; preds = %79
%90 = load i32, i32* %14
%91 = icmp slt i32 %90, 2
br i1 %91, label %92, label %93
92: ; preds = %89
store i32 0, i32* %3
br label %340
93: ; preds = %89
%94 = load i8*, i8** %6
%95 = getelementptr inbounds i8, i8* %94, i32 1
store i8* %95, i8** %6
%96 = load i8, i8* %94
%97 = load i8*, i8** %11
%98 = getelementptr inbounds i8, i8* %97, i32 1
store i8* %98, i8** %11
store i8 %96, i8* %97
%99 = load i8*, i8** %6
%100 = getelementptr inbounds i8, i8* %99, i32 1
store i8* %100, i8** %6
%101 = load i8, i8* %99
%102 = load i8*, i8** %11
%103 = getelementptr inbounds i8, i8* %102, i32 1
store i8* %103, i8** %11
store i8 %101, i8* %102
%104 = load i32, i32* %14
%105 = sub nsw i32 %104, 2
store i32 %105, i32* %14
%106 = load i32, i32* %14
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %146
108: ; preds = %93
%109 = load i8*, i8** %6
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 46
br i1 %112, label %113, label %146
113: ; preds = %108
%114 = load i8*, i8** %6
%115 = getelementptr inbounds i8, i8* %114, i32 1
store i8* %115, i8** %6
%116 = load i32, i32* %14
%117 = add nsw i32 %116, -1
store i32 %117, i32* %14
store i32 0, i32* %12
br label %118
118: ; preds = %138, %113
%119 = load i32, i32* %12
%120 = icmp slt i32 %119, 3
br i1 %120, label %121, label %124
121: ; preds = %118
%122 = load i32, i32* %14
%123 = icmp ne i32 %122, 0
br label %124
124: ; preds = %121, %118
%125 = phi i1 [ false, %118 ], [ %123, %121 ]
br i1 %125, label %126, label %145
126: ; preds = %124
%127 = load i8*, i8** %6
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp slt i32 %129, 48
br i1 %130, label %136, label %131
131: ; preds = %126
%132 = load i8*, i8** %6
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp sgt i32 %134, 57
br i1 %135, label %136, label %137
136: ; preds = %131, %126
br label %145
137: ; preds = %131
br label %138
138: ; preds = %137
%139 = load i32, i32* %12
%140 = add nsw i32 %139, 1
store i32 %140, i32* %12
%141 = load i8*, i8** %6
%142 = getelementptr inbounds i8, i8* %141, i32 1
store i8* %142, i8** %6
%143 = load i32, i32* %14
%144 = add nsw i32 %143, -1
store i32 %144, i32* %14
br label %118
145: ; preds = %136, %124
br label %146
146: ; preds = %145, %108, %93
br label %147
147: ; preds = %146, %84
%148 = load i8*, i8** %11
%149 = getelementptr inbounds i8, i8* %148, i32 1
store i8* %149, i8** %11
store i8 90, i8* %148
%150 = load i8*, i8** %11
%151 = getelementptr inbounds i8, i8* %150, i32 1
store i8* %151, i8** %11
store i8 0, i8* %150
%152 = load i32, i32* %14
%153 = icmp ne i32 %152, 0
br i1 %153, label %155, label %154
154: ; preds = %147
store i32 0, i32* %3
br label %340
155: ; preds = %147
%156 = load i8*, i8** %6
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 90
br i1 %159, label %160, label %165
160: ; preds = %155
%161 = load i32, i32* %14
%162 = icmp ne i32 %161, 1
br i1 %162, label %163, label %164
163: ; preds = %160
store i32 0, i32* %3
br label %340
164: ; preds = %160
store i64 0, i64* %8
br label %267
165: ; preds = %155
%166 = load i8*, i8** %6
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = icmp ne i32 %168, 43
br i1 %169, label %170, label %176
170: ; preds = %165
%171 = load i8*, i8** %6
%172 = load i8, i8* %171
%173 = sext i8 %172 to i32
%174 = icmp ne i32 %173, 45
br i1 %174, label %175, label %176
175: ; preds = %170
store i32 0, i32* %3
br label %340
176: ; preds = %170, %165
%177 = load i32, i32* %14
%178 = icmp ne i32 %177, 5
br i1 %178, label %179, label %180
179: ; preds = %176
store i32 0, i32* %3
br label %340
180: ; preds = %176
%181 = load i8*, i8** %6
%182 = getelementptr inbounds i8, i8* %181, i64 1
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = icmp slt i32 %184, 48
br i1 %185, label %228, label %186
186: ; preds = %180
%187 = load i8*, i8** %6
%188 = getelementptr inbounds i8, i8* %187, i64 1
%189 = load i8, i8* %188
%190 = sext i8 %189 to i32
%191 = icmp sgt i32 %190, 57
br i1 %191, label %228, label %192
192: ; preds = %186
%193 = load i8*, i8** %6
%194 = getelementptr inbounds i8, i8* %193, i64 2
%195 = load i8, i8* %194
%196 = sext i8 %195 to i32
%197 = icmp slt i32 %196, 48
br i1 %197, label %228, label %198
198: ; preds = %192
%199 = load i8*, i8** %6
%200 = getelementptr inbounds i8, i8* %199, i64 2
%201 = load i8, i8* %200
%202 = sext i8 %201 to i32
%203 = icmp sgt i32 %202, 57
br i1 %203, label %228, label %204
204: ; preds = %198
%205 = load i8*, i8** %6
%206 = getelementptr inbounds i8, i8* %205, i64 3
%207 = load i8, i8* %206
%208 = sext i8 %207 to i32
%209 = icmp slt i32 %208, 48
br i1 %209, label %228, label %210
210: ; preds = %204
%211 = load i8*, i8** %6
%212 = getelementptr inbounds i8, i8* %211, i64 3
%213 = load i8, i8* %212
%214 = sext i8 %213 to i32
%215 = icmp sgt i32 %214, 57
br i1 %215, label %228, label %216
216: ; preds = %210
%217 = load i8*, i8** %6
%218 = getelementptr inbounds i8, i8* %217, i64 4
%219 = load i8, i8* %218
%220 = sext i8 %219 to i32
%221 = icmp slt i32 %220, 48
br i1 %221, label %228, label %222
222: ; preds = %216
%223 = load i8*, i8** %6
%224 = getelementptr inbounds i8, i8* %223, i64 4
%225 = load i8, i8* %224
%226 = sext i8 %225 to i32
%227 = icmp sgt i32 %226, 57
br i1 %227, label %228, label %229
228: ; preds = %222, %216, %210, %204, %198, %192, %186, %180
store i32 0, i32* %3
br label %340
229: ; preds = %222
%230 = load i8*, i8** %6
%231 = getelementptr inbounds i8, i8* %230, i64 1
%232 = load i8, i8* %231
%233 = sext i8 %232 to i32
%234 = sub nsw i32 %233, 48
%235 = mul nsw i32 %234, 10
%236 = load i8*, i8** %6
%237 = getelementptr inbounds i8, i8* %236, i64 2
%238 = load i8, i8* %237
%239 = sext i8 %238 to i32
%240 = sub nsw i32 %239, 48
%241 = add nsw i32 %235, %240
%242 = mul nsw i32 %241, 60
%243 = sext i32 %242 to i64
store i64 %243, i64* %8
%244 = load i8*, i8** %6
%245 = getelementptr inbounds i8, i8* %244, i64 3
%246 = load i8, i8* %245
%247 = sext i8 %246 to i32
%248 = sub nsw i32 %247, 48
%249 = mul nsw i32 %248, 10
%250 = load i8*, i8** %6
%251 = getelementptr inbounds i8, i8* %250, i64 4
%252 = load i8, i8* %251
%253 = sext i8 %252 to i32
%254 = sub nsw i32 %253, 48
%255 = add nsw i32 %249, %254
%256 = sext i32 %255 to i64
%257 = load i64, i64* %8
%258 = add nsw i64 %257, %256
store i64 %258, i64* %8
%259 = load i8*, i8** %6
%260 = load i8, i8* %259
%261 = sext i8 %260 to i32
%262 = icmp eq i32 %261, 45
br i1 %262, label %263, label %266
263: ; preds = %229
%264 = load i64, i64* %8
%265 = sub nsw i64 0, %264
store i64 %265, i64* %8
br label %266
266: ; preds = %263, %229
br label %267
267: ; preds = %266, %164
%268 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%269 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %268, i32 0, i32 2
%270 = load i64, i64* %269
%271 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 2
store i64 %270, i64* %271
%272 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 3
store i64 0, i64* %272
%273 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 0
store i32 24, i32* %273
%274 = getelementptr inbounds [24 x i8], [24 x i8]* %10, i64 0, i64 0
%275 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 1
store i8* %274, i8** %275
%276 = load i64, i64* %8
%277 = mul nsw i64 %276, 60
%278 = load i32*, i32** %5
%279 = call i32* @X509_time_adj(%struct.TYPE_4__* %7, i64 %277, i32* %278)
%280 = icmp eq i32* %279, null
br i1 %280, label %281, label %282
281: ; preds = %267
store i32 0, i32* %3
br label %340
282: ; preds = %267
%283 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4
%284 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %283, i32 0, i32 2
%285 = load i64, i64* %284
%286 = load i64, i64* @V_ASN1_UTCTIME
%287 = icmp eq i64 %285, %286
br i1 %287, label %288, label %331
288: ; preds = %282
%289 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%290 = load i8, i8* %289
%291 = sext i8 %290 to i32
%292 = sub nsw i32 %291, 48
%293 = mul nsw i32 %292, 10
%294 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 1
%295 = load i8, i8* %294
%296 = sext i8 %295 to i32
%297 = sub nsw i32 %296, 48
%298 = add nsw i32 %293, %297
store i32 %298, i32* %12
%299 = load i32, i32* %12
%300 = icmp slt i32 %299, 50
br i1 %300, label %301, label %304
301: ; preds = %288
%302 = load i32, i32* %12
%303 = add nsw i32 %302, 100
store i32 %303, i32* %12
br label %304
304: ; preds = %301, %288
%305 = getelementptr inbounds [24 x i8], [24 x i8]* %10, i64 0, i64 0
%306 = load i8, i8* %305
%307 = sext i8 %306 to i32
%308 = sub nsw i32 %307, 48
%309 = mul nsw i32 %308, 10
%310 = getelementptr inbounds [24 x i8], [24 x i8]* %10, i64 0, i64 1
%311 = load i8, i8* %310
%312 = sext i8 %311 to i32
%313 = sub nsw i32 %312, 48
%314 = add nsw i32 %309, %313
store i32 %314, i32* %13
%315 = load i32, i32* %13
%316 = icmp slt i32 %315, 50
br i1 %316, label %317, label %320
317: ; preds = %304
%318 = load i32, i32* %13
%319 = add nsw i32 %318, 100
store i32 %319, i32* %13
br label %320
320: ; preds = %317, %304
%321 = load i32, i32* %12
%322 = load i32, i32* %13
%323 = icmp slt i32 %321, %322
br i1 %323, label %324, label %325
324: ; preds = %320
store i32 -1, i32* %3
br label %340
325: ; preds = %320
%326 = load i32, i32* %12
%327 = load i32, i32* %13
%328 = icmp sgt i32 %326, %327
br i1 %328, label %329, label %330
329: ; preds = %325
store i32 1, i32* %3
br label %340
330: ; preds = %325
br label %331
331: ; preds = %330, %282
%332 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%333 = getelementptr inbounds [24 x i8], [24 x i8]* %10, i64 0, i64 0
%334 = call i32 @strcmp(i8* %332, i8* %333)
store i32 %334, i32* %12
%335 = load i32, i32* %12
%336 = icmp eq i32 %335, 0
br i1 %336, label %337, label %338
337: ; preds = %331
store i32 -1, i32* %3
br label %340
338: ; preds = %331
%339 = load i32, i32* %12
store i32 %339, i32* %3
br label %340
340: ; preds = %338, %337, %329, %324, %281, %228, %179, %175, %163, %154, %92, %58, %39
%341 = load i32, i32* %3
ret i32 %341
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32, i8*, i64, i64 }
@V_ASN1_UTCTIME = global i64 0
define i32 @X509_cmp_time(%struct.TYPE_4__* nocapture %0, i32* %1) {
%3 = alloca %struct.TYPE_4__
%4 = alloca [24 x i8]
%5 = alloca [24 x i8]
%6 = bitcast %struct.TYPE_4__* %3 to i8*
%7 = getelementptr inbounds [24 x i8], [24 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 0
%10 = load i32, i32* %9
%11 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 1
%12 = load i8*, i8** %11
%13 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %0, i64 0, i32 2
%14 = load i64, i64* %13
%15 = load i64, i64* @V_ASN1_UTCTIME
%16 = icmp eq i64 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = add i32 %10, -18
%19 = icmp ult i32 %18, -7
br i1 %19, label %180, label %23
20: ; preds = %2
%21 = add i32 %10, -24
%22 = icmp ult i32 %21, -11
br i1 %22, label %180, label %23
23: ; preds = %20, %17
%24 = phi i32 [ 10, %17 ], [ 12, %20 ]
%25 = phi i64 [ 10, %17 ], [ 12, %20 ]
%26 = phi i32 [ -10, %17 ], [ -12, %20 ]
%27 = call i32 @memcpy(i8* %7, i8* %12, i32 %24)
%28 = getelementptr inbounds [24 x i8], [24 x i8]* %4, i64 0, i64 %25
%29 = getelementptr inbounds i8, i8* %12, i64 %25
%30 = add nsw i32 %10, %26
%31 = load i8, i8* %29
switch i8 %31, label %34 [
i8 90, label %32
i8 45, label %32
i8 43, label %32
]
32: ; preds = %23, %23, %23
%33 = getelementptr inbounds i8, i8* %28, i64 1
store i8 48, i8* %28
store i8 48, i8* %33
br label %81
34: ; preds = %23
%35 = icmp ult i32 %30, 2
br i1 %35, label %180, label %36
36: ; preds = %34
%37 = getelementptr inbounds i8, i8* %29, i64 1
%38 = getelementptr inbounds i8, i8* %28, i64 1
store i8 %31, i8* %28
%39 = getelementptr inbounds i8, i8* %29, i64 2
%40 = load i8, i8* %37
store i8 %40, i8* %38
%41 = add nsw i32 %30, -2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = getelementptr inbounds i8, i8* %28, i64 2
%45 = getelementptr inbounds i8, i8* %28, i64 3
store i8 90, i8* %44
store i8 0, i8* %45
br label %180
46: ; preds = %36
%47 = load i8, i8* %39
%48 = icmp eq i8 %47, 46
br i1 %48, label %49, label %81
49: ; preds = %46
%50 = add nsw i32 %30, -3
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = getelementptr inbounds i8, i8* %28, i64 2
%54 = getelementptr inbounds i8, i8* %28, i64 3
store i8 90, i8* %53
store i8 0, i8* %54
br label %180
55: ; preds = %49
%56 = getelementptr inbounds i8, i8* %29, i64 3
%57 = add nsw i32 %30, -4
%58 = call i32 @llvm.umin.i32(i32 %57, i32 2)
%59 = load i8, i8* %56
%60 = add i8 %59, -58
%61 = icmp ult i8 %60, -10
br i1 %61, label %86, label %62
62: ; preds = %55
%63 = getelementptr inbounds i8, i8* %56, i64 1
%64 = add nsw i32 %30, -4
%65 = icmp eq i32 %58, 0
br i1 %65, label %86, label %66
66: ; preds = %62
%67 = load i8, i8* %63
%68 = add i8 %67, -58
%69 = icmp ult i8 %68, -10
br i1 %69, label %86, label %70
70: ; preds = %66
%71 = getelementptr inbounds i8, i8* %63, i64 1
%72 = add nsw i32 %30, -5
%73 = icmp eq i32 %58, 1
br i1 %73, label %86, label %74
74: ; preds = %70
%75 = load i8, i8* %71
%76 = add i8 %75, -58
%77 = icmp ult i8 %76, -10
br i1 %77, label %86, label %78
78: ; preds = %74
%79 = getelementptr inbounds i8, i8* %71, i64 1
%80 = add nsw i32 %30, -6
br label %86
81: ; preds = %32, %46
%82 = phi i32 [ %41, %46 ], [ %30, %32 ]
%83 = phi i8* [ %39, %46 ], [ %29, %32 ]
%84 = getelementptr inbounds i8, i8* %28, i64 2
%85 = getelementptr inbounds i8, i8* %28, i64 3
store i8 90, i8* %84
store i8 0, i8* %85
br label %92
86: ; preds = %78, %74, %70, %66, %62, %55
%87 = phi i32 [ %64, %62 ], [ %50, %55 ], [ %64, %66 ], [ %72, %70 ], [ %72, %74 ], [ %80, %78 ]
%88 = phi i8* [ %63, %62 ], [ %56, %55 ], [ %63, %66 ], [ %71, %70 ], [ %71, %74 ], [ %79, %78 ]
%89 = getelementptr inbounds i8, i8* %28, i64 2
%90 = getelementptr inbounds i8, i8* %28, i64 3
store i8 90, i8* %89
store i8 0, i8* %90
%91 = icmp eq i32 %87, 0
br i1 %91, label %180, label %92
92: ; preds = %81, %86
%93 = phi i8* [ %83, %81 ], [ %88, %86 ]
%94 = phi i32 [ %82, %81 ], [ %87, %86 ]
%95 = load i8, i8* %93
switch i8 %95, label %180 [
i8 90, label %96
i8 43, label %98
i8 45, label %98
]
96: ; preds = %92
%97 = icmp eq i32 %94, 1
br i1 %97, label %139, label %180
98: ; preds = %92, %92
%99 = icmp eq i32 %94, 5
br i1 %99, label %100, label %180
100: ; preds = %98
%101 = getelementptr inbounds i8, i8* %93, i64 1
%102 = load i8, i8* %101
%103 = sext i8 %102 to i64
%104 = add i8 %102, -58
%105 = icmp ult i8 %104, -10
br i1 %105, label %180, label %106
106: ; preds = %100
%107 = getelementptr inbounds i8, i8* %93, i64 2
%108 = load i8, i8* %107
%109 = sext i8 %108 to i64
%110 = add i8 %108, -58
%111 = icmp ult i8 %110, -10
br i1 %111, label %180, label %112
112: ; preds = %106
%113 = getelementptr inbounds i8, i8* %93, i64 3
%114 = load i8, i8* %113
%115 = sext i8 %114 to i64
%116 = add i8 %114, -58
%117 = icmp ult i8 %116, -10
br i1 %117, label %180, label %118
118: ; preds = %112
%119 = getelementptr inbounds i8, i8* %93, i64 4
%120 = load i8, i8* %119
%121 = add i8 %120, -58
%122 = icmp ult i8 %121, -10
br i1 %122, label %180, label %123
123: ; preds = %118
%124 = zext i8 %120 to i64
%125 = mul nsw i64 %103, 10
%126 = add nsw i64 %125, %109
%127 = mul nsw i64 %126, 60
%128 = add nsw i64 %127, 4294935616
%129 = and i64 %128, 4294967292
%130 = mul nsw i64 %115, 10
%131 = add nsw i64 %130, 4294966768
%132 = add nuw nsw i64 %131, %124
%133 = and i64 %132, 4294967295
%134 = add nuw nsw i64 %133, %129
%135 = icmp eq i8 %95, 45
%136 = sub nsw i64 0, %134
%137 = select i1 %135, i64 %136, i64 %134
%138 = mul nsw i64 %137, 60
br label %139
139: ; preds = %123, %96
%140 = phi i64 [ 0, %96 ], [ %138, %123 ]
%141 = load i64, i64* %13
%142 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 2
store i64 %141, i64* %142
%143 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 3
store i64 0, i64* %143
%144 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 0
store i32 24, i32* %144
%145 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 1
store i8* %8, i8** %145
%146 = call i32* @X509_time_adj(%struct.TYPE_4__* %3, i64 %140, i32* %1)
%147 = icmp eq i32* %146, null
br i1 %147, label %180, label %148
148: ; preds = %139
%149 = load i64, i64* %13
%150 = load i64, i64* @V_ASN1_UTCTIME
%151 = icmp eq i64 %149, %150
br i1 %151, label %152, label %176
152: ; preds = %148
%153 = load i8, i8* %7
%154 = sext i8 %153 to i32
%155 = mul nsw i32 %154, 10
%156 = getelementptr inbounds [24 x i8], [24 x i8]* %4, i64 0, i64 1
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = add nsw i32 %155, %158
%160 = icmp slt i32 %159, 578
%161 = select i1 %160, i32 -428, i32 -528
%162 = add nsw i32 %161, %159
%163 = load i8, i8* %8
%164 = sext i8 %163 to i32
%165 = mul nsw i32 %164, 10
%166 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 1
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = add nsw i32 %165, %168
%170 = icmp slt i32 %169, 578
%171 = select i1 %170, i32 -428, i32 -528
%172 = add nsw i32 %171, %169
%173 = icmp slt i32 %162, %172
br i1 %173, label %180, label %174
174: ; preds = %152
%175 = icmp sgt i32 %162, %172
br i1 %175, label %180, label %176
176: ; preds = %174, %148
%177 = call i32 @strcmp(i8* %7, i8* %8)
%178 = icmp eq i32 %177, 0
%179 = select i1 %178, i32 -1, i32 %177
br label %180
180: ; preds = %52, %43, %20, %17, %176, %174, %152, %139, %100, %106, %112, %118, %98, %92, %96, %86, %34
%181 = phi i32 [ 0, %34 ], [ 0, %86 ], [ 0, %96 ], [ 0, %92 ], [ 0, %98 ], [ 0, %118 ], [ 0, %112 ], [ 0, %106 ], [ 0, %100 ], [ 0, %139 ], [ -1, %152 ], [ 1, %174 ], [ %179, %176 ], [ 0, %17 ], [ 0, %20 ], [ 0, %43 ], [ 0, %52 ]
ret i32 %181
}