#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 */
char *calloc(int, int);
scalar_t__ isalpha(char);
scalar_t__ isdigit(char);
scalar_t__ regCaseEqual(char *, char *);
int /*<<< orphan*/ reg_strcat(char **, long *, char, char *);
char *reg_token_advance(char *, char *, char);
char *reg_tokens_advance(char *, char *, char *);
scalar_t__ strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
void reg_parse_line(char *buf, long *mode, char **stringptr, long *maxlen,
                    long *sys) {
  char *ptr;
  char *optr;
  char sep = 0;
  int include = 1;
  char shape[32767];
  int state = 1;
  int parse_more;
  char *tptr;
  char *iptr;
  if (!*stringptr)
    *stringptr = calloc(32767, sizeof(char));
  iptr = *stringptr;
  if (**stringptr)
    state = 0;
  ptr = buf;
  if ((*mode == 5 || *mode == 6) && ('#' == *ptr))
    return;
  if (!strncmp(ptr, "# filename", 10)) {
    *mode = 2;
    return;
  } else if (!strncmp(ptr, "# Region file format: DS9 version 4", 35)) {
    *mode = 6;
  } else if (!strncmp(ptr, "# Region file format: DS9", 25)) {
    *mode = 5;
  } else if (!strncmp(ptr, "XPA", 3)) {
    *mode = 2;
    return;
  } else if (*ptr == '#') {
    *mode = 1;
    return;
  } else if (*ptr == '+' || *ptr == '-') {
    if (state && (*mode != 5 && *mode != 6))
      *mode = 2;
    include = (*ptr == '+');
    if (state) {
      if (include)
        ptr++;
      else
        strcpy(*stringptr, "FIELD");
    }
    ptr = reg_token_advance(ptr, shape, '#');
    tptr = shape + strlen(shape) - 1;
    while (*tptr == ' ' || *tptr == '\t')
      *tptr-- = '\0';
    reg_strcat(stringptr, maxlen, 0, shape);
  } else if (*mode == 5 || *mode == 6) {
    parse_more = 1;
    while (parse_more) {
      if (!strncmp(ptr, "global", 6)) {
        if (!strncmp(ptr + 7, "coordsys=", 9)) {
          ptr = ptr + 16;
          if (!strncmp(ptr, "physical", 8))
            *sys = 1;
          else if (!strncmp(ptr, "image", 6))
            *sys = 2;
          else if (!strncmp(ptr, "fk", 2))
            *sys = 3;
        }
        return;
      }
      if (*mode == 6) {
        if (!strncmp(ptr, "physical", 8)) {
          *sys = 1;
          return;
        } else if (!strncmp(ptr, "image", 6)) {
          *sys = 2;
          return;
        } else if (!strncmp(ptr, "fk", 2)) {
          *sys = 3;
          return;
        }
      }
      if (!strncmp(ptr, "local", 6))
        return;
      if (*mode == 5) {
        tptr = reg_token_advance(ptr, shape, ';');
        if (regCaseEqual(shape, "PHYSICAL")) {
          *sys = 1;
          ptr = tptr;
        } else if (regCaseEqual(shape, "IMAGE")) {
          *sys = 2;
          ptr = tptr;
        } else if (!strncmp(ptr, "fk", 2)) {
          *sys = 3;
          ptr = tptr;
        }
        while (*ptr == ' ' || *ptr == ';')
          ptr++;
      }
      ptr = reg_tokens_advance(ptr, shape, "#;");
      sep = state ? ' ' : '+';
      state = 1;
      tptr = shape + strlen(shape) - 1;
      while (*tptr == ' ' || *tptr == '\t')
        *tptr-- = '\0';
      if (*shape == '-')
        sep = ' ';
      reg_strcat(stringptr, maxlen, sep, shape);
      if (*ptr == '#') {
        while (*ptr != ';' && *ptr != '\0')
          ptr++;
      }
      if (*ptr != ';')
        parse_more = 0;
      else {
        ptr++;
        while (*ptr == ' ' || *ptr == '\t')
          ptr++;
        if (*ptr == '#')
          parse_more = 0;
      }
    }
  } else {
    optr = ptr;
    ptr = reg_token_advance(ptr, shape, ' ');
    if (shape[strlen(shape) - 1] == ';') {
      *mode = 3;
      if (regCaseEqual(shape, "PHYSICAL;"))
        *sys = 1;
      else if (regCaseEqual(shape, "LOGICAL;"))
        *sys = 2;
      else
        *sys = 3;
      while (*ptr == ' ')
        ptr++;
    } else {
      ptr = optr;
      if (!strchr(shape, '('))
        *mode = 3;
      *sys = 2;
    }
    while (*ptr != 0) {
      optr = ptr;
      ptr = reg_token_advance(ptr, shape, ' ');
      while (*ptr == ' ')
        ptr++;
      if (*shape == '^')
        *shape = '|';
      if (*shape == '&' || *shape == '|' || *shape == '!') {
        sep = state ? 0 : ')';
        reg_strcat(stringptr, maxlen, sep, shape);
        state = 1;
      } else if (*shape == ';') {
        if (!state)
          reg_strcat(stringptr, maxlen, ')', NULL);
        ptr = optr + 1;
      } else if (isalpha(*shape)) {
        sep = state ? ' ' : '+';
        reg_strcat(stringptr, maxlen, sep, shape);
        state = 1;
      } else if (isdigit(*shape) || *shape == '+' ||
                 (*shape == '-' && isdigit(shape[2]))) {
        sep = state ? '(' : ',';
        reg_strcat(stringptr, maxlen, sep, shape);
        state = 0;
        if (strchr(shape, ':') || strchr(shape, '\''))
          *sys = 3;
        if (shape[strlen(shape) - 1] == 'd')
          *sys = 3;
      }
    }
    if (!state)
      reg_strcat(stringptr, maxlen, ')', NULL);
  }
}


x86 assembly (clang, -O0):
<reg_parse_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x8080,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movb   $0x0,-0x39(%rbp)
movl   $0x1,-0x40(%rbp)
movl   $0x1,-0x8044(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    120b <reg_parse_line+0x5b>
mov    $0x7fff,%edi
mov    $0x1,%esi
call   1090 <calloc@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x8058(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
cmpb   $0x0,(%rax)
je     1233 <reg_parse_line+0x83>
movl   $0x0,-0x8044(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x5,(%rax)
je     1257 <reg_parse_line+0xa7>
mov    -0x10(%rbp),%rax
cmpq   $0x6,(%rax)
jne    1270 <reg_parse_line+0xc0>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x23,%eax
cmp    %ecx,%eax
jne    1270 <reg_parse_line+0xc0>
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rdi
lea    0xd85(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    129e <reg_parse_line+0xee>
mov    -0x10(%rbp),%rax
movq   $0x2,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rdi
lea    0xd62(%rip),%rsi
mov    $0x23,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12cc <reg_parse_line+0x11c>
mov    -0x10(%rbp),%rax
movq   $0x6,(%rax)
jmp    1dc0 <reg_parse_line+0xc10>
mov    -0x30(%rbp),%rdi
lea    0xd58(%rip),%rsi
mov    $0x19,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12fa <reg_parse_line+0x14a>
mov    -0x10(%rbp),%rax
movq   $0x5,(%rax)
jmp    1dbb <reg_parse_line+0xc0b>
mov    -0x30(%rbp),%rdi
lea    0xd44(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1328 <reg_parse_line+0x178>
mov    -0x10(%rbp),%rax
movq   $0x2,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1348 <reg_parse_line+0x198>
mov    -0x10(%rbp),%rax
movq   $0x1,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     1368 <reg_parse_line+0x1b8>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    14ba <reg_parse_line+0x30a>
cmpl   $0x0,-0x8044(%rbp)
je     139c <reg_parse_line+0x1ec>
mov    -0x10(%rbp),%rax
cmpq   $0x5,(%rax)
je     139c <reg_parse_line+0x1ec>
mov    -0x10(%rbp),%rax
cmpq   $0x6,(%rax)
je     139c <reg_parse_line+0x1ec>
mov    -0x10(%rbp),%rax
movq   $0x2,(%rax)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x8044(%rbp)
je     13f1 <reg_parse_line+0x241>
cmpl   $0x0,-0x40(%rbp)
je     13d9 <reg_parse_line+0x229>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    13ec <reg_parse_line+0x23c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc66(%rip),%rsi
call   1050 <strcpy@plt>
jmp    13f1 <reg_parse_line+0x241>
mov    -0x30(%rbp),%rdi
lea    -0x8040(%rbp),%rsi
mov    $0x23,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,-0x30(%rbp)
lea    -0x8040(%rbp),%rax
mov    %rax,-0x8060(%rbp)
lea    -0x8040(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x8060(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8050(%rbp)
mov    -0x8050(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x8061(%rbp)
je     146f <reg_parse_line+0x2bf>
mov    -0x8050(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x8061(%rbp)
mov    -0x8061(%rbp),%al
test   $0x1,%al
jne    1482 <reg_parse_line+0x2d2>
jmp    149f <reg_parse_line+0x2ef>
mov    -0x8050(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x8050(%rbp)
movb   $0x0,(%rax)
jmp    143e <reg_parse_line+0x28e>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x8040(%rbp),%rcx
xor    %edx,%edx
call   10b0 <reg_strcat@plt>
jmp    1dac <reg_parse_line+0xbfc>
mov    -0x10(%rbp),%rax
cmpq   $0x5,(%rax)
je     14d6 <reg_parse_line+0x326>
mov    -0x10(%rbp),%rax
cmpq   $0x6,(%rax)
jne    19da <reg_parse_line+0x82a>
movl   $0x1,-0x8048(%rbp)
cmpl   $0x0,-0x8048(%rbp)
je     19d5 <reg_parse_line+0x825>
mov    -0x30(%rbp),%rdi
lea    0xb5b(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    15d2 <reg_parse_line+0x422>
mov    -0x30(%rbp),%rdi
add    $0x7,%rdi
lea    0xb40(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    15cd <reg_parse_line+0x41d>
mov    -0x30(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xb20(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1567 <reg_parse_line+0x3b7>
mov    -0x28(%rbp),%rax
movq   $0x1,(%rax)
jmp    15c8 <reg_parse_line+0x418>
mov    -0x30(%rbp),%rdi
lea    0xafb(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1595 <reg_parse_line+0x3e5>
mov    -0x28(%rbp),%rax
movq   $0x2,(%rax)
jmp    15c3 <reg_parse_line+0x413>
mov    -0x30(%rbp),%rdi
lea    0xad3(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    15be <reg_parse_line+0x40e>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
jmp    15c3 <reg_parse_line+0x413>
jmp    15c8 <reg_parse_line+0x418>
jmp    15cd <reg_parse_line+0x41d>
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x10(%rbp),%rax
cmpq   $0x6,(%rax)
jne    1679 <reg_parse_line+0x4c9>
mov    -0x30(%rbp),%rdi
lea    0xa79(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    160e <reg_parse_line+0x45e>
mov    -0x28(%rbp),%rax
movq   $0x1,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rdi
lea    0xa54(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    163c <reg_parse_line+0x48c>
mov    -0x28(%rbp),%rax
movq   $0x2,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x30(%rbp),%rdi
lea    0xa2c(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    166a <reg_parse_line+0x4ba>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
jmp    1dc5 <reg_parse_line+0xc15>
jmp    166f <reg_parse_line+0x4bf>
jmp    1674 <reg_parse_line+0x4c4>
jmp    1679 <reg_parse_line+0x4c9>
mov    -0x30(%rbp),%rdi
lea    0x9f2(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    169c <reg_parse_line+0x4ec>
jmp    1dc5 <reg_parse_line+0xc15>
mov    -0x10(%rbp),%rax
cmpq   $0x5,(%rax)
jne    17cd <reg_parse_line+0x61d>
mov    -0x30(%rbp),%rdi
lea    -0x8040(%rbp),%rsi
mov    $0x3b,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,-0x8050(%rbp)
lea    -0x8040(%rbp),%rdi
lea    0x9a8(%rip),%rsi
call   1080 <regCaseEqual@plt>
cmp    $0x0,%rax
je     16fe <reg_parse_line+0x54e>
mov    -0x28(%rbp),%rax
movq   $0x1,(%rax)
mov    -0x8050(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    1774 <reg_parse_line+0x5c4>
lea    -0x8040(%rbp),%rdi
lea    0x979(%rip),%rsi
call   1080 <regCaseEqual@plt>
cmp    $0x0,%rax
je     1736 <reg_parse_line+0x586>
mov    -0x28(%rbp),%rax
movq   $0x2,(%rax)
mov    -0x8050(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    176f <reg_parse_line+0x5bf>
mov    -0x30(%rbp),%rdi
lea    0x932(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    176a <reg_parse_line+0x5ba>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
mov    -0x8050(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    176f <reg_parse_line+0x5bf>
jmp    1774 <reg_parse_line+0x5c4>
jmp    1779 <reg_parse_line+0x5c9>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x8062(%rbp)
je     17a4 <reg_parse_line+0x5f4>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
sete   %al
mov    %al,-0x8062(%rbp)
mov    -0x8062(%rbp),%al
test   $0x1,%al
jne    17b7 <reg_parse_line+0x607>
jmp    17c8 <reg_parse_line+0x618>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1779 <reg_parse_line+0x5c9>
jmp    17cd <reg_parse_line+0x61d>
mov    -0x30(%rbp),%rdi
lea    -0x8040(%rbp),%rsi
lea    0x8ac(%rip),%rdx
call   10c0 <reg_tokens_advance@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8044(%rbp),%edx
mov    $0x2b,%eax
mov    $0x20,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,-0x39(%rbp)
movl   $0x1,-0x8044(%rbp)
lea    -0x8040(%rbp),%rax
mov    %rax,-0x8070(%rbp)
lea    -0x8040(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x8070(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8050(%rbp)
mov    -0x8050(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x8071(%rbp)
je     1870 <reg_parse_line+0x6c0>
mov    -0x8050(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x8071(%rbp)
mov    -0x8071(%rbp),%al
test   $0x1,%al
jne    1883 <reg_parse_line+0x6d3>
jmp    18a0 <reg_parse_line+0x6f0>
mov    -0x8050(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x8050(%rbp)
movb   $0x0,(%rax)
jmp    183f <reg_parse_line+0x68f>
movsbl -0x8040(%rbp),%eax
cmp    $0x2d,%eax
jne    18b4 <reg_parse_line+0x704>
movb   $0x20,-0x39(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x39(%rbp),%al
lea    -0x8040(%rbp),%rcx
movsbl %al,%edx
call   10b0 <reg_strcat@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1937 <reg_parse_line+0x787>
jmp    18e3 <reg_parse_line+0x733>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x3b,%ecx
mov    %al,-0x8072(%rbp)
je     190e <reg_parse_line+0x75e>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x8072(%rbp)
mov    -0x8072(%rbp),%al
test   $0x1,%al
jne    1921 <reg_parse_line+0x771>
jmp    1932 <reg_parse_line+0x782>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    18e3 <reg_parse_line+0x733>
jmp    1937 <reg_parse_line+0x787>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     1956 <reg_parse_line+0x7a6>
movl   $0x0,-0x8048(%rbp)
jmp    19d0 <reg_parse_line+0x820>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x8073(%rbp)
je     198d <reg_parse_line+0x7dd>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x8073(%rbp)
mov    -0x8073(%rbp),%al
test   $0x1,%al
jne    19a0 <reg_parse_line+0x7f0>
jmp    19b1 <reg_parse_line+0x801>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1962 <reg_parse_line+0x7b2>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    19cb <reg_parse_line+0x81b>
movl   $0x0,-0x8048(%rbp)
jmp    19d0 <reg_parse_line+0x820>
jmp    14e0 <reg_parse_line+0x330>
jmp    1da7 <reg_parse_line+0xbf7>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x8040(%rbp),%rsi
mov    $0x20,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,-0x30(%rbp)
lea    -0x8040(%rbp),%rdi
call   1060 <strlen@plt>
sub    $0x1,%eax
cltq
movsbl -0x8040(%rbp,%rax,1),%eax
ff
cmp    $0x3b,%eax
jne    1abd <reg_parse_line+0x90d>
mov    -0x10(%rbp),%rax
movq   $0x3,(%rax)
lea    -0x8040(%rbp),%rdi
lea    0x658(%rip),%rsi
call   1080 <regCaseEqual@plt>
cmp    $0x0,%rax
je     1a55 <reg_parse_line+0x8a5>
mov    -0x28(%rbp),%rax
movq   $0x1,(%rax)
jmp    1a92 <reg_parse_line+0x8e2>
lea    -0x8040(%rbp),%rdi
lea    0x635(%rip),%rsi
call   1080 <regCaseEqual@plt>
cmp    $0x0,%rax
je     1a82 <reg_parse_line+0x8d2>
mov    -0x28(%rbp),%rax
movq   $0x2,(%rax)
jmp    1a8d <reg_parse_line+0x8dd>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
jmp    1a92 <reg_parse_line+0x8e2>
jmp    1a97 <reg_parse_line+0x8e7>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1ab8 <reg_parse_line+0x908>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1a97 <reg_parse_line+0x8e7>
jmp    1af6 <reg_parse_line+0x946>
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x8040(%rbp),%rdi
mov    $0x28,%esi
call   1070 <strchr@plt>
cmp    $0x0,%rax
jne    1aeb <reg_parse_line+0x93b>
mov    -0x10(%rbp),%rax
movq   $0x3,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x2,(%rax)
jmp    1afb <reg_parse_line+0x94b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1d7f <reg_parse_line+0xbcf>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x8040(%rbp),%rsi
mov    $0x20,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1b4d <reg_parse_line+0x99d>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1b2c <reg_parse_line+0x97c>
movsbl -0x8040(%rbp),%eax
cmp    $0x5e,%eax
jne    1b64 <reg_parse_line+0x9b4>
movb   $0x7c,-0x8040(%rbp)
movsbl -0x8040(%rbp),%eax
cmp    $0x26,%eax
je     1b94 <reg_parse_line+0x9e4>
movsbl -0x8040(%rbp),%eax
cmp    $0x7c,%eax
je     1b94 <reg_parse_line+0x9e4>
movsbl -0x8040(%rbp),%eax
cmp    $0x21,%eax
jne    1bd3 <reg_parse_line+0xa23>
mov    -0x8044(%rbp),%edx
mov    $0x29,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,-0x39(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x39(%rbp),%al
lea    -0x8040(%rbp),%rcx
movsbl %al,%edx
call   10b0 <reg_strcat@plt>
movl   $0x1,-0x8044(%rbp)
jmp    1d7a <reg_parse_line+0xbca>
movsbl -0x8040(%rbp),%eax
cmp    $0x3b,%eax
jne    1c17 <reg_parse_line+0xa67>
cmpl   $0x0,-0x8044(%rbp)
jne    1c06 <reg_parse_line+0xa56>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x29,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10b0 <reg_strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1d75 <reg_parse_line+0xbc5>
movsbl -0x8040(%rbp),%edi
call   10a0 <isalpha@plt>
cmp    $0x0,%rax
je     1c6f <reg_parse_line+0xabf>
mov    -0x8044(%rbp),%edx
mov    $0x2b,%eax
mov    $0x20,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,-0x39(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x39(%rbp),%al
lea    -0x8040(%rbp),%rcx
movsbl %al,%edx
call   10b0 <reg_strcat@plt>
movl   $0x1,-0x8044(%rbp)
jmp    1d70 <reg_parse_line+0xbc0>
movsbl -0x8040(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
jne    1cbb <reg_parse_line+0xb0b>
movsbl -0x8040(%rbp),%eax
cmp    $0x2b,%eax
je     1cbb <reg_parse_line+0xb0b>
movsbl -0x8040(%rbp),%eax
cmp    $0x2d,%eax
jne    1d6b <reg_parse_line+0xbbb>
movsbl -0x803e(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     1d6b <reg_parse_line+0xbbb>
mov    -0x8044(%rbp),%edx
mov    $0x2c,%eax
mov    $0x28,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %al,-0x39(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x39(%rbp),%al
lea    -0x8040(%rbp),%rcx
movsbl %al,%edx
call   10b0 <reg_strcat@plt>
movl   $0x0,-0x8044(%rbp)
lea    -0x8040(%rbp),%rdi
mov    $0x3a,%esi
call   1070 <strchr@plt>
cmp    $0x0,%rax
jne    1d2e <reg_parse_line+0xb7e>
lea    -0x8040(%rbp),%rdi
mov    $0x27,%esi
call   1070 <strchr@plt>
cmp    $0x0,%rax
je     1d39 <reg_parse_line+0xb89>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
lea    -0x8040(%rbp),%rdi
call   1060 <strlen@plt>
sub    $0x1,%eax
cltq
movsbl -0x8040(%rbp,%rax,1),%eax
ff
cmp    $0x64,%eax
jne    1d66 <reg_parse_line+0xbb6>
mov    -0x28(%rbp),%rax
movq   $0x3,(%rax)
jmp    1d6b <reg_parse_line+0xbbb>
jmp    1d70 <reg_parse_line+0xbc0>
jmp    1d75 <reg_parse_line+0xbc5>
jmp    1d7a <reg_parse_line+0xbca>
jmp    1afb <reg_parse_line+0x94b>
cmpl   $0x0,-0x8044(%rbp)
jne    1da2 <reg_parse_line+0xbf2>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x29,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10b0 <reg_strcat@plt>
jmp    1da7 <reg_parse_line+0xbf7>
jmp    1dac <reg_parse_line+0xbfc>
jmp    1db1 <reg_parse_line+0xc01>
jmp    1db6 <reg_parse_line+0xc06>
jmp    1dbb <reg_parse_line+0xc0b>
jmp    1dc0 <reg_parse_line+0xc10>
jmp    1dc5 <reg_parse_line+0xc15>
add    $0x8080,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reg_parse_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x8018,%rsp
mov    %r8,0x8(%rsp)
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbp
mov    (%rdx),%rax
mov    %rcx,%r15
test   %rax,%rax
je     11de <reg_parse_line+0x2e>
mov    (%rax),%bl
jmp    11f3 <reg_parse_line+0x43>
mov    $0x7fff,%edi
mov    $0x1,%esi
call   1090 <calloc@plt>
mov    %rax,(%r12)
xor    %ebx,%ebx
test   %bl,%bl
sete   %r14b
mov    0x0(%r13),%rax
add    $0xfffffffffffffffb,%rax
cmp    $0x1,%rax
ja     1211 <reg_parse_line+0x61>
cmpb   $0x23,0x0(%rbp)
je     1626 <reg_parse_line+0x476>
movl   $0x0,0x4(%rsp)
lea    0xde0(%rip),%rsi
mov    %rbp,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1295 <reg_parse_line+0xe5>
lea    0xdd3(%rip),%rsi
mov    %rbp,%rdi
mov    $0x23,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12a2 <reg_parse_line+0xf2>
lea    0xddf(%rip),%rsi
mov    %rbp,%rdi
mov    $0x19,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12af <reg_parse_line+0xff>
lea    0xde1(%rip),%rsi
mov    %rbp,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1295 <reg_parse_line+0xe5>
mov    0x0(%rbp),%al
cmp    $0x2d,%al
je     12bc <reg_parse_line+0x10c>
cmp    $0x2b,%al
je     12bc <reg_parse_line+0x10c>
cmp    $0x23,%al
jne    12ee <reg_parse_line+0x13e>
movq   $0x1,0x0(%r13)
jmp    1626 <reg_parse_line+0x476>
movq   $0x2,0x0(%r13)
jmp    1626 <reg_parse_line+0x476>
movq   $0x6,0x0(%r13)
jmp    1626 <reg_parse_line+0x476>
movq   $0x5,0x0(%r13)
jmp    1626 <reg_parse_line+0x476>
test   %bl,%bl
jne    15d1 <reg_parse_line+0x421>
mov    0x0(%r13),%rcx
add    $0xfffffffffffffffb,%rcx
cmp    $0x2,%rcx
jb     12dd <reg_parse_line+0x12d>
movq   $0x2,0x0(%r13)
mov    0x0(%rbp),%al
cmp    $0x2b,%al
jne    15c1 <reg_parse_line+0x411>
add    $0x1,%rbp
jmp    15d1 <reg_parse_line+0x421>
mov    0x4(%rsp),%eax
mov    %r14b,%al
mov    %eax,0x4(%rsp)
mov    0x0(%r13),%rax
add    $0xfffffffffffffffb,%rax
cmp    $0x1,%rax
ja     1527 <reg_parse_line+0x377>
lea    0xd41(%rip),%rsi
mov    %rbp,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1826 <reg_parse_line+0x676>
lea    0xf(%rsp),%r14
cmpq   $0x6,0x0(%r13)
jne    1387 <reg_parse_line+0x1d7>
mov    %rbp,%rdi
lea    0xd27(%rip),%rsi
mov    $0x8,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     18a4 <reg_parse_line+0x6f4>
mov    %rbp,%rdi
lea    0xd14(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     18b5 <reg_parse_line+0x705>
mov    %rbp,%rdi
lea    0xcfe(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1893 <reg_parse_line+0x6e3>
mov    %rbp,%rdi
lea    0xce5(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1626 <reg_parse_line+0x476>
cmpq   $0x5,0x0(%r13)
jne    1420 <reg_parse_line+0x270>
mov    %rbp,%rdi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
mov    $0x3b,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,%rbx
mov    %r14,%rdi
lea    0xcb0(%rip),%rsi
call   1080 <regCaseEqual@plt>
mov    $0x1,%ecx
test   %rax,%rax
jne    13fa <reg_parse_line+0x24a>
lea    0x10(%rsp),%rdi
lea    0xc9e(%rip),%rsi
call   1080 <regCaseEqual@plt>
mov    $0x2,%ecx
test   %rax,%rax
je     1501 <reg_parse_line+0x351>
mov    0x8(%rsp),%rax
mov    %rcx,(%rax)
mov    %rbx,%rbp
lea    0xf(%rsp),%r14
jmp    1414 <reg_parse_line+0x264>
nopl   0x0(%rax)
add    $0x1,%rbp
movzbl 0x0(%rbp),%eax
cmp    $0x3b,%al
je     1410 <reg_parse_line+0x260>
cmp    $0x20,%al
je     1410 <reg_parse_line+0x260>
mov    %rbp,%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
lea    0xc59(%rip),%rdx
call   10c0 <reg_tokens_advance@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
add    %r14,%rax
jmp    1457 <reg_parse_line+0x2a7>
nopl   0x0(%rax)
movb   $0x0,(%rax)
add    $0xffffffffffffffff,%rax
movzbl (%rax),%ecx
cmp    $0x20,%cl
je     1450 <reg_parse_line+0x2a0>
cmp    $0x9,%cl
je     1450 <reg_parse_line+0x2a0>
cmpl   $0x0,0x4(%rsp)
mov    $0x20,%edx
mov    $0x2b,%eax
cmove  %eax,%edx
cmpb   $0x2d,0x10(%rsp)
mov    $0x20,%eax
cmove  %eax,%edx
mov    %r12,%rdi
mov    %r15,%rsi
lea    0x10(%rsp),%rcx
call   10b0 <reg_strcat@plt>
mov    0x0(%rbp),%al
cmp    $0x23,%al
jne    14b0 <reg_parse_line+0x300>
mov    $0x23,%al
test   %al,%al
je     14b0 <reg_parse_line+0x300>
cmp    $0x3b,%al
je     14b0 <reg_parse_line+0x300>
movzbl 0x1(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    14a0 <reg_parse_line+0x2f0>
cmp    $0x3b,%al
jne    1626 <reg_parse_line+0x476>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
movzbl 0x0(%rbp),%eax
cmp    $0x9,%al
je     14c0 <reg_parse_line+0x310>
cmp    $0x20,%al
je     14c0 <reg_parse_line+0x310>
cmp    $0x23,%al
je     1626 <reg_parse_line+0x476>
mov    %rbp,%rdi
lea    0xb71(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
movl   $0x1,0x4(%rsp)
test   %eax,%eax
jne    132c <reg_parse_line+0x17c>
jmp    1826 <reg_parse_line+0x676>
mov    %rbp,%rdi
lea    0xb68(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1405 <reg_parse_line+0x255>
mov    $0x3,%ecx
jmp    13fa <reg_parse_line+0x24a>
lea    0x10(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x20,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
cmpb   $0x3b,-0x1(%rax,%rbx,1)
jne    1638 <reg_parse_line+0x488>
mov    %r14,%rbp
movq   $0x3,0x0(%r13)
lea    0xb28(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1080 <regCaseEqual@plt>
mov    $0x1,%ecx
test   %rax,%rax
mov    %r15,%r14
jne    159a <reg_parse_line+0x3ea>
lea    0xb14(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1080 <regCaseEqual@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
or     $0x2,%rcx
mov    0x8(%rsp),%rax
mov    %rcx,(%rax)
add    $0xffffffffffffffff,%rbp
mov    0x4(%rsp),%ecx
nopw   0x0(%rax,%rax,1)
movzbl 0x1(%rbp),%eax
add    $0x1,%rbp
cmp    $0x20,%al
je     15b0 <reg_parse_line+0x400>
jmp    166a <reg_parse_line+0x4ba>
mov    (%r12),%rdi
lea    0xa81(%rip),%rsi
call   1050 <strcpy@plt>
lea    0x10(%rsp),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x23,%edx
call   10d0 <reg_token_advance@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
add    %rbx,%rax
add    $0xffffffffffffffff,%rax
jmp    1607 <reg_parse_line+0x457>
nopl   0x0(%rax)
movb   $0x0,(%rax)
add    $0xffffffffffffffff,%rax
movzbl (%rax),%ecx
cmp    $0x20,%cl
je     1600 <reg_parse_line+0x450>
cmp    $0x9,%cl
je     1600 <reg_parse_line+0x450>
lea    0x10(%rsp),%rcx
mov    %r12,%rdi
mov    %r15,%rsi
xor    %edx,%edx
call   10b0 <reg_strcat@plt>
add    $0x8018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x10(%rsp),%rdi
mov    $0x28,%esi
call   1070 <strchr@plt>
test   %rax,%rax
mov    %r15,%r14
jne    1657 <reg_parse_line+0x4a7>
movq   $0x3,0x0(%r13)
mov    0x8(%rsp),%rax
movq   $0x2,(%rax)
mov    0x0(%rbp),%al
mov    0x4(%rsp),%ecx
test   %al,%al
je     180c <reg_parse_line+0x65c>
mov    $0x29,%r13d
jmp    169c <reg_parse_line+0x4ec>
test   %ecx,%ecx
je     1737 <reg_parse_line+0x587>
add    $0x1,%rbp
mov    %rbp,%rbx
nopl   0x0(%rax)
cmpb   $0x0,(%rbx)
mov    %rbx,%rbp
je     180c <reg_parse_line+0x65c>
mov    %ecx,%r15d
mov    %rbp,%rdi
lea    0x10(%rsp),%rsi
mov    $0x20,%edx
call   10d0 <reg_token_advance@plt>
mov    %rax,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,0x1(%rbx)
lea    0x1(%rbx),%rbx
je     16c0 <reg_parse_line+0x510>
mov    0x10(%rsp),%al
cmp    $0x3a,%al
jle    16e8 <reg_parse_line+0x538>
cmp    $0x3b,%al
mov    %r15d,%ecx
je     167a <reg_parse_line+0x4ca>
cmp    $0x7c,%al
je     16f3 <reg_parse_line+0x543>
cmp    $0x5e,%al
jne    1718 <reg_parse_line+0x568>
movb   $0x7c,0x10(%rsp)
jmp    16f3 <reg_parse_line+0x543>
cmp    $0x21,%al
mov    %r15d,%ecx
je     16f3 <reg_parse_line+0x543>
cmp    $0x26,%al
jne    1718 <reg_parse_line+0x568>
test   %ecx,%ecx
mov    $0x0,%edx
cmove  %r13d,%edx
mov    %r12,%rdi
mov    %r14,%rsi
lea    0x10(%rsp),%rcx
call   10b0 <reg_strcat@plt>
mov    $0x1,%ecx
jmp    1690 <reg_parse_line+0x4e0>
movsbl %al,%edi
call   10a0 <isalpha@plt>
test   %rax,%rax
je     1751 <reg_parse_line+0x5a1>
test   %r15d,%r15d
mov    $0x20,%edx
mov    $0x2b,%eax
cmove  %eax,%edx
jmp    16fe <reg_parse_line+0x54e>
mov    %r12,%rdi
mov    %r14,%rsi
mov    $0x29,%edx
xor    %ecx,%ecx
call   10b0 <reg_strcat@plt>
mov    %r15d,%ecx
jmp    1682 <reg_parse_line+0x4d2>
movsbl 0x10(%rsp),%edi
call   1040 <isdigit@plt>
test   %rax,%rax
jne    1783 <reg_parse_line+0x5d3>
mov    0x10(%rsp),%al
cmp    $0x2b,%al
je     1783 <reg_parse_line+0x5d3>
cmp    $0x2d,%al
jne    1804 <reg_parse_line+0x654>
movsbl 0x12(%rsp),%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     1804 <reg_parse_line+0x654>
xor    %eax,%eax
test   %r15d,%r15d
sete   %al
lea    0x28(,%rax,4),%edx
mov    %r12,%rdi
mov    %r14,%rsi
lea    0x10(%rsp),%rbp
mov    %rbp,%rcx
call   10b0 <reg_strcat@plt>
mov    %rbp,%rdi
mov    $0x3a,%esi
call   1070 <strchr@plt>
test   %rax,%rax
jne    17cb <reg_parse_line+0x61b>
lea    0x10(%rsp),%rdi
mov    $0x27,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     17d7 <reg_parse_line+0x627>
mov    0x8(%rsp),%rax
movq   $0x3,(%rax)
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
xor    %ecx,%ecx
cmpb   $0x64,-0x1(%rax,%rbp,1)
jne    1690 <reg_parse_line+0x4e0>
mov    0x8(%rsp),%rax
movq   $0x3,(%rax)
jmp    1690 <reg_parse_line+0x4e0>
mov    %r15d,%ecx
jmp    1690 <reg_parse_line+0x4e0>
test   %ecx,%ecx
jne    1626 <reg_parse_line+0x476>
mov    %r12,%rdi
mov    %r14,%rsi
mov    $0x29,%edx
xor    %ecx,%ecx
jmp    1621 <reg_parse_line+0x471>
lea    0x7(%rbp),%rdi
lea    0x829(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1626 <reg_parse_line+0x476>
add    $0x10,%rbp
lea    0x816(%rip),%rsi
mov    %rbp,%rdi
mov    $0x8,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     18a4 <reg_parse_line+0x6f4>
lea    0x807(%rip),%rsi
mov    %rbp,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     18b5 <reg_parse_line+0x705>
lea    0x7f5(%rip),%rsi
mov    %rbp,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1626 <reg_parse_line+0x476>
mov    0x8(%rsp),%rax
movq   $0x3,(%rax)
jmp    1626 <reg_parse_line+0x476>
mov    0x8(%rsp),%rax
movq   $0x1,(%rax)
jmp    1626 <reg_parse_line+0x476>
mov    0x8(%rsp),%rax
movq   $0x2,(%rax)
jmp    1626 <reg_parse_line+0x476>

LLVM IR (-O0):
@.str = [11 x i8] c"# filename\00"
@.str.1 = [36 x i8] c"# Region file format: DS9 version 4\00"
@.str.2 = [26 x i8] c"# Region file format: DS9\00"
@.str.3 = [4 x i8] c"XPA\00"
@.str.4 = [6 x i8] c"FIELD\00"
@.str.5 = [7 x i8] c"global\00"
@.str.6 = [10 x i8] c"coordsys=\00"
@.str.7 = [9 x i8] c"physical\00"
@.str.8 = [6 x i8] c"image\00"
@.str.9 = [3 x i8] c"fk\00"
@.str.10 = [6 x i8] c"local\00"
@.str.11 = [9 x i8] c"PHYSICAL\00"
@.str.12 = [6 x i8] c"IMAGE\00"
@.str.13 = [3 x i8] c"#;\00"
@.str.14 = [10 x i8] c"PHYSICAL;\00"
@.str.15 = [9 x i8] c"LOGICAL;\00"
define void @reg_parse_line(i8* %0, i64* %1, i8** %2, i64* %3, i64* %4) {
%6 = alloca i8*
%7 = alloca i64*
%8 = alloca i8**
%9 = alloca i64*
%10 = alloca i64*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8
%14 = alloca i32
%15 = alloca [32767 x i8]
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i8*
store i8* %0, i8** %6
store i64* %1, i64** %7
store i8** %2, i8*** %8
store i64* %3, i64** %9
store i64* %4, i64** %10
store i8 0, i8* %13
store i32 1, i32* %14
store i32 1, i32* %16
%20 = load i8**, i8*** %8
%21 = load i8*, i8** %20
%22 = icmp ne i8* %21, null
br i1 %22, label %26, label %23
23: ; preds = %5
%24 = call i8* @calloc(i32 32767, i32 1)
%25 = load i8**, i8*** %8
store i8* %24, i8** %25
br label %26
26: ; preds = %23, %5
%27 = load i8**, i8*** %8
%28 = load i8*, i8** %27
store i8* %28, i8** %19
%29 = load i8**, i8*** %8
%30 = load i8*, i8** %29
%31 = load i8, i8* %30
%32 = icmp ne i8 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store i32 0, i32* %16
br label %34
34: ; preds = %33, %26
%35 = load i8*, i8** %6
store i8* %35, i8** %11
%36 = load i64*, i64** %7
%37 = load i64, i64* %36
%38 = icmp eq i64 %37, 5
br i1 %38, label %43, label %39
39: ; preds = %34
%40 = load i64*, i64** %7
%41 = load i64, i64* %40
%42 = icmp eq i64 %41, 6
br i1 %42, label %43, label %49
43: ; preds = %39, %34
%44 = load i8*, i8** %11
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 35, %46
br i1 %47, label %48, label %49
48: ; preds = %43
br label %571
49: ; preds = %43, %39
%50 = load i8*, i8** %11
%51 = call i32 @strncmp(i8* %50, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%52 = icmp ne i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %49
%54 = load i64*, i64** %7
store i64 2, i64* %54
br label %571
55: ; preds = %49
%56 = load i8*, i8** %11
%57 = call i32 @strncmp(i8* %56, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 35)
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = load i64*, i64** %7
store i64 6, i64* %60
br label %570
61: ; preds = %55
%62 = load i8*, i8** %11
%63 = call i32 @strncmp(i8* %62, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 25)
%64 = icmp ne i32 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %61
%66 = load i64*, i64** %7
store i64 5, i64* %66
br label %569
67: ; preds = %61
%68 = load i8*, i8** %11
%69 = call i32 @strncmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%70 = icmp ne i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %67
%72 = load i64*, i64** %7
store i64 2, i64* %72
br label %571
73: ; preds = %67
%74 = load i8*, i8** %11
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 35
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = load i64*, i64** %7
store i64 1, i64* %79
br label %571
80: ; preds = %73
%81 = load i8*, i8** %11
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 43
br i1 %84, label %90, label %85
85: ; preds = %80
%86 = load i8*, i8** %11
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 45
br i1 %89, label %90, label %152
90: ; preds = %85, %80
%91 = load i32, i32* %16
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %103
93: ; preds = %90
%94 = load i64*, i64** %7
%95 = load i64, i64* %94
%96 = icmp ne i64 %95, 5
br i1 %96, label %97, label %103
97: ; preds = %93
%98 = load i64*, i64** %7
%99 = load i64, i64* %98
%100 = icmp ne i64 %99, 6
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = load i64*, i64** %7
store i64 2, i64* %102
br label %103
103: ; preds = %101, %97, %93, %90
%104 = load i8*, i8** %11
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 43
%108 = zext i1 %107 to i32
store i32 %108, i32* %14
%109 = load i32, i32* %16
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %122
111: ; preds = %103
%112 = load i32, i32* %14
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %111
%115 = load i8*, i8** %11
%116 = getelementptr inbounds i8, i8* %115, i32 1
store i8* %116, i8** %11
br label %121
117: ; preds = %111
%118 = load i8**, i8*** %8
%119 = load i8*, i8** %118
%120 = call i32 @strcpy(i8* %119, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %121
121: ; preds = %117, %114
br label %122
122: ; preds = %121, %103
%123 = load i8*, i8** %11
%124 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%125 = call i8* @reg_token_advance(i8* %123, i8* %124, i8 signext 35)
store i8* %125, i8** %11
%126 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%127 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%128 = call i32 @strlen(i8* %127)
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, i8* %126, i64 %129
%131 = getelementptr inbounds i8, i8* %130, i64 -1
store i8* %131, i8** %18
br label %132
132: ; preds = %144, %122
%133 = load i8*, i8** %18
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 32
br i1 %136, label %142, label %137
137: ; preds = %132
%138 = load i8*, i8** %18
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 9
br label %142
142: ; preds = %137, %132
%143 = phi i1 [ true, %132 ], [ %141, %137 ]
br i1 %143, label %144, label %147
144: ; preds = %142
%145 = load i8*, i8** %18
%146 = getelementptr inbounds i8, i8* %145, i32 -1
store i8* %146, i8** %18
store i8 0, i8* %145
br label %132
147: ; preds = %142
%148 = load i8**, i8*** %8
%149 = load i64*, i64** %9
%150 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%151 = call i32 @reg_strcat(i8** %148, i64* %149, i8 signext 0, i8* %150)
br label %566
152: ; preds = %85
%153 = load i64*, i64** %7
%154 = load i64, i64* %153
%155 = icmp eq i64 %154, 5
br i1 %155, label %160, label %156
156: ; preds = %152
%157 = load i64*, i64** %7
%158 = load i64, i64* %157
%159 = icmp eq i64 %158, 6
br i1 %159, label %160, label %370
160: ; preds = %156, %152
store i32 1, i32* %17
br label %161
161: ; preds = %368, %160
%162 = load i32, i32* %17
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %369
164: ; preds = %161
%165 = load i8*, i8** %11
%166 = call i32 @strncmp(i8* %165, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%167 = icmp ne i32 %166, 0
br i1 %167, label %197, label %168
168: ; preds = %164
%169 = load i8*, i8** %11
%170 = getelementptr inbounds i8, i8* %169, i64 7
%171 = call i32 @strncmp(i8* %170, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 9)
%172 = icmp ne i32 %171, 0
br i1 %172, label %196, label %173
173: ; preds = %168
%174 = load i8*, i8** %11
%175 = getelementptr inbounds i8, i8* %174, i64 16
store i8* %175, i8** %11
%176 = load i8*, i8** %11
%177 = call i32 @strncmp(i8* %176, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 8)
%178 = icmp ne i32 %177, 0
br i1 %178, label %181, label %179
179: ; preds = %173
%180 = load i64*, i64** %10
store i64 1, i64* %180
br label %195
181: ; preds = %173
%182 = load i8*, i8** %11
%183 = call i32 @strncmp(i8* %182, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 6)
%184 = icmp ne i32 %183, 0
br i1 %184, label %187, label %185
185: ; preds = %181
%186 = load i64*, i64** %10
store i64 2, i64* %186
br label %194
187: ; preds = %181
%188 = load i8*, i8** %11
%189 = call i32 @strncmp(i8* %188, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%190 = icmp ne i32 %189, 0
br i1 %190, label %193, label %191
191: ; preds = %187
%192 = load i64*, i64** %10
store i64 3, i64* %192
br label %193
193: ; preds = %191, %187
br label %194
194: ; preds = %193, %185
br label %195
195: ; preds = %194, %179
br label %196
196: ; preds = %195, %168
br label %571
197: ; preds = %164
%198 = load i64*, i64** %7
%199 = load i64, i64* %198
%200 = icmp eq i64 %199, 6
br i1 %200, label %201, label %222
201: ; preds = %197
%202 = load i8*, i8** %11
%203 = call i32 @strncmp(i8* %202, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 8)
%204 = icmp ne i32 %203, 0
br i1 %204, label %207, label %205
205: ; preds = %201
%206 = load i64*, i64** %10
store i64 1, i64* %206
br label %571
207: ; preds = %201
%208 = load i8*, i8** %11
%209 = call i32 @strncmp(i8* %208, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 6)
%210 = icmp ne i32 %209, 0
br i1 %210, label %213, label %211
211: ; preds = %207
%212 = load i64*, i64** %10
store i64 2, i64* %212
br label %571
213: ; preds = %207
%214 = load i8*, i8** %11
%215 = call i32 @strncmp(i8* %214, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%216 = icmp ne i32 %215, 0
br i1 %216, label %219, label %217
217: ; preds = %213
%218 = load i64*, i64** %10
store i64 3, i64* %218
br label %571
219: ; preds = %213
br label %220
220: ; preds = %219
br label %221
221: ; preds = %220
br label %222
222: ; preds = %221, %197
%223 = load i8*, i8** %11
%224 = call i32 @strncmp(i8* %223, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 6)
%225 = icmp ne i32 %224, 0
br i1 %225, label %227, label %226
226: ; preds = %222
br label %571
227: ; preds = %222
%228 = load i64*, i64** %7
%229 = load i64, i64* %228
%230 = icmp eq i64 %229, 5
br i1 %230, label %231, label %274
231: ; preds = %227
%232 = load i8*, i8** %11
%233 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%234 = call i8* @reg_token_advance(i8* %232, i8* %233, i8 signext 59)
store i8* %234, i8** %18
%235 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%236 = call i64 @regCaseEqual(i8* %235, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%237 = icmp ne i64 %236, 0
br i1 %237, label %238, label %241
238: ; preds = %231
%239 = load i64*, i64** %10
store i64 1, i64* %239
%240 = load i8*, i8** %18
store i8* %240, i8** %11
br label %257
241: ; preds = %231
%242 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%243 = call i64 @regCaseEqual(i8* %242, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%244 = icmp ne i64 %243, 0
br i1 %244, label %245, label %248
245: ; preds = %241
%246 = load i64*, i64** %10
store i64 2, i64* %246
%247 = load i8*, i8** %18
store i8* %247, i8** %11
br label %256
248: ; preds = %241
%249 = load i8*, i8** %11
%250 = call i32 @strncmp(i8* %249, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%251 = icmp ne i32 %250, 0
br i1 %251, label %255, label %252
252: ; preds = %248
%253 = load i64*, i64** %10
store i64 3, i64* %253
%254 = load i8*, i8** %18
store i8* %254, i8** %11
br label %255
255: ; preds = %252, %248
br label %256
256: ; preds = %255, %245
br label %257
257: ; preds = %256, %238
br label %258
258: ; preds = %270, %257
%259 = load i8*, i8** %11
%260 = load i8, i8* %259
%261 = sext i8 %260 to i32
%262 = icmp eq i32 %261, 32
br i1 %262, label %268, label %263
263: ; preds = %258
%264 = load i8*, i8** %11
%265 = load i8, i8* %264
%266 = sext i8 %265 to i32
%267 = icmp eq i32 %266, 59
br label %268
268: ; preds = %263, %258
%269 = phi i1 [ true, %258 ], [ %267, %263 ]
br i1 %269, label %270, label %273
270: ; preds = %268
%271 = load i8*, i8** %11
%272 = getelementptr inbounds i8, i8* %271, i32 1
store i8* %272, i8** %11
br label %258
273: ; preds = %268
br label %274
274: ; preds = %273, %227
%275 = load i8*, i8** %11
%276 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%277 = call i8* @reg_tokens_advance(i8* %275, i8* %276, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
store i8* %277, i8** %11
%278 = load i32, i32* %16
%279 = icmp ne i32 %278, 0
%280 = zext i1 %279 to i64
%281 = select i1 %279, i32 32, i32 43
%282 = trunc i32 %281 to i8
store i8 %282, i8* %13
store i32 1, i32* %16
%283 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%284 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%285 = call i32 @strlen(i8* %284)
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds i8, i8* %283, i64 %286
%288 = getelementptr inbounds i8, i8* %287, i64 -1
store i8* %288, i8** %18
br label %289
289: ; preds = %301, %274
%290 = load i8*, i8** %18
%291 = load i8, i8* %290
%292 = sext i8 %291 to i32
%293 = icmp eq i32 %292, 32
br i1 %293, label %299, label %294
294: ; preds = %289
%295 = load i8*, i8** %18
%296 = load i8, i8* %295
%297 = sext i8 %296 to i32
%298 = icmp eq i32 %297, 9
br label %299
299: ; preds = %294, %289
%300 = phi i1 [ true, %289 ], [ %298, %294 ]
br i1 %300, label %301, label %304
301: ; preds = %299
%302 = load i8*, i8** %18
%303 = getelementptr inbounds i8, i8* %302, i32 -1
store i8* %303, i8** %18
store i8 0, i8* %302
br label %289
304: ; preds = %299
%305 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%306 = load i8, i8* %305
%307 = sext i8 %306 to i32
%308 = icmp eq i32 %307, 45
br i1 %308, label %309, label %310
309: ; preds = %304
store i8 32, i8* %13
br label %310
310: ; preds = %309, %304
%311 = load i8**, i8*** %8
%312 = load i64*, i64** %9
%313 = load i8, i8* %13
%314 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%315 = call i32 @reg_strcat(i8** %311, i64* %312, i8 signext %313, i8* %314)
%316 = load i8*, i8** %11
%317 = load i8, i8* %316
%318 = sext i8 %317 to i32
%319 = icmp eq i32 %318, 35
br i1 %319, label %320, label %337
320: ; preds = %310
br label %321
321: ; preds = %333, %320
%322 = load i8*, i8** %11
%323 = load i8, i8* %322
%324 = sext i8 %323 to i32
%325 = icmp ne i32 %324, 59
br i1 %325, label %326, label %331
326: ; preds = %321
%327 = load i8*, i8** %11
%328 = load i8, i8* %327
%329 = sext i8 %328 to i32
%330 = icmp ne i32 %329, 0
br label %331
331: ; preds = %326, %321
%332 = phi i1 [ false, %321 ], [ %330, %326 ]
br i1 %332, label %333, label %336
333: ; preds = %331
%334 = load i8*, i8** %11
%335 = getelementptr inbounds i8, i8* %334, i32 1
store i8* %335, i8** %11
br label %321
336: ; preds = %331
br label %337
337: ; preds = %336, %310
%338 = load i8*, i8** %11
%339 = load i8, i8* %338
%340 = sext i8 %339 to i32
%341 = icmp ne i32 %340, 59
br i1 %341, label %342, label %343
342: ; preds = %337
store i32 0, i32* %17
br label %368
343: ; preds = %337
%344 = load i8*, i8** %11
%345 = getelementptr inbounds i8, i8* %344, i32 1
store i8* %345, i8** %11
br label %346
346: ; preds = %358, %343
%347 = load i8*, i8** %11
%348 = load i8, i8* %347
%349 = sext i8 %348 to i32
%350 = icmp eq i32 %349, 32
br i1 %350, label %356, label %351
351: ; preds = %346
%352 = load i8*, i8** %11
%353 = load i8, i8* %352
%354 = sext i8 %353 to i32
%355 = icmp eq i32 %354, 9
br label %356
356: ; preds = %351, %346
%357 = phi i1 [ true, %346 ], [ %355, %351 ]
br i1 %357, label %358, label %361
358: ; preds = %356
%359 = load i8*, i8** %11
%360 = getelementptr inbounds i8, i8* %359, i32 1
store i8* %360, i8** %11
br label %346
361: ; preds = %356
%362 = load i8*, i8** %11
%363 = load i8, i8* %362
%364 = sext i8 %363 to i32
%365 = icmp eq i32 %364, 35
br i1 %365, label %366, label %367
366: ; preds = %361
store i32 0, i32* %17
br label %367
367: ; preds = %366, %361
br label %368
368: ; preds = %367, %342
br label %161
369: ; preds = %161
br label %565
370: ; preds = %156
%371 = load i8*, i8** %11
store i8* %371, i8** %12
%372 = load i8*, i8** %11
%373 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%374 = call i8* @reg_token_advance(i8* %372, i8* %373, i8 signext 32)
store i8* %374, i8** %11
%375 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%376 = call i32 @strlen(i8* %375)
%377 = sub nsw i32 %376, 1
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 %378
%380 = load i8, i8* %379
%381 = sext i8 %380 to i32
%382 = icmp eq i32 %381, 59
br i1 %382, label %383, label %409
383: ; preds = %370
%384 = load i64*, i64** %7
store i64 3, i64* %384
%385 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%386 = call i64 @regCaseEqual(i8* %385, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%387 = icmp ne i64 %386, 0
br i1 %387, label %388, label %390
388: ; preds = %383
%389 = load i64*, i64** %10
store i64 1, i64* %389
br label %399
390: ; preds = %383
%391 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%392 = call i64 @regCaseEqual(i8* %391, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%393 = icmp ne i64 %392, 0
br i1 %393, label %394, label %396
394: ; preds = %390
%395 = load i64*, i64** %10
store i64 2, i64* %395
br label %398
396: ; preds = %390
%397 = load i64*, i64** %10
store i64 3, i64* %397
br label %398
398: ; preds = %396, %394
br label %399
399: ; preds = %398, %388
br label %400
400: ; preds = %405, %399
%401 = load i8*, i8** %11
%402 = load i8, i8* %401
%403 = sext i8 %402 to i32
%404 = icmp eq i32 %403, 32
br i1 %404, label %405, label %408
405: ; preds = %400
%406 = load i8*, i8** %11
%407 = getelementptr inbounds i8, i8* %406, i32 1
store i8* %407, i8** %11
br label %400
408: ; preds = %400
br label %418
409: ; preds = %370
%410 = load i8*, i8** %12
store i8* %410, i8** %11
%411 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%412 = call i64 @strchr(i8* %411, i8 signext 40)
%413 = icmp ne i64 %412, 0
br i1 %413, label %416, label %414
414: ; preds = %409
%415 = load i64*, i64** %7
store i64 3, i64* %415
br label %416
416: ; preds = %414, %409
%417 = load i64*, i64** %10
store i64 2, i64* %417
br label %418
418: ; preds = %416, %408
br label %419
419: ; preds = %556, %418
%420 = load i8*, i8** %11
%421 = load i8, i8* %420
%422 = sext i8 %421 to i32
%423 = icmp ne i32 %422, 0
br i1 %423, label %424, label %557
424: ; preds = %419
%425 = load i8*, i8** %11
store i8* %425, i8** %12
%426 = load i8*, i8** %11
%427 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%428 = call i8* @reg_token_advance(i8* %426, i8* %427, i8 signext 32)
store i8* %428, i8** %11
br label %429
429: ; preds = %434, %424
%430 = load i8*, i8** %11
%431 = load i8, i8* %430
%432 = sext i8 %431 to i32
%433 = icmp eq i32 %432, 32
br i1 %433, label %434, label %437
434: ; preds = %429
%435 = load i8*, i8** %11
%436 = getelementptr inbounds i8, i8* %435, i32 1
store i8* %436, i8** %11
br label %429
437: ; preds = %429
%438 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%439 = load i8, i8* %438
%440 = sext i8 %439 to i32
%441 = icmp eq i32 %440, 94
br i1 %441, label %442, label %444
442: ; preds = %437
%443 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
store i8 124, i8* %443
br label %444
444: ; preds = %442, %437
%445 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%446 = load i8, i8* %445
%447 = sext i8 %446 to i32
%448 = icmp eq i32 %447, 38
br i1 %448, label %459, label %449
449: ; preds = %444
%450 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%451 = load i8, i8* %450
%452 = sext i8 %451 to i32
%453 = icmp eq i32 %452, 124
br i1 %453, label %459, label %454
454: ; preds = %449
%455 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%456 = load i8, i8* %455
%457 = sext i8 %456 to i32
%458 = icmp eq i32 %457, 33
br i1 %458, label %459, label %470
459: ; preds = %454, %449, %444
%460 = load i32, i32* %16
%461 = icmp ne i32 %460, 0
%462 = zext i1 %461 to i64
%463 = select i1 %461, i32 0, i32 41
%464 = trunc i32 %463 to i8
store i8 %464, i8* %13
%465 = load i8**, i8*** %8
%466 = load i64*, i64** %9
%467 = load i8, i8* %13
%468 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%469 = call i32 @reg_strcat(i8** %465, i64* %466, i8 signext %467, i8* %468)
store i32 1, i32* %16
br label %556
470: ; preds = %454
%471 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%472 = load i8, i8* %471
%473 = sext i8 %472 to i32
%474 = icmp eq i32 %473, 59
br i1 %474, label %475, label %485
475: ; preds = %470
%476 = load i32, i32* %16
%477 = icmp ne i32 %476, 0
br i1 %477, label %482, label %478
478: ; preds = %475
%479 = load i8**, i8*** %8
%480 = load i64*, i64** %9
%481 = call i32 @reg_strcat(i8** %479, i64* %480, i8 signext 41, i8* null)
br label %482
482: ; preds = %478, %475
%483 = load i8*, i8** %12
%484 = getelementptr inbounds i8, i8* %483, i64 1
store i8* %484, i8** %11
br label %555
485: ; preds = %470
%486 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%487 = load i8, i8* %486
%488 = call i64 @isalpha(i8 signext %487)
%489 = icmp ne i64 %488, 0
br i1 %489, label %490, label %501
490: ; preds = %485
%491 = load i32, i32* %16
%492 = icmp ne i32 %491, 0
%493 = zext i1 %492 to i64
%494 = select i1 %492, i32 32, i32 43
%495 = trunc i32 %494 to i8
store i8 %495, i8* %13
%496 = load i8**, i8*** %8
%497 = load i64*, i64** %9
%498 = load i8, i8* %13
%499 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%500 = call i32 @reg_strcat(i8** %496, i64* %497, i8 signext %498, i8* %499)
store i32 1, i32* %16
br label %554
501: ; preds = %485
%502 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%503 = load i8, i8* %502
%504 = call i64 @isdigit(i8 signext %503)
%505 = icmp ne i64 %504, 0
br i1 %505, label %521, label %506
506: ; preds = %501
%507 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%508 = load i8, i8* %507
%509 = sext i8 %508 to i32
%510 = icmp eq i32 %509, 43
br i1 %510, label %521, label %511
511: ; preds = %506
%512 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%513 = load i8, i8* %512
%514 = sext i8 %513 to i32
%515 = icmp eq i32 %514, 45
br i1 %515, label %516, label %553
516: ; preds = %511
%517 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 2
%518 = load i8, i8* %517
%519 = call i64 @isdigit(i8 signext %518)
%520 = icmp ne i64 %519, 0
br i1 %520, label %521, label %553
521: ; preds = %516, %506, %501
%522 = load i32, i32* %16
%523 = icmp ne i32 %522, 0
%524 = zext i1 %523 to i64
%525 = select i1 %523, i32 40, i32 44
%526 = trunc i32 %525 to i8
store i8 %526, i8* %13
%527 = load i8**, i8*** %8
%528 = load i64*, i64** %9
%529 = load i8, i8* %13
%530 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%531 = call i32 @reg_strcat(i8** %527, i64* %528, i8 signext %529, i8* %530)
store i32 0, i32* %16
%532 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%533 = call i64 @strchr(i8* %532, i8 signext 58)
%534 = icmp ne i64 %533, 0
br i1 %534, label %539, label %535
535: ; preds = %521
%536 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%537 = call i64 @strchr(i8* %536, i8 signext 39)
%538 = icmp ne i64 %537, 0
br i1 %538, label %539, label %541
539: ; preds = %535, %521
%540 = load i64*, i64** %10
store i64 3, i64* %540
br label %541
541: ; preds = %539, %535
%542 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 0
%543 = call i32 @strlen(i8* %542)
%544 = sub nsw i32 %543, 1
%545 = sext i32 %544 to i64
%546 = getelementptr inbounds [32767 x i8], [32767 x i8]* %15, i64 0, i64 %545
%547 = load i8, i8* %546
%548 = sext i8 %547 to i32
%549 = icmp eq i32 %548, 100
br i1 %549, label %550, label %552
550: ; preds = %541
%551 = load i64*, i64** %10
store i64 3, i64* %551
br label %552
552: ; preds = %550, %541
br label %553
553: ; preds = %552, %516, %511
br label %554
554: ; preds = %553, %490
br label %555
555: ; preds = %554, %482
br label %556
556: ; preds = %555, %459
br label %419
557: ; preds = %419
%558 = load i32, i32* %16
%559 = icmp ne i32 %558, 0
br i1 %559, label %564, label %560
560: ; preds = %557
%561 = load i8**, i8*** %8
%562 = load i64*, i64** %9
%563 = call i32 @reg_strcat(i8** %561, i64* %562, i8 signext 41, i8* null)
br label %564
564: ; preds = %560, %557
br label %565
565: ; preds = %564, %369
br label %566
566: ; preds = %565, %147
br label %567
567: ; preds = %566
br label %568
568: ; preds = %567
br label %569
569: ; preds = %568, %65
br label %570
570: ; preds = %569, %59
br label %571
571: ; preds = %48, %53, %71, %78, %196, %205, %211, %217, %226, %570
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"# filename\00"
@.str.1 = [36 x i8] c"# Region file format: DS9 version 4\00"
@.str.2 = [26 x i8] c"# Region file format: DS9\00"
@.str.3 = [4 x i8] c"XPA\00"
@.str.4 = [6 x i8] c"FIELD\00"
@.str.5 = [7 x i8] c"global\00"
@.str.6 = [10 x i8] c"coordsys=\00"
@.str.7 = [9 x i8] c"physical\00"
@.str.8 = [6 x i8] c"image\00"
@.str.9 = [3 x i8] c"fk\00"
@.str.10 = [6 x i8] c"local\00"
@.str.11 = [9 x i8] c"PHYSICAL\00"
@.str.12 = [6 x i8] c"IMAGE\00"
@.str.13 = [3 x i8] c"#;\00"
@.str.14 = [10 x i8] c"PHYSICAL;\00"
@.str.15 = [9 x i8] c"LOGICAL;\00"
define void @reg_parse_line(i8* %0, i64* nocapture %1, i8** %2, i64* %3, i64* nocapture writeonly %4) {
%6 = alloca [32767 x i8]
%7 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 0
%8 = load i8*, i8** %2
%9 = icmp eq i8* %8, null
br i1 %9, label %12, label %10
10: ; preds = %5
%11 = load i8, i8* %8
br label %14
12: ; preds = %5
%13 = tail call dereferenceable_or_null(32767) i8* @calloc(i32 32767, i32 1)
store i8* %13, i8** %2
br label %14
14: ; preds = %10, %12
%15 = phi i8 [ 0, %12 ], [ %11, %10 ]
%16 = icmp eq i8 %15, 0
%17 = zext i1 %16 to i32
%18 = load i64, i64* %1
%19 = add i64 %18, -5
%20 = icmp ult i64 %19, 2
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load i8, i8* %0
%23 = icmp eq i8 %22, 35
br i1 %23, label %280, label %24
24: ; preds = %14, %21
%25 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i64 2, i64* %1
br label %280
28: ; preds = %24
%29 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 35)
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
store i64 6, i64* %1
br label %280
32: ; preds = %28
%33 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 25)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %32
store i64 5, i64* %1
br label %280
36: ; preds = %32
%37 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %36
store i64 2, i64* %1
br label %280
40: ; preds = %36
%41 = load i8, i8* %0
switch i8 %41, label %71 [
i8 35, label %42
i8 43, label %43
i8 45, label %43
]
42: ; preds = %40
store i64 1, i64* %1
br label %280
43: ; preds = %40, %40
br i1 %16, label %44, label %58
44: ; preds = %43
%45 = load i64, i64* %1
%46 = add i64 %45, -5
%47 = icmp ult i64 %46, 2
br i1 %47, label %50, label %48
48: ; preds = %44
store i64 2, i64* %1
%49 = load i8, i8* %0
br label %50
50: ; preds = %48, %44
%51 = phi i8 [ %49, %48 ], [ %41, %44 ]
%52 = icmp eq i8 %51, 43
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = getelementptr inbounds i8, i8* %0, i64 1
br label %58
55: ; preds = %50
%56 = load i8*, i8** %2
%57 = tail call i32 @strcpy(i8* %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %58
58: ; preds = %43, %53, %55
%59 = phi i8* [ %54, %53 ], [ %0, %55 ], [ %0, %43 ]
%60 = call i8* @reg_token_advance(i8* %59, i8* %7, i8 signext 35)
%61 = call i32 @strlen(i8* %7)
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 %62
br label %64
64: ; preds = %68, %58
%65 = phi i8* [ %63, %58 ], [ %66, %68 ]
%66 = getelementptr inbounds i8, i8* %65, i64 -1
%67 = load i8, i8* %66
switch i8 %67, label %69 [
i8 32, label %68
i8 9, label %68
]
68: ; preds = %64, %64
store i8 0, i8* %66
br label %64
69: ; preds = %64
%70 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext 0, i8* %7)
br label %280
71: ; preds = %40
%72 = load i64, i64* %1
%73 = add i64 %72, -5
%74 = icmp ult i64 %73, 2
br i1 %74, label %75, label %176
75: ; preds = %71
%76 = call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%77 = icmp eq i32 %76, 0
br i1 %77, label %81, label %99
78: ; preds = %171
%79 = call i32 @strncmp(i8* %173, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 6)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %99
81: ; preds = %78, %75
%82 = phi i8* [ %0, %75 ], [ %173, %78 ]
%83 = getelementptr inbounds i8, i8* %82, i64 7
%84 = call i32 @strncmp(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 9)
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %280
86: ; preds = %81
%87 = getelementptr inbounds i8, i8* %82, i64 16
%88 = call i32 @strncmp(i8* %87, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 8)
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
store i64 1, i64* %4
br label %280
91: ; preds = %86
%92 = call i32 @strncmp(i8* %87, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 6)
%93 = icmp eq i32 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %91
store i64 2, i64* %4
br label %280
95: ; preds = %91
%96 = call i32 @strncmp(i8* %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %280
98: ; preds = %95
store i64 3, i64* %4
br label %280
99: ; preds = %75, %78
%100 = phi i32 [ 1, %78 ], [ %17, %75 ]
%101 = phi i8* [ %173, %78 ], [ %0, %75 ]
%102 = load i64, i64* %1
%103 = icmp eq i64 %102, 6
br i1 %103, label %104, label %116
104: ; preds = %99
%105 = call i32 @strncmp(i8* %101, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 8)
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %104
store i64 1, i64* %4
br label %280
108: ; preds = %104
%109 = call i32 @strncmp(i8* %101, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 6)
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %108
store i64 2, i64* %4
br label %280
112: ; preds = %108
%113 = call i32 @strncmp(i8* %101, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %116
115: ; preds = %112
store i64 3, i64* %4
br label %280
116: ; preds = %112, %99
%117 = call i32 @strncmp(i8* %101, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 6)
%118 = icmp eq i32 %117, 0
br i1 %118, label %280, label %119
119: ; preds = %116
%120 = load i64, i64* %1
%121 = icmp eq i64 %120, 5
br i1 %121, label %122, label %141
122: ; preds = %119
%123 = call i8* @reg_token_advance(i8* %101, i8* %7, i8 signext 59)
%124 = call i64 @regCaseEqual(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %132
126: ; preds = %122
%127 = call i64 @regCaseEqual(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = call i32 @strncmp(i8* %101, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %134
132: ; preds = %129, %126, %122
%133 = phi i64 [ 1, %122 ], [ 2, %126 ], [ 3, %129 ]
store i64 %133, i64* %4
br label %134
134: ; preds = %132, %129
%135 = phi i8* [ %123, %132 ], [ %101, %129 ]
br label %136
136: ; preds = %134, %139
%137 = phi i8* [ %140, %139 ], [ %135, %134 ]
%138 = load i8, i8* %137
switch i8 %138, label %141 [
i8 32, label %139
i8 59, label %139
]
139: ; preds = %136, %136
%140 = getelementptr inbounds i8, i8* %137, i64 1
br label %136
141: ; preds = %136, %119
%142 = phi i8* [ %101, %119 ], [ %137, %136 ]
%143 = call i8* @reg_tokens_advance(i8* %142, i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%144 = icmp eq i32 %100, 0
%145 = call i32 @strlen(i8* %7)
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 %146
br label %148
148: ; preds = %152, %141
%149 = phi i8* [ %147, %141 ], [ %150, %152 ]
%150 = getelementptr inbounds i8, i8* %149, i64 -1
%151 = load i8, i8* %150
switch i8 %151, label %153 [
i8 32, label %152
i8 9, label %152
]
152: ; preds = %148, %148
store i8 0, i8* %150
br label %148
153: ; preds = %148
%154 = select i1 %144, i8 43, i8 32
%155 = load i8, i8* %7
%156 = icmp eq i8 %155, 45
%157 = select i1 %156, i8 32, i8 %154
%158 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext %157, i8* %7)
%159 = load i8, i8* %143
%160 = icmp eq i8 %159, 35
br i1 %160, label %161, label %167
161: ; preds = %153, %164
%162 = phi i8 [ %166, %164 ], [ 35, %153 ]
%163 = phi i8* [ %165, %164 ], [ %143, %153 ]
switch i8 %162, label %164 [
i8 59, label %167
i8 0, label %167
]
164: ; preds = %161
%165 = getelementptr inbounds i8, i8* %163, i64 1
%166 = load i8, i8* %165
br label %161
167: ; preds = %161, %161, %153
%168 = phi i8 [ %159, %153 ], [ %162, %161 ], [ %162, %161 ]
%169 = phi i8* [ %143, %153 ], [ %163, %161 ], [ %163, %161 ]
%170 = icmp eq i8 %168, 59
br i1 %170, label %171, label %280
171: ; preds = %167, %175
%172 = phi i8* [ %173, %175 ], [ %169, %167 ]
%173 = getelementptr inbounds i8, i8* %172, i64 1
%174 = load i8, i8* %173
switch i8 %174, label %78 [
i8 32, label %175
i8 9, label %175
i8 35, label %280
]
175: ; preds = %171, %171
br label %171
176: ; preds = %71
%177 = call i8* @reg_token_advance(i8* %0, i8* %7, i8 signext 32)
%178 = call i32 @strlen(i8* %7)
%179 = add nsw i32 %178, -1
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 %180
%182 = load i8, i8* %181
%183 = icmp eq i8 %182, 59
br i1 %183, label %184, label %198
184: ; preds = %176
store i64 3, i64* %1
%185 = call i64 @regCaseEqual(i8* %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%186 = icmp eq i64 %185, 0
br i1 %186, label %187, label %191
187: ; preds = %184
%188 = call i64 @regCaseEqual(i8* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%189 = icmp eq i64 %188, 0
%190 = select i1 %189, i64 3, i64 2
br label %191
191: ; preds = %187, %184
%192 = phi i64 [ 1, %184 ], [ %190, %187 ]
store i64 %192, i64* %4
br label %193
193: ; preds = %193, %191
%194 = phi i8* [ %177, %191 ], [ %197, %193 ]
%195 = load i8, i8* %194
%196 = icmp eq i8 %195, 32
%197 = getelementptr inbounds i8, i8* %194, i64 1
br i1 %196, label %193, label %204
198: ; preds = %176
%199 = call i64 @strchr(i8* %7, i8 signext 40)
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %202
201: ; preds = %198
store i64 3, i64* %1
br label %202
202: ; preds = %201, %198
store i64 2, i64* %4
%203 = load i8, i8* %0
br label %204
204: ; preds = %193, %202
%205 = phi i8 [ %203, %202 ], [ %195, %193 ]
%206 = phi i8* [ %0, %202 ], [ %194, %193 ]
%207 = icmp eq i8 %205, 0
br i1 %207, label %275, label %208
208: ; preds = %204
%209 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 2
br label %210
210: ; preds = %208, %270
%211 = phi i8* [ %206, %208 ], [ %272, %270 ]
%212 = phi i32 [ %17, %208 ], [ %271, %270 ]
%213 = call i8* @reg_token_advance(i8* %211, i8* %7, i8 signext 32)
br label %214
214: ; preds = %214, %210
%215 = phi i8* [ %213, %210 ], [ %218, %214 ]
%216 = load i8, i8* %215
%217 = icmp eq i8 %216, 32
%218 = getelementptr inbounds i8, i8* %215, i64 1
br i1 %217, label %214, label %219
219: ; preds = %214
%220 = load i8, i8* %7
switch i8 %220, label %232 [
i8 94, label %221
i8 124, label %222
i8 38, label %222
i8 33, label %222
i8 59, label %226
]
221: ; preds = %219
store i8 124, i8* %7
br label %222
222: ; preds = %219, %219, %219, %221
%223 = icmp eq i32 %212, 0
%224 = select i1 %223, i8 41, i8 0
%225 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext %224, i8* %7)
br label %270
226: ; preds = %219
%227 = icmp eq i32 %212, 0
br i1 %227, label %228, label %230
228: ; preds = %226
%229 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext 41, i8* null)
br label %230
230: ; preds = %228, %226
%231 = getelementptr inbounds i8, i8* %211, i64 1
br label %270
232: ; preds = %219
%233 = call i64 @isalpha(i8 signext %220)
%234 = icmp eq i64 %233, 0
br i1 %234, label %239, label %235
235: ; preds = %232
%236 = icmp eq i32 %212, 0
%237 = select i1 %236, i8 43, i8 32
%238 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext %237, i8* %7)
br label %270
239: ; preds = %232
%240 = load i8, i8* %7
%241 = call i64 @isdigit(i8 signext %240)
%242 = icmp ne i64 %241, 0
%243 = load i8, i8* %7
%244 = icmp eq i8 %243, 43
%245 = select i1 %242, i1 true, i1 %244
br i1 %245, label %252, label %246
246: ; preds = %239
%247 = icmp eq i8 %243, 45
br i1 %247, label %248, label %270
248: ; preds = %246
%249 = load i8, i8* %209
%250 = call i64 @isdigit(i8 signext %249)
%251 = icmp eq i64 %250, 0
br i1 %251, label %270, label %252
252: ; preds = %248, %239
%253 = icmp eq i32 %212, 0
%254 = select i1 %253, i8 44, i8 40
%255 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext %254, i8* %7)
%256 = call i64 @strchr(i8* %7, i8 signext 58)
%257 = icmp eq i64 %256, 0
br i1 %257, label %258, label %261
258: ; preds = %252
%259 = call i64 @strchr(i8* %7, i8 signext 39)
%260 = icmp eq i64 %259, 0
br i1 %260, label %262, label %261
261: ; preds = %258, %252
store i64 3, i64* %4
br label %262
262: ; preds = %261, %258
%263 = call i32 @strlen(i8* %7)
%264 = add nsw i32 %263, -1
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds [32767 x i8], [32767 x i8]* %6, i64 0, i64 %265
%267 = load i8, i8* %266
%268 = icmp eq i8 %267, 100
br i1 %268, label %269, label %270
269: ; preds = %262
store i64 3, i64* %4
br label %270
270: ; preds = %230, %246, %248, %269, %262, %235, %222
%271 = phi i32 [ 1, %222 ], [ %212, %230 ], [ 1, %235 ], [ 0, %269 ], [ 0, %262 ], [ %212, %248 ], [ %212, %246 ]
%272 = phi i8* [ %215, %222 ], [ %231, %230 ], [ %215, %235 ], [ %215, %269 ], [ %215, %262 ], [ %215, %248 ], [ %215, %246 ]
%273 = load i8, i8* %272
%274 = icmp eq i8 %273, 0
br i1 %274, label %275, label %210
275: ; preds = %270, %204
%276 = phi i32 [ %17, %204 ], [ %271, %270 ]
%277 = icmp eq i32 %276, 0
br i1 %277, label %278, label %280
278: ; preds = %275
%279 = call i32 @reg_strcat(i8** %2, i64* %3, i8 signext 41, i8* null)
br label %280
280: ; preds = %167, %116, %171, %35, %278, %275, %69, %31, %81, %94, %98, %95, %90, %21, %115, %111, %107, %42, %39, %27
ret void
}