// File: /workspace/github_c_makefile_star2_O1/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 0x681c(%rip), %rax      # 0xa338
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
leaq 0xf(%rsp), %rbp
movb $0x0, (%rbp)
leaq 0x30(%rsp), %r12
movl $0x6c, (%r12)
leaq 0x6886(%rip), %rax      # 0xa3c7
movq %rax, 0x8(%r12)
xorl %ebx, %ebx
movl %ebx, 0x10(%r12)
movq %rcx, 0x18(%r12)
movl $0x4c, 0x20(%r12)
leaq 0x686a(%rip), %rax      # 0xa3cc
movq %rax, 0x28(%r12)
movl $0x1, 0x30(%r12)
movq %rbp, 0x38(%r12)
movl %ebx, 0x40(%r12)
leaq 0x6850(%rip), %rax      # 0xa3d1
movq %rax, 0x48(%r12)
movl $0x2, 0x50(%r12)
leaq 0x159(%rip), %rax       # 0x3cef
movq %rax, 0x58(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%r12)
movaps %xmm0, 0x70(%r12)
leaq 0x691f(%rip), %rsi      # 0xa4d0
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 0x3650
cmpb $0x1, (%rbp)
jne 0x3c0b
callq 0x3f1c
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3cc3
movq %rax, %r14
addq $0x8, %r14
callq 0x2080
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x3bf5
jmp 0x3cc3
leaq 0x67c7(%rip), %rdi      # 0xa3d9
callq 0x2030
testq %rax, %rax
leaq 0x67c0(%rip), %rcx      # 0xa3e1
cmovneq %rax, %rcx
leaq 0x10d564(%rip), %rax    # 0x111190
movq %rcx, (%rax)
movq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
callq 0x3f5d
testl %eax, %eax
jne 0x3cd7
callq 0x2bcc
movq %rax, %r14
cmpl $0x0, 0x24(%rsp)
je 0x3c97
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x3caf
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 0x3d03
testl %eax, %eax
cmovnel %ebp, %ebx
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x3c6c
jmp 0x3cb1
movq 0x10(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3d03
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
jmp 0x3cb1
xorl %ebx, %ebx
movq 0x10(%rsp), %rdi
callq 0x473a
movq %r14, %rdi
callq 0x2c3d
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 0x3f24
leaq 0x6719(%rip), %rdi      # 0xa3fe
movq %rax, %rsi
xorl %eax, %eax
callq 0x3444