// File: /workspace/github_c_makefile_star2_O3/michaelnmmeyer[P]gourgandine/cmd/gourgandine.c
// Function: main
int main(int argc, char **argv)
{
   const char *lang = "en";
   bool list = false;
   struct option opts[] = {
      {'l', "lang", OPT_STR(lang)},
      {'L', "list", OPT_BOOL(list)},
      {'\0', "version", OPT_FUNC(version)},
      {0},
   };
   const char help[] =
      #include "gourgandine.ih"
   ;
   parse_options(opts, help, &argc, &argv);

   if (list) {
      display_langs();
      return EXIT_SUCCESS;
   }
   
   const char *home = getenv("MR_HOME");
   mr_home = home ? home : MR_HOME;

   struct mascara *mr;
   int ret = mr_alloc(&mr, lang, MR_SENTENCE);
   if (ret)
      die("cannot create tokenizer: %s", mr_strerror(ret));

   struct gourgandine *gn = gn_alloc();
   ret = EXIT_SUCCESS;
   if (!argc) {
      if (process(mr, gn, NULL))
         ret = EXIT_FAILURE;
   } else {
      while (*argv)
         if (process(mr, gn, *argv++))
            ret = EXIT_FAILURE;
   }
   mr_dealloc(mr);
   gn_dealloc(gn);
   return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
leaq 0x24(%rsp), %r14
movl %edi, (%r14)
leaq 0x18(%rsp), %r15
movq %rsi, (%r15)
leaq 0x6853(%rip), %rax      # 0xa307
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
leaq 0xf(%rsp), %rbp
movb $0x0, (%rbp)
leaq 0x30(%rsp), %r12
movl $0x6c, (%r12)
leaq 0x68bd(%rip), %rax      # 0xa396
movq %rax, 0x8(%r12)
xorl %ebx, %ebx
movl %ebx, 0x10(%r12)
movq %rcx, 0x18(%r12)
movl $0x4c, 0x20(%r12)
leaq 0x68a1(%rip), %rax      # 0xa39b
movq %rax, 0x28(%r12)
movl $0x1, 0x30(%r12)
movq %rbp, 0x38(%r12)
movl %ebx, 0x40(%r12)
leaq 0x6887(%rip), %rax      # 0xa3a0
movq %rax, 0x48(%r12)
movl $0x2, 0x50(%r12)
leaq 0x159(%rip), %rax       # 0x3c87
movq %rax, 0x58(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%r12)
movaps %xmm0, 0x70(%r12)
leaq 0x6957(%rip), %rsi      # 0xa4a0
leaq 0xb0(%rsp), %r13
movl $0x148, %edx            # imm = 0x148
movq %r13, %rdi
callq 0x21d0
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x3644
cmpb $0x1, (%rbp)
jne 0x3ba3
callq 0x3eb4
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3c5b
movq %rax, %r14
addq $0x8, %r14
callq 0x2080
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x3b8d
jmp 0x3c5b
leaq 0x67fe(%rip), %rdi      # 0xa3a8
callq 0x2030
testq %rax, %rax
leaq 0x67f7(%rip), %rcx      # 0xa3b0
cmovneq %rax, %rcx
leaq 0x10d5cc(%rip), %rax    # 0x111190
movq %rcx, (%rax)
movq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x3ef5
testl %eax, %eax
jne 0x3c6f
callq 0x2c15
movq %rax, %r14
cmpl $0x0, 0x24(%rsp)
je 0x3c2f
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x3c47
xorl %ebx, %ebx
movl $0x1, %ebp
movq 0x10(%rsp), %rdi
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %rdx
movq %r14, %rsi
callq 0x3c9b
testl %eax, %eax
cmovnel %ebp, %ebx
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x3c04
jmp 0x3c49
movq 0x10(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3c9b
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
jmp 0x3c49
xorl %ebx, %ebx
movq 0x10(%rsp), %rdi
callq 0x465b
movq %r14, %rdi
callq 0x2c86
movl %ebx, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x3ebc
leaq 0x6750(%rip), %rdi      # 0xa3cd
movq %rax, %rsi
xorl %eax, %eax
callq 0x343c