#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 */
int BASM_PP_Expand(char **, char **, char *);
int BASM_PP_Expand2(char *, char *);
char *BASM_PP_PrintName(char *, char *);
char *BASM_PP_PrintToken(char *, char *, int);
char *BASM_Parse_Token(char *, char *, int *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int BASM_PP_Line(char *str) {
  char lbuf[4096];
  char b[256], b2[256];
  char *s, *t, *t1;
  int i, ty, ty2, ty3, ni;
  ni = 0;
  s = str;
  t = lbuf;
  while (*s && (*s <= ' '))
    *t++ = *s++;
  while (*s) {
    while (*s && (*s <= ' ') && (*s != '\n'))
      s++;
    if (*s == '\n') {
      *t++ = *s++;
      *t = 0;
      continue;
    }
    if ((s[0] == '$') && (s[1] == '(')) {
      s += 2;
      t1 = b;
      i = 1;
      while (*s && i) {
        if (*s == '(') {
          *t1++ = *s++;
          i++;
          continue;
        }
        if (*s == ')') {
          i--;
          if (i > 0)
            *t1++ = *s++;
          continue;
        }
        *t1++ = *s++;
      }
      *t1++ = 0;
      i = BASM_PP_Expand2(b, b2);
      if (i > 0) {
        strcpy(b2, t);
        ni++;
      }
      continue;
    }
    s = BASM_Parse_Token(s, b, &ty);
    BASM_Parse_Token(s, b2, &ty2);
    if ((ty2 == 6) && (!strcmp(b2, "##") || !strcmp(b, "%:%:"))) {
      if (ty == 1) {
        t1 = t;
        i = BASM_PP_Expand(&s, &t1, b);
        if (i > 0) {
          strcpy(b, t);
          ni++;
        }
      }
      s = BASM_Parse_Token(s, b2, &ty2);
      s = BASM_Parse_Token(s, b2, &ty2);
      if (ty2 == 1) {
        t1 = t;
        i = BASM_PP_Expand(&s, &t1, b2);
        if (i > 0) {
          strcpy(b2, t);
          ni++;
        }
      }
      strcat(b, b2);
      t = BASM_PP_PrintName(t, b);
      continue;
    }
    if (ty == 1) {
      i = BASM_PP_Expand(&s, &t, b);
      if (i > 0) {
        ni++;
        continue;
      }
      t = BASM_PP_PrintName(t, b);
      continue;
    }
    if ((ty == 6) && (!strcmp(b, "#") || !strcmp(b, "%:")))
      if (ty2 == 1) {
        s = BASM_Parse_Token(s, b2, &ty2);
        t1 = t;
        i = BASM_PP_Expand(&s, &t1, b2);
        if (i > 0) {
          strcpy(b2, t);
          ni++;
        }
        t = BASM_PP_PrintToken(t, b2, 3);
        continue;
      }
    t = BASM_PP_PrintToken(t, b, ty);
  }
  *t = 0;
  strcpy(str, lbuf);
  return (ni);
}


x86 assembly (clang, -O0):
<BASM_PP_Line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1240,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x123c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x1218(%rbp)
lea    -0x1010(%rbp),%rax
mov    %rax,-0x1220(%rbp)
mov    -0x1218(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x123d(%rbp)
je     11e3 <BASM_PP_Line+0x63>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
setle  %al
mov    %al,-0x123d(%rbp)
mov    -0x123d(%rbp),%al
test   $0x1,%al
jne    11f6 <BASM_PP_Line+0x76>
jmp    1229 <BASM_PP_Line+0xa9>
mov    -0x1218(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1218(%rbp)
mov    (%rax),%cl
mov    -0x1220(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x1220(%rbp)
mov    %cl,(%rax)
jmp    11b2 <BASM_PP_Line+0x32>
jmp    122e <BASM_PP_Line+0xae>
mov    -0x1218(%rbp),%rax
cmpb   $0x0,(%rax)
je     1844 <BASM_PP_Line+0x6c4>
jmp    1243 <BASM_PP_Line+0xc3>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x123e(%rbp)
je     128f <BASM_PP_Line+0x10f>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x123e(%rbp)
jg     128f <BASM_PP_Line+0x10f>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x123e(%rbp)
mov    -0x123e(%rbp),%al
test   $0x1,%al
jne    12a2 <BASM_PP_Line+0x122>
jmp    12b9 <BASM_PP_Line+0x139>
mov    -0x1218(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x1218(%rbp)
jmp    1243 <BASM_PP_Line+0xc3>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    1309 <BASM_PP_Line+0x189>
mov    -0x1218(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1218(%rbp)
mov    (%rax),%cl
mov    -0x1220(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x1220(%rbp)
mov    %cl,(%rax)
mov    -0x1220(%rbp),%rax
movb   $0x0,(%rax)
jmp    122e <BASM_PP_Line+0xae>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x24,%eax
jne    14e7 <BASM_PP_Line+0x367>
mov    -0x1218(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x28,%eax
jne    14e7 <BASM_PP_Line+0x367>
mov    -0x1218(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x1218(%rbp)
lea    -0x1110(%rbp),%rax
mov    %rax,-0x1228(%rbp)
movl   $0x1,-0x122c(%rbp)
mov    -0x1218(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x123f(%rbp)
je     1385 <BASM_PP_Line+0x205>
cmpl   $0x0,-0x122c(%rbp)
setne  %al
mov    %al,-0x123f(%rbp)
mov    -0x123f(%rbp),%al
test   $0x1,%al
jne    1398 <BASM_PP_Line+0x218>
jmp    1482 <BASM_PP_Line+0x302>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
jne    13ed <BASM_PP_Line+0x26d>
mov    -0x1218(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1218(%rbp)
mov    (%rax),%cl
mov    -0x1228(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x1228(%rbp)
mov    %cl,(%rax)
mov    -0x122c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x122c(%rbp)
jmp    135a <BASM_PP_Line+0x1da>
mov    -0x1218(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
jne    144f <BASM_PP_Line+0x2cf>
mov    -0x122c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    144a <BASM_PP_Line+0x2ca>
mov    -0x1218(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1218(%rbp)
mov    (%rax),%cl
mov    -0x1228(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x1228(%rbp)
mov    %cl,(%rax)
jmp    135a <BASM_PP_Line+0x1da>
mov    -0x1218(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1218(%rbp)
mov    (%rax),%cl
mov    -0x1228(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x1228(%rbp)
mov    %cl,(%rax)
jmp    135a <BASM_PP_Line+0x1da>
mov    -0x1228(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x1228(%rbp)
movb   $0x0,(%rax)
lea    -0x1110(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
call   1070 <BASM_PP_Expand2@plt>
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    14e2 <BASM_PP_Line+0x362>
lea    -0x1210(%rbp),%rdi
mov    -0x1220(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x123c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x123c(%rbp)
jmp    122e <BASM_PP_Line+0xae>
mov    -0x1218(%rbp),%rdi
lea    -0x1110(%rbp),%rsi
lea    -0x1230(%rbp),%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,-0x1218(%rbp)
mov    -0x1218(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
lea    -0x1234(%rbp),%rdx
call   1050 <BASM_Parse_Token@plt>
cmpl   $0x6,-0x1234(%rbp)
jne    16b9 <BASM_PP_Line+0x539>
lea    -0x1210(%rbp),%rdi
lea    0xac3(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1567 <BASM_PP_Line+0x3e7>
lea    -0x1110(%rbp),%rdi
lea    0xaaa(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    16b9 <BASM_PP_Line+0x539>
cmpl   $0x1,-0x1230(%rbp)
jne    15d6 <BASM_PP_Line+0x456>
mov    -0x1220(%rbp),%rax
mov    %rax,-0x1228(%rbp)
lea    -0x1110(%rbp),%rdx
lea    -0x1218(%rbp),%rdi
lea    -0x1228(%rbp),%rsi
call   1080 <BASM_PP_Expand@plt>
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    15d1 <BASM_PP_Line+0x451>
lea    -0x1110(%rbp),%rdi
mov    -0x1220(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x123c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x123c(%rbp)
jmp    15d6 <BASM_PP_Line+0x456>
mov    -0x1218(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
lea    -0x1234(%rbp),%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,-0x1218(%rbp)
mov    -0x1218(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
lea    -0x1234(%rbp),%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,-0x1218(%rbp)
cmpl   $0x1,-0x1234(%rbp)
jne    1687 <BASM_PP_Line+0x507>
mov    -0x1220(%rbp),%rax
mov    %rax,-0x1228(%rbp)
lea    -0x1210(%rbp),%rdx
lea    -0x1218(%rbp),%rdi
lea    -0x1228(%rbp),%rsi
call   1080 <BASM_PP_Expand@plt>
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    1682 <BASM_PP_Line+0x502>
lea    -0x1210(%rbp),%rdi
mov    -0x1220(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x123c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x123c(%rbp)
jmp    1687 <BASM_PP_Line+0x507>
lea    -0x1110(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
call   10a0 <strcat@plt>
mov    -0x1220(%rbp),%rdi
lea    -0x1110(%rbp),%rsi
call   1090 <BASM_PP_PrintName@plt>
mov    %rax,-0x1220(%rbp)
jmp    122e <BASM_PP_Line+0xae>
cmpl   $0x1,-0x1230(%rbp)
jne    1726 <BASM_PP_Line+0x5a6>
lea    -0x1110(%rbp),%rdx
lea    -0x1218(%rbp),%rdi
lea    -0x1220(%rbp),%rsi
call   1080 <BASM_PP_Expand@plt>
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    1707 <BASM_PP_Line+0x587>
mov    -0x123c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x123c(%rbp)
jmp    122e <BASM_PP_Line+0xae>
mov    -0x1220(%rbp),%rdi
lea    -0x1110(%rbp),%rsi
call   1090 <BASM_PP_PrintName@plt>
mov    %rax,-0x1220(%rbp)
jmp    122e <BASM_PP_Line+0xae>
cmpl   $0x6,-0x1230(%rbp)
jne    181f <BASM_PP_Line+0x69f>
lea    -0x1110(%rbp),%rdi
lea    0x8c0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     176b <BASM_PP_Line+0x5eb>
lea    -0x1110(%rbp),%rdi
lea    0x8a8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    181f <BASM_PP_Line+0x69f>
cmpl   $0x1,-0x1234(%rbp)
jne    181a <BASM_PP_Line+0x69a>
mov    -0x1218(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
lea    -0x1234(%rbp),%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,-0x1218(%rbp)
mov    -0x1220(%rbp),%rax
mov    %rax,-0x1228(%rbp)
lea    -0x1210(%rbp),%rdx
lea    -0x1218(%rbp),%rdi
lea    -0x1228(%rbp),%rsi
call   1080 <BASM_PP_Expand@plt>
mov    %eax,-0x122c(%rbp)
cmpl   $0x0,-0x122c(%rbp)
jle    17f6 <BASM_PP_Line+0x676>
lea    -0x1210(%rbp),%rdi
mov    -0x1220(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x123c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x123c(%rbp)
mov    -0x1220(%rbp),%rdi
lea    -0x1210(%rbp),%rsi
mov    $0x3,%edx
call   1030 <BASM_PP_PrintToken@plt>
mov    %rax,-0x1220(%rbp)
jmp    122e <BASM_PP_Line+0xae>
jmp    181f <BASM_PP_Line+0x69f>
mov    -0x1220(%rbp),%rdi
lea    -0x1110(%rbp),%rsi
mov    -0x1230(%rbp),%edx
call   1030 <BASM_PP_PrintToken@plt>
mov    %rax,-0x1220(%rbp)
jmp    122e <BASM_PP_Line+0xae>
mov    -0x1220(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rdi
lea    -0x1010(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x123c(%rbp),%eax
add    $0x1240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BASM_PP_Line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1238,%rsp
mov    %rdi,%r15
mov    %rdi,0x10(%rsp)
lea    0x230(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    (%rdi),%al
test   %al,%al
je     11fc <BASM_PP_Line+0x8c>
cmp    $0x20,%al
jg     11fc <BASM_PP_Line+0x8c>
lea    0x1(%r15),%rdi
mov    %rdi,0x10(%rsp)
mov    (%r15),%al
lea    0x231(%rsp),%rcx
mov    %rcx,0x8(%rsp)
mov    %al,0x230(%rsp)
mov    0x1(%r15),%al
test   %al,%al
je     11fc <BASM_PP_Line+0x8c>
cmp    $0x20,%al
jg     11fc <BASM_PP_Line+0x8c>
nopl   0x0(%rax)
mov    0x8(%rsp),%rax
lea    0x1(%rdi),%rcx
mov    %rcx,0x10(%rsp)
movzbl (%rdi),%ecx
lea    0x1(%rax),%rdx
mov    %rdx,0x8(%rsp)
mov    %cl,(%rax)
mov    0x10(%rsp),%rdi
movzbl (%rdi),%eax
test   %al,%al
je     11fc <BASM_PP_Line+0x8c>
cmp    $0x21,%al
jl     11d0 <BASM_PP_Line+0x60>
test   %al,%al
je     156a <BASM_PP_Line+0x3fa>
movl   $0x0,0x1c(%rsp)
lea    0x30(%rsp),%rbp
lea    0x130(%rsp),%rbx
lea    0x2c(%rsp),%r12
lea    0x28(%rsp),%r13
mov    $0x2323,%r14d
jmp    125f <BASM_PP_Line+0xef>
mov    %rdi,0x10(%rsp)
mov    -0x1(%rdi),%al
mov    0x8(%rsp),%rcx
lea    0x1(%rcx),%rdx
mov    %rdx,0x8(%rsp)
mov    %al,(%rcx)
mov    0x8(%rsp),%rax
movb   $0x0,(%rax)
nopl   0x0(%rax,%rax,1)
mov    0x10(%rsp),%rdi
mov    (%rdi),%al
test   %al,%al
je     1572 <BASM_PP_Line+0x402>
cmp    $0x20,%al
jg     1290 <BASM_PP_Line+0x120>
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
test   %al,%al
je     1385 <BASM_PP_Line+0x215>
cmp    $0xa,%al
je     122b <BASM_PP_Line+0xbb>
mov    %rdi,0x10(%rsp)
movzbl (%rdi),%eax
add    $0x1,%rdi
cmp    $0x21,%al
jl     1270 <BASM_PP_Line+0x100>
add    $0xffffffffffffffff,%rdi
cmp    $0x24,%al
jne    1389 <BASM_PP_Line+0x219>
cmpb   $0x28,0x1(%rdi)
jne    1389 <BASM_PP_Line+0x219>
lea    0x2(%rdi),%rcx
mov    %rcx,0x10(%rsp)
mov    %rbp,0x20(%rsp)
mov    0x2(%rdi),%dl
test   %dl,%dl
je     134f <BASM_PP_Line+0x1df>
mov    $0x1,%eax
cmp    $0x29,%dl
je     1315 <BASM_PP_Line+0x1a5>
cmp    $0x28,%dl
je     12f4 <BASM_PP_Line+0x184>
lea    0x1(%rcx),%rdx
mov    %rdx,0x10(%rsp)
movzbl (%rcx),%ecx
mov    0x20(%rsp),%rdx
lea    0x1(%rdx),%rsi
mov    %rsi,0x20(%rsp)
mov    %cl,(%rdx)
mov    0x10(%rsp),%rcx
movzbl (%rcx),%edx
test   %dl,%dl
jne    12c0 <BASM_PP_Line+0x150>
jmp    134f <BASM_PP_Line+0x1df>
lea    0x1(%rcx),%rdx
mov    %rdx,0x10(%rsp)
movzbl (%rcx),%ecx
mov    0x20(%rsp),%rdx
lea    0x1(%rdx),%rsi
mov    %rsi,0x20(%rsp)
mov    %cl,(%rdx)
add    $0x1,%eax
jmp    133b <BASM_PP_Line+0x1cb>
lea    -0x1(%rax),%edx
cmp    $0x2,%eax
jl     1339 <BASM_PP_Line+0x1c9>
lea    0x1(%rcx),%rax
mov    %rax,0x10(%rsp)
movzbl (%rcx),%eax
mov    0x20(%rsp),%rcx
lea    0x1(%rcx),%rsi
mov    %rsi,0x20(%rsp)
mov    %al,(%rcx)
mov    %edx,%eax
mov    0x10(%rsp),%rcx
movzbl (%rcx),%edx
test   %dl,%dl
je     134f <BASM_PP_Line+0x1df>
test   %eax,%eax
jne    12c0 <BASM_PP_Line+0x150>
mov    0x20(%rsp),%rax
lea    0x1(%rax),%rcx
mov    %rcx,0x20(%rsp)
movb   $0x0,(%rax)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <BASM_PP_Expand2@plt>
test   %eax,%eax
jle    1250 <BASM_PP_Line+0xe0>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
jmp    1507 <BASM_PP_Line+0x397>
add    $0xffffffffffffffff,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1050 <BASM_Parse_Token@plt>
mov    0x28(%rsp),%eax
cmp    $0x6,%eax
jne    13df <BASM_PP_Line+0x26f>
mov    0x130(%rsp),%ecx
xor    %r14d,%ecx
movzbl 0x132(%rsp),%edx
or     %cx,%dx
je     145d <BASM_PP_Line+0x2ed>
mov    0x30(%rsp),%ecx
mov    $0x3a253a25,%edx
xor    %edx,%ecx
movzbl 0x34(%rsp),%edx
or     %ecx,%edx
je     145d <BASM_PP_Line+0x2ed>
mov    0x2c(%rsp),%edx
cmp    $0x6,%edx
je     1420 <BASM_PP_Line+0x2b0>
cmp    $0x1,%edx
jne    1446 <BASM_PP_Line+0x2d6>
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %rbp,%rdx
call   1070 <BASM_PP_Expand@plt>
test   %eax,%eax
jg     1507 <BASM_PP_Line+0x397>
mov    0x8(%rsp),%rdi
mov    %rbp,%rsi
call   1080 <BASM_PP_PrintName@plt>
mov    %rax,0x8(%rsp)
jmp    1250 <BASM_PP_Line+0xe0>
xchg   %ax,%ax
cmpw   $0x23,0x30(%rsp)
je     143d <BASM_PP_Line+0x2cd>
mov    0x30(%rsp),%ecx
mov    $0x3a25,%esi
xor    %esi,%ecx
movzbl 0x32(%rsp),%esi
or     %cx,%si
jne    1446 <BASM_PP_Line+0x2d6>
cmp    $0x1,%eax
je     1511 <BASM_PP_Line+0x3a1>
mov    0x8(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <BASM_PP_PrintToken@plt>
mov    %rax,0x8(%rsp)
jmp    1250 <BASM_PP_Line+0xe0>
cmpl   $0x1,0x2c(%rsp)
jne    1496 <BASM_PP_Line+0x326>
mov    0x8(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    %rbp,%rdx
call   1070 <BASM_PP_Expand@plt>
test   %eax,%eax
jle    1496 <BASM_PP_Line+0x326>
mov    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
addl   $0x1,0x1c(%rsp)
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,0x10(%rsp)
cmpl   $0x1,0x28(%rsp)
jne    14f7 <BASM_PP_Line+0x387>
mov    0x8(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    %rbx,%rdx
call   1070 <BASM_PP_Expand@plt>
test   %eax,%eax
jle    14f7 <BASM_PP_Line+0x387>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
addl   $0x1,0x1c(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcat@plt>
jmp    1407 <BASM_PP_Line+0x297>
addl   $0x1,0x1c(%rsp)
jmp    1250 <BASM_PP_Line+0xe0>
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1050 <BASM_Parse_Token@plt>
mov    %rax,0x10(%rsp)
mov    0x8(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    %rbx,%rdx
call   1070 <BASM_PP_Expand@plt>
test   %eax,%eax
jle    1558 <BASM_PP_Line+0x3e8>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
addl   $0x1,0x1c(%rsp)
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
jmp    144e <BASM_PP_Line+0x2de>
movl   $0x0,0x1c(%rsp)
mov    0x8(%rsp),%rax
movb   $0x0,(%rax)
lea    0x230(%rsp),%rsi
mov    %r15,%rdi
call   1040 <strcpy@plt>
mov    0x1c(%rsp),%eax
add    $0x1238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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