// File: /workspace/github_c_makefile_star2_O3/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, 0x2d26(%rip)      # 0x4080
movl %eax, 0x2d50(%rip)      # 0x40b0
movl $0x606060, %eax         # imm = 0x606060
movl %eax, 0x2d75(%rip)      # 0x40e0
movl %eax, 0x2d9f(%rip)      # 0x4110
cmpl $0x2, %edi
jl 0x14ee
movq %rsi, %rbx
movl %edi, %ebp
movl $0x0, 0x4(%rsp)
movl $0x1, %r12d
leaq 0xc72(%rip), %r14       # 0x2006
movslq %r12d, %r13
movq (%rbx,%r13,8), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1060
testl %eax, %eax
je 0x148b
movq %r15, %rdi
leaq 0xc5b(%rip), %rsi       # 0x2013
callq 0x1060
testl %eax, %eax
je 0x148b
movq %r15, %rdi
leaq 0xc48(%rip), %rsi       # 0x2017
callq 0x1060
testl %eax, %eax
je 0x149d
movq %r15, %rdi
leaq 0xc3c(%rip), %rsi       # 0x2022
callq 0x1060
testl %eax, %eax
je 0x149d
movq %r15, %rdi
leaq 0xc29(%rip), %rsi       # 0x2026
callq 0x1060
testl %eax, %eax
je 0x14af
movq %r15, %rdi
leaq 0xc1f(%rip), %rsi       # 0x2033
callq 0x1060
testl %eax, %eax
je 0x14af
movq %r15, %rdi
leaq 0xc0c(%rip), %rsi       # 0x2037
callq 0x1060
testl %eax, %eax
je 0x14c1
movq %r15, %rdi
leaq 0xc00(%rip), %rsi       # 0x2042
callq 0x1060
testl %eax, %eax
je 0x14c1
movq %r15, %rdi
leaq 0xbf1(%rip), %rsi       # 0x2046
callq 0x1060
testl %eax, %eax
je 0x14e4
cmpb $0x2d, (%r15)
jne 0x1476
cmpb $0x74, 0x1(%r15)
jne 0x1476
cmpb $0x0, 0x2(%r15)
je 0x14e4
movq %r15, %rdi
movl 0x4(%rsp), %esi
leaq -0x156(%rip), %rdx      # 0x132e
callq 0x125a
jmp 0x14d6
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2be5(%rip), %rdi      # 0x4080
jmp 0x14d1
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c03(%rip), %rdi      # 0x40b0
jmp 0x14d1
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c21(%rip), %rdi      # 0x40e0
jmp 0x14d1
leal 0x1(%r13), %r12d
movq 0x8(%rbx,%r13,8), %rsi
leaq 0x2c3f(%rip), %rdi      # 0x4110
callq 0x1030
incl %r12d
cmpl %ebp, %r12d
jl 0x1394
jmp 0x14fa
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x14d6
leaq 0xb75(%rip), %rdi       # 0x206a
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq