#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_mday;
  long tm_mon;
  int tm_year;
  int tm_hour;
  int tm_min;
  int tm_sec;
  long tm_wday;
};

/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
scalar_t__ scan_mon(char *, long *);
scalar_t__ scan_wday(char *, long *);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ tm_to_time(struct tm *);
time_t dateparse(char *str) {
  struct tm tm;
  char *cp;
  char str_mon[500], str_wday[500];
  int tm_sec, tm_min, tm_hour, tm_mday, tm_year;
  long tm_mon, tm_wday;
  (void)memset((char *)&tm, 0, sizeof(struct tm));
  for (cp = str; *cp == ' ' || *cp == '\t'; ++cp) {
    continue;
  }
  if (sscanf(cp, "%d-%400[a-zA-Z]-%d %d:%d:%d GMT", &tm_mday, str_mon, &tm_year,
             &tm_hour, &tm_min, &tm_sec) == 6 &&
      scan_mon(str_mon, &tm_mon)) {
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
  } else if (sscanf(cp, "%d %400[a-zA-Z] %d %d:%d:%d GMT", &tm_mday, str_mon,
                    &tm_year, &tm_hour, &tm_min, &tm_sec) == 6 &&
             scan_mon(str_mon, &tm_mon)) {
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
  } else if (sscanf(cp, "%d:%d:%d GMT %d-%400[a-zA-Z]-%d", &tm_hour, &tm_min,
                    &tm_sec, &tm_mday, str_mon, &tm_year) == 6 &&
             scan_mon(str_mon, &tm_mon)) {
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
  } else if (sscanf(cp, "%d:%d:%d GMT %d %400[a-zA-Z] %d", &tm_hour, &tm_min,
                    &tm_sec, &tm_mday, str_mon, &tm_year) == 6 &&
             scan_mon(str_mon, &tm_mon)) {
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
  } else if (sscanf(cp, "%400[a-zA-Z], %d-%400[a-zA-Z]-%d %d:%d:%d GMT",
                    str_wday, &tm_mday, str_mon, &tm_year, &tm_hour, &tm_min,
                    &tm_sec) == 7 &&
             scan_wday(str_wday, &tm_wday) && scan_mon(str_mon, &tm_mon)) {
    tm.tm_wday = tm_wday;
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
  } else if (sscanf(cp, "%400[a-zA-Z], %d %400[a-zA-Z] %d %d:%d:%d GMT",
                    str_wday, &tm_mday, str_mon, &tm_year, &tm_hour, &tm_min,
                    &tm_sec) == 7 &&
             scan_wday(str_wday, &tm_wday) && scan_mon(str_mon, &tm_mon)) {
    tm.tm_wday = tm_wday;
    tm.tm_mday = tm_mday;
    tm.tm_mon = tm_mon;
    tm.tm_year = tm_year;
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
  } else if (sscanf(cp, "%400[a-zA-Z] %400[a-zA-Z] %d %d:%d:%d GMT %d",
                    str_wday, str_mon, &tm_mday, &tm_hour, &tm_min, &tm_sec,
                    &tm_year) == 7 &&
             scan_wday(str_wday, &tm_wday) && scan_mon(str_mon, &tm_mon)) {
    tm.tm_wday = tm_wday;
    tm.tm_mon = tm_mon;
    tm.tm_mday = tm_mday;
    tm.tm_hour = tm_hour;
    tm.tm_min = tm_min;
    tm.tm_sec = tm_sec;
    tm.tm_year = tm_year;
  } else {
    return (time_t)-1;
  }
  if (tm.tm_year > 1900) {
    tm.tm_year -= 1900;
  } else if (tm.tm_year < 70) {
    tm.tm_year += 100;
  }
  return tm_to_time(&tm);
}


x86 assembly (clang, -O0):
<dateparse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x490,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x469(%rbp)
je     11a2 <dateparse+0x52>
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x469(%rbp)
mov    -0x469(%rbp),%al
test   $0x1,%al
jne    11b5 <dateparse+0x65>
jmp    11cb <dateparse+0x7b>
jmp    11ba <dateparse+0x6a>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1177 <dateparse+0x27>
mov    -0x40(%rbp),%rdi
lea    -0x240(%rbp),%rcx
lea    0xe71(%rip),%rsi
lea    -0x450(%rbp),%rdx
lea    -0x454(%rbp),%r8
lea    -0x44c(%rbp),%r9
lea    -0x448(%rbp),%r10
lea    -0x444(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x6,%eax
jne    1273 <dateparse+0x123>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     1273 <dateparse+0x123>
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1729 <dateparse+0x5d9>
mov    -0x40(%rbp),%rdi
lea    -0x240(%rbp),%rcx
lea    0xdf7(%rip),%rsi
lea    -0x450(%rbp),%rdx
lea    -0x454(%rbp),%r8
lea    -0x44c(%rbp),%r9
lea    -0x448(%rbp),%r10
lea    -0x444(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x6,%eax
jne    131b <dateparse+0x1cb>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     131b <dateparse+0x1cb>
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1724 <dateparse+0x5d4>
mov    -0x40(%rbp),%rdi
lea    -0x240(%rbp),%r10
lea    0xcd3(%rip),%rsi
lea    -0x44c(%rbp),%rdx
lea    -0x448(%rbp),%rcx
lea    -0x444(%rbp),%r8
lea    -0x450(%rbp),%r9
lea    -0x454(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x6,%eax
jne    13c3 <dateparse+0x273>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     13c3 <dateparse+0x273>
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    171f <dateparse+0x5cf>
mov    -0x40(%rbp),%rdi
lea    -0x240(%rbp),%r10
lea    0xc4b(%rip),%rsi
lea    -0x44c(%rbp),%rdx
lea    -0x448(%rbp),%rcx
lea    -0x444(%rbp),%r8
lea    -0x450(%rbp),%r9
lea    -0x454(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x6,%eax
jne    146b <dateparse+0x31b>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     146b <dateparse+0x31b>
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    171a <dateparse+0x5ca>
mov    -0x40(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    -0x240(%rbp),%r8
lea    0xbbc(%rip),%rsi
lea    -0x450(%rbp),%rcx
lea    -0x454(%rbp),%r9
lea    -0x44c(%rbp),%r11
lea    -0x448(%rbp),%r10
lea    -0x444(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x7,%eax
jne    1547 <dateparse+0x3f7>
lea    -0x440(%rbp),%rdi
lea    -0x468(%rbp),%rsi
call   1060 <scan_wday@plt>
cmp    $0x0,%rax
je     1547 <dateparse+0x3f7>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     1547 <dateparse+0x3f7>
mov    -0x468(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1715 <dateparse+0x5c5>
mov    -0x40(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    -0x240(%rbp),%r8
lea    0xb0e(%rip),%rsi
lea    -0x450(%rbp),%rcx
lea    -0x454(%rbp),%r9
lea    -0x44c(%rbp),%r11
lea    -0x448(%rbp),%r10
lea    -0x444(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x7,%eax
jne    1623 <dateparse+0x4d3>
lea    -0x440(%rbp),%rdi
lea    -0x468(%rbp),%rsi
call   1060 <scan_wday@plt>
cmp    $0x0,%rax
je     1623 <dateparse+0x4d3>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     1623 <dateparse+0x4d3>
mov    -0x468(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1710 <dateparse+0x5c0>
mov    -0x40(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    -0x240(%rbp),%rcx
lea    0xa60(%rip),%rsi
lea    -0x450(%rbp),%r8
lea    -0x44c(%rbp),%r9
lea    -0x448(%rbp),%r11
lea    -0x444(%rbp),%r10
lea    -0x454(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
cmp    $0x7,%eax
jne    16ff <dateparse+0x5af>
lea    -0x440(%rbp),%rdi
lea    -0x468(%rbp),%rsi
call   1060 <scan_wday@plt>
cmp    $0x0,%rax
je     16ff <dateparse+0x5af>
lea    -0x240(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   1050 <scan_mon@plt>
cmp    $0x0,%rax
je     16ff <dateparse+0x5af>
mov    -0x468(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x460(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x450(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x44c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x448(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x444(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x454(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    170b <dateparse+0x5bb>
movl   $0xffffffff,-0x4(%rbp)
jmp    176a <dateparse+0x61a>
jmp    1710 <dateparse+0x5c0>
jmp    1715 <dateparse+0x5c5>
jmp    171a <dateparse+0x5ca>
jmp    171f <dateparse+0x5cf>
jmp    1724 <dateparse+0x5d4>
jmp    1729 <dateparse+0x5d9>
cmpl   $0x76c,-0x28(%rbp)
jle    1746 <dateparse+0x5f6>
mov    -0x28(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x28(%rbp)
jmp    175e <dateparse+0x60e>
cmpl   $0x46,-0x28(%rbp)
jge    1759 <dateparse+0x609>
mov    -0x28(%rbp),%eax
add    $0x64,%eax
mov    %eax,-0x28(%rbp)
jmp    175e <dateparse+0x60e>
lea    -0x38(%rbp),%rdi
call   1070 <tm_to_time@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x490,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dateparse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x448,%rsp
mov    %rdi,%rbx
lea    0x20(%rsp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
jmp    1184 <dateparse+0x34>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%al
je     1180 <dateparse+0x30>
cmp    $0x9,%al
je     1180 <dateparse+0x30>
lea    0x14(%rsp),%rbp
lea    0x10(%rsp),%r15
lea    0xeae(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x50(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
push   %rbp
push   %r15
call   1040 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x6,%eax
jne    11e2 <dateparse+0x92>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
jne    13dc <dateparse+0x28c>
lea    0xe93(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x50(%rsp),%r13
lea    0xc(%rsp),%r14
lea    0x8(%rsp),%r9
mov    %rbx,%rdi
mov    %r13,%rcx
mov    %r14,%r8
xor    %eax,%eax
push   %rbp
push   %r15
call   1040 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x6,%eax
jne    1231 <dateparse+0xe1>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
jne    13dc <dateparse+0x28c>
lea    0xdc8(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x4(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
push   %r14
push   %r13
call   1040 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x6,%eax
jne    1277 <dateparse+0x127>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
jne    12c6 <dateparse+0x176>
lea    0xda2(%rip),%rsi
lea    0x8(%rsp),%r12
lea    0x10(%rsp),%rbp
lea    0x14(%rsp),%r15
lea    0x4(%rsp),%r9
mov    %rbx,%rdi
mov    %r12,%rdx
mov    %rbp,%rcx
mov    %r15,%r8
xor    %eax,%eax
push   %r14
push   %r13
call   1040 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x6,%eax
jne    12fd <dateparse+0x1ad>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
je     12fd <dateparse+0x1ad>
mov    0x8(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x10(%rsp),%eax
mov    %eax,0x38(%rsp)
mov    0x14(%rsp),%eax
mov    %eax,0x3c(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x18(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,0x30(%rsp)
jmp    140e <dateparse+0x2be>
sub    $0x8,%rsp
lea    0xd38(%rip),%rsi
lea    0x258(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x58(%rsp),%r8
lea    0x14(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
push   %r15
push   %rbp
push   %r12
call   1040 <sscanf@plt>
add    $0x20,%rsp
cmp    $0x7,%eax
jne    1362 <dateparse+0x212>
lea    0x250(%rsp),%rdi
lea    0x48(%rsp),%rsi
call   1060 <scan_wday@plt>
test   %rax,%rax
je     1362 <dateparse+0x212>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
jne    13d2 <dateparse+0x282>
sub    $0x8,%rsp
lea    0xd01(%rip),%rsi
lea    0x258(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x58(%rsp),%r8
lea    0x14(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%r9
xor    %eax,%eax
push   %r15
push   %rbp
push   %r12
call   1040 <sscanf@plt>
add    $0x20,%rsp
cmp    $0x7,%eax
jne    144a <dateparse+0x2fa>
lea    0x250(%rsp),%rdi
lea    0x48(%rsp),%rsi
call   1060 <scan_wday@plt>
test   %rax,%rax
je     144a <dateparse+0x2fa>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
je     144a <dateparse+0x2fa>
mov    0x48(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x18(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x8(%rsp),%ecx
mov    %ecx,0x34(%rsp)
mov    0x10(%rsp),%ecx
mov    %ecx,0x38(%rsp)
mov    0x14(%rsp),%ecx
mov    %ecx,0x3c(%rsp)
mov    $0xfffff894,%ecx
cmp    $0x76c,%eax
jg     1424 <dateparse+0x2d4>
mov    $0x64,%ecx
cmp    $0x45,%eax
jg     142a <dateparse+0x2da>
add    %ecx,%eax
mov    %eax,0x30(%rsp)
lea    0x20(%rsp),%rdi
call   1070 <tm_to_time@plt>
mov    %eax,%ebx
mov    %ebx,%eax
add    $0x448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
sub    $0x8,%rsp
lea    0xc47(%rip),%rsi
lea    0x258(%rsp),%rdx
lea    0x58(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
push   %r14
push   %r15
push   %rbp
call   1040 <sscanf@plt>
add    $0x20,%rsp
mov    $0xffffffff,%ebx
cmp    $0x7,%eax
jne    1436 <dateparse+0x2e6>
lea    0x250(%rsp),%rdi
lea    0x48(%rsp),%rsi
call   1060 <scan_wday@plt>
test   %rax,%rax
je     1436 <dateparse+0x2e6>
lea    0x50(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1050 <scan_mon@plt>
test   %rax,%rax
je     1436 <dateparse+0x2e6>
mov    0x48(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0x18(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x10(%rsp),%eax
mov    %eax,0x38(%rsp)
mov    0x14(%rsp),%eax
mov    %eax,0x3c(%rsp)
jmp    12f0 <dateparse+0x1a0>

LLVM IR (-O0):
%struct.tm = type { i32, i64, i32, i32, i32, i32, i64 }
@.str = [32 x i8] c"%d-%400[a-zA-Z]-%d %d:%d:%d GMT\00"
@.str.1 = [32 x i8] c"%d %400[a-zA-Z] %d %d:%d:%d GMT\00"
@.str.2 = [32 x i8] c"%d:%d:%d GMT %d-%400[a-zA-Z]-%d\00"
@.str.3 = [32 x i8] c"%d:%d:%d GMT %d %400[a-zA-Z] %d\00"
@.str.4 = [46 x i8] c"%400[a-zA-Z], %d-%400[a-zA-Z]-%d %d:%d:%d GMT\00"
@.str.5 = [46 x i8] c"%400[a-zA-Z], %d %400[a-zA-Z] %d %d:%d:%d GMT\00"
@.str.6 = [45 x i8] c"%400[a-zA-Z] %400[a-zA-Z] %d %d:%d:%d GMT %d\00"
define i32 @dateparse(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.tm
%5 = alloca i8*
%6 = alloca [500 x i8]
%7 = alloca [500 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i64
%14 = alloca i64
store i8* %0, i8** %3
%15 = bitcast %struct.tm* %4 to i8*
%16 = call i32 @memset(i8* %15, i32 0, i32 40)
%17 = load i8*, i8** %3
store i8* %17, i8** %5
br label %18
18: ; preds = %31, %1
%19 = load i8*, i8** %5
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 32
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = load i8*, i8** %5
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 9
br label %28
28: ; preds = %23, %18
%29 = phi i1 [ true, %18 ], [ %27, %23 ]
br i1 %29, label %30, label %34
30: ; preds = %28
br label %31
31: ; preds = %30
%32 = load i8*, i8** %5
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %5
br label %18
34: ; preds = %28
%35 = load i8*, i8** %5
%36 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%37 = call i32 (i8*, i8*, ...) @sscanf(i8* %35, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32* %11, i8* %36, i32* %12, i32* %10, i32* %9, i32* %8)
%38 = icmp eq i32 %37, 6
br i1 %38, label %39, label %56
39: ; preds = %34
%40 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%41 = call i64 @scan_mon(i8* %40, i64* %13)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %39
%44 = load i32, i32* %11
%45 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %44, i32* %45
%46 = load i64, i64* %13
%47 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %46, i64* %47
%48 = load i32, i32* %12
%49 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %48, i32* %49
%50 = load i32, i32* %10
%51 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %50, i32* %51
%52 = load i32, i32* %9
%53 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %52, i32* %53
%54 = load i32, i32* %8
%55 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %54, i32* %55
br label %216
56: ; preds = %39, %34
%57 = load i8*, i8** %5
%58 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%59 = call i32 (i8*, i8*, ...) @sscanf(i8* %57, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32* %11, i8* %58, i32* %12, i32* %10, i32* %9, i32* %8)
%60 = icmp eq i32 %59, 6
br i1 %60, label %61, label %78
61: ; preds = %56
%62 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%63 = call i64 @scan_mon(i8* %62, i64* %13)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %78
65: ; preds = %61
%66 = load i32, i32* %11
%67 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %66, i32* %67
%68 = load i64, i64* %13
%69 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %68, i64* %69
%70 = load i32, i32* %12
%71 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %70, i32* %71
%72 = load i32, i32* %10
%73 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %72, i32* %73
%74 = load i32, i32* %9
%75 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %74, i32* %75
%76 = load i32, i32* %8
%77 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %76, i32* %77
br label %215
78: ; preds = %61, %56
%79 = load i8*, i8** %5
%80 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%81 = call i32 (i8*, i8*, ...) @sscanf(i8* %79, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32* %10, i32* %9, i32* %8, i32* %11, i8* %80, i32* %12)
%82 = icmp eq i32 %81, 6
br i1 %82, label %83, label %100
83: ; preds = %78
%84 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%85 = call i64 @scan_mon(i8* %84, i64* %13)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %100
87: ; preds = %83
%88 = load i32, i32* %10
%89 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %88, i32* %89
%90 = load i32, i32* %9
%91 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %90, i32* %91
%92 = load i32, i32* %8
%93 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %92, i32* %93
%94 = load i32, i32* %11
%95 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %94, i32* %95
%96 = load i64, i64* %13
%97 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %96, i64* %97
%98 = load i32, i32* %12
%99 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %98, i32* %99
br label %214
100: ; preds = %83, %78
%101 = load i8*, i8** %5
%102 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%103 = call i32 (i8*, i8*, ...) @sscanf(i8* %101, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i32* %10, i32* %9, i32* %8, i32* %11, i8* %102, i32* %12)
%104 = icmp eq i32 %103, 6
br i1 %104, label %105, label %122
105: ; preds = %100
%106 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%107 = call i64 @scan_mon(i8* %106, i64* %13)
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %122
109: ; preds = %105
%110 = load i32, i32* %10
%111 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %110, i32* %111
%112 = load i32, i32* %9
%113 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %112, i32* %113
%114 = load i32, i32* %8
%115 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %114, i32* %115
%116 = load i32, i32* %11
%117 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %116, i32* %117
%118 = load i64, i64* %13
%119 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %118, i64* %119
%120 = load i32, i32* %12
%121 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %120, i32* %121
br label %213
122: ; preds = %105, %100
%123 = load i8*, i8** %5
%124 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%125 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%126 = call i32 (i8*, i8*, ...) @sscanf(i8* %123, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i8* %124, i32* %11, i8* %125, i32* %12, i32* %10, i32* %9, i32* %8)
%127 = icmp eq i32 %126, 7
br i1 %127, label %128, label %151
128: ; preds = %122
%129 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%130 = call i64 @scan_wday(i8* %129, i64* %14)
%131 = icmp ne i64 %130, 0
br i1 %131, label %132, label %151
132: ; preds = %128
%133 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%134 = call i64 @scan_mon(i8* %133, i64* %13)
%135 = icmp ne i64 %134, 0
br i1 %135, label %136, label %151
136: ; preds = %132
%137 = load i64, i64* %14
%138 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 6
store i64 %137, i64* %138
%139 = load i32, i32* %11
%140 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %139, i32* %140
%141 = load i64, i64* %13
%142 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %141, i64* %142
%143 = load i32, i32* %12
%144 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %143, i32* %144
%145 = load i32, i32* %10
%146 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %145, i32* %146
%147 = load i32, i32* %9
%148 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %147, i32* %148
%149 = load i32, i32* %8
%150 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %149, i32* %150
br label %212
151: ; preds = %132, %128, %122
%152 = load i8*, i8** %5
%153 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%154 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%155 = call i32 (i8*, i8*, ...) @sscanf(i8* %152, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), i8* %153, i32* %11, i8* %154, i32* %12, i32* %10, i32* %9, i32* %8)
%156 = icmp eq i32 %155, 7
br i1 %156, label %157, label %180
157: ; preds = %151
%158 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%159 = call i64 @scan_wday(i8* %158, i64* %14)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %180
161: ; preds = %157
%162 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%163 = call i64 @scan_mon(i8* %162, i64* %13)
%164 = icmp ne i64 %163, 0
br i1 %164, label %165, label %180
165: ; preds = %161
%166 = load i64, i64* %14
%167 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 6
store i64 %166, i64* %167
%168 = load i32, i32* %11
%169 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %168, i32* %169
%170 = load i64, i64* %13
%171 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %170, i64* %171
%172 = load i32, i32* %12
%173 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %172, i32* %173
%174 = load i32, i32* %10
%175 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %174, i32* %175
%176 = load i32, i32* %9
%177 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %176, i32* %177
%178 = load i32, i32* %8
%179 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %178, i32* %179
br label %211
180: ; preds = %161, %157, %151
%181 = load i8*, i8** %5
%182 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%183 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%184 = call i32 (i8*, i8*, ...) @sscanf(i8* %181, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i8* %182, i8* %183, i32* %11, i32* %10, i32* %9, i32* %8, i32* %12)
%185 = icmp eq i32 %184, 7
br i1 %185, label %186, label %209
186: ; preds = %180
%187 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%188 = call i64 @scan_wday(i8* %187, i64* %14)
%189 = icmp ne i64 %188, 0
br i1 %189, label %190, label %209
190: ; preds = %186
%191 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%192 = call i64 @scan_mon(i8* %191, i64* %13)
%193 = icmp ne i64 %192, 0
br i1 %193, label %194, label %209
194: ; preds = %190
%195 = load i64, i64* %14
%196 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 6
store i64 %195, i64* %196
%197 = load i64, i64* %13
%198 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 1
store i64 %197, i64* %198
%199 = load i32, i32* %11
%200 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
store i32 %199, i32* %200
%201 = load i32, i32* %10
%202 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 3
store i32 %201, i32* %202
%203 = load i32, i32* %9
%204 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 4
store i32 %203, i32* %204
%205 = load i32, i32* %8
%206 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 5
store i32 %205, i32* %206
%207 = load i32, i32* %12
%208 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
store i32 %207, i32* %208
br label %210
209: ; preds = %190, %186, %180
store i32 -1, i32* %2
br label %235
210: ; preds = %194
br label %211
211: ; preds = %210, %165
br label %212
212: ; preds = %211, %136
br label %213
213: ; preds = %212, %109
br label %214
214: ; preds = %213, %87
br label %215
215: ; preds = %214, %65
br label %216
216: ; preds = %215, %43
%217 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%218 = load i32, i32* %217
%219 = icmp sgt i32 %218, 1900
br i1 %219, label %220, label %224
220: ; preds = %216
%221 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%222 = load i32, i32* %221
%223 = sub nsw i32 %222, 1900
store i32 %223, i32* %221
br label %233
224: ; preds = %216
%225 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%226 = load i32, i32* %225
%227 = icmp slt i32 %226, 70
br i1 %227, label %228, label %232
228: ; preds = %224
%229 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 2
%230 = load i32, i32* %229
%231 = add nsw i32 %230, 100
store i32 %231, i32* %229
br label %232
232: ; preds = %228, %224
br label %233
233: ; preds = %232, %220
%234 = call i32 @tm_to_time(%struct.tm* %4)
store i32 %234, i32* %2
br label %235
235: ; preds = %233, %209
%236 = load i32, i32* %2
ret i32 %236
}

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