// File: /workspace/github_c_makefile_star2_O2/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 0x1c(%rsp), %rbx
movl %edi, (%rbx)
leaq 0x20(%rsp), %r14
movq %rsi, (%r14)
leaq 0x5a78(%rip), %rax      # 0x9307
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
leaq 0xf(%rsp), %r13
movb $0x0, (%r13)
leaq 0x30(%rsp), %r15
movl $0x6c, (%r15)
leaq 0x5ae2(%rip), %rax      # 0x9396
movq %rax, 0x8(%r15)
andl $0x0, 0x10(%r15)
movq %rcx, 0x18(%r15)
movl $0x4c, 0x20(%r15)
leaq 0x5acb(%rip), %rax      # 0x939b
movq %rax, 0x28(%r15)
movl $0x1, 0x30(%r15)
movq %r13, 0x38(%r15)
andl $0x0, 0x40(%r15)
leaq 0x5ab4(%rip), %rax      # 0x93a0
movq %rax, 0x48(%r15)
movl $0x2, 0x50(%r15)
leaq 0x138(%rip), %rax       # 0x3a37
movq %rax, 0x58(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%r15)
movaps %xmm0, 0x70(%r15)
leaq 0x5b89(%rip), %rsi      # 0x94a0
leaq 0xb0(%rsp), %r12
movl $0x148, %edx            # imm = 0x148
movq %r12, %rdi
callq 0x21d0
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x349a
cmpb $0x1, (%r13)
jne 0x3963
callq 0x3c48
movq %rax, %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x39de
addq $0x8, %rbx
callq 0x2080
jmp 0x394c
leaq 0x5a3e(%rip), %rdi      # 0x93a8
callq 0x2030
testq %rax, %rax
leaq 0x5a37(%rip), %rcx      # 0x93b0
cmovneq %rax, %rcx
leaq 0x10d80c(%rip), %rax    # 0x111190
movq %rcx, (%rax)
movq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %r14
movl %r14d, %edx
callq 0x3c89
testl %eax, %eax
jne 0x3a1f
callq 0x299c
movq %rax, %rbx
cmpl $0x0, 0x1c(%rsp)
je 0x39e2
xorl %ebp, %ebp
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
je 0x39f9
movq 0x10(%rsp), %rdi
leaq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movq (%rax), %rdx
movq %rbx, %rsi
callq 0x3a4b
testl %eax, %eax
cmovnel %r14d, %ebp
jmp 0x39b2
xorl %ebp, %ebp
jmp 0x3a0b
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3a4b
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movq 0x10(%rsp), %rdi
callq 0x449c
movq %rbx, %rdi
callq 0x29f6
movl %ebp, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x3c50
leaq 0x59a0(%rip), %rdi      # 0x93cd
movq %rax, %rsi
xorl %eax, %eax
callq 0x317c