// File: /workspace/github_c_makefile_star2_O1/crcx[P]retroforth/tools/retro-unu.c
// Function: main
int main(int argc, char **argv) {
  int tests = 0;
  int i = 1;
  strcpy(code_start, "~~~");
  strcpy(code_end,   "~~~");
  strcpy(test_start, "```");
  strcpy(test_end,   "```");
  if (argc > 1) {
    while (i < argc) {
      if (arg_is(argv[i], "--code-start") || arg_is(argv[i], "-cs")) {
        i++;
        strcpy(code_start, argv[i]);
      } else if (arg_is(argv[i], "--code-end") || arg_is(argv[i], "-ce")) {
        i++;
        strcpy(code_end, argv[i]);
      } else if (arg_is(argv[i], "--test-start") || arg_is(argv[i], "-ts")) {
        i++;
        strcpy(test_start, argv[i]);
      } else if (arg_is(argv[i], "--test-end") || arg_is(argv[i], "-te")) {
        i++;
        strcpy(test_end, argv[i]);
      } else if (arg_is(argv[i], "--include-tests") || arg_is(argv[i], "-t")) {
        tests = -1;
      } else {
        unu(argv[i], tests, &display);
      }
      i++;
    }
  }
  else {
    printf("err: no file specified\n");
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x7e7e7e, %eax         # imm = 0x7E7E7E
movl %eax, 0x2d48(%rip)      # 0x4080
movl %eax, 0x2d72(%rip)      # 0x40b0
movl $0x606060, %eax         # imm = 0x606060
movl %eax, 0x2d97(%rip)      # 0x40e0
movl %eax, 0x2dc1(%rip)      # 0x4110
cmpl $0x2, %edi
jl 0x14cb
movq %rsi, %rbx
movl %edi, %ebp
movl $0x0, 0x4(%rsp)
movl $0x1, %r12d
leaq 0xc94(%rip), %r14       # 0x2006
movslq %r12d, %r13
movq (%rbx,%r13,8), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1060
testl %eax, %eax
je 0x1468
movq %r15, %rdi
leaq 0xc7d(%rip), %rsi       # 0x2013
callq 0x1060
testl %eax, %eax
je 0x1468
movq %r15, %rdi
leaq 0xc6a(%rip), %rsi       # 0x2017
callq 0x1060
testl %eax, %eax
je 0x147a
movq %r15, %rdi
leaq 0xc5e(%rip), %rsi       # 0x2022
callq 0x1060
testl %eax, %eax
je 0x147a
movq %r15, %rdi
leaq 0xc4b(%rip), %rsi       # 0x2026
callq 0x1060
testl %eax, %eax
je 0x148c
movq %r15, %rdi
leaq 0xc41(%rip), %rsi       # 0x2033
callq 0x1060
testl %eax, %eax
je 0x148c
movq %r15, %rdi
leaq 0xc2e(%rip), %rsi       # 0x2037
callq 0x1060
testl %eax, %eax
je 0x149e
movq %r15, %rdi
leaq 0xc22(%rip), %rsi       # 0x2042
callq 0x1060
testl %eax, %eax
je 0x149e
movq %r15, %rdi
leaq 0xc13(%rip), %rsi       # 0x2046
callq 0x1060
testl %eax, %eax
je 0x14c1
movq %r15, %rdi
leaq 0xc0c(%rip), %rsi       # 0x2056
callq 0x1060
testl %eax, %eax
je 0x14c1
movq %r15, %rdi
movl 0x4(%rsp), %esi
leaq -0x155(%rip), %rdx      # 0x130c
callq 0x125a
jmp 0x14b3
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c08(%rip), %rdi      # 0x4080
jmp 0x14ae
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c26(%rip), %rdi      # 0x40b0
jmp 0x14ae
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c44(%rip), %rdi      # 0x40e0
jmp 0x14ae
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c62(%rip), %rdi      # 0x4110
callq 0x1030
incl %r12d
cmpl %ebp, %r12d
jl 0x1372
jmp 0x14d7
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x14b3
leaq 0xb9b(%rip), %rdi       # 0x206d
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq