// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xeb68(%rip), %rax      # 0x13338
movq %rax, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
movl $0x6c, -0xa0(%rbp)
leaq 0xebde(%rip), %rax      # 0x133c7
movq %rax, -0x98(%rbp)
movl $0x0, -0x90(%rbp)
leaq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x4c, -0x80(%rbp)
leaq 0xebb9(%rip), %rax      # 0x133cc
movq %rax, -0x78(%rbp)
movl $0x1, -0x70(%rbp)
leaq -0x19(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x0, -0x60(%rbp)
leaq 0xeb9d(%rip), %rax      # 0x133d1
movq %rax, -0x58(%rbp)
movl $0x2, -0x50(%rbp)
leaq 0x1aa(%rip), %rax       # 0x49f0
movq %rax, -0x48(%rbp)
leaq -0xa0(%rbp), %rdi
addq $0x60, %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x2150
leaq -0x1f0(%rbp), %rdi
leaq 0xec61(%rip), %rsi      # 0x134d0
movl $0x148, %edx            # imm = 0x148
callq 0x21e0
leaq -0xa0(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
leaq -0x8(%rbp), %rdx
leaq -0x10(%rbp), %rcx
callq 0x40f0
testb $0x1, -0x19(%rbp)
je 0x48ab
callq 0x4a20
movl $0x0, -0x4(%rbp)
jmp 0x49e2
leaq 0xeb27(%rip), %rdi      # 0x133d9
callq 0x2030
movq %rax, -0x1f8(%rbp)
cmpq $0x0, -0x1f8(%rbp)
je 0x48d8
movq -0x1f8(%rbp), %rax
movq %rax, -0x218(%rbp)
jmp 0x48e8
leaq 0xeb02(%rip), %rax      # 0x133e1
movq %rax, -0x218(%rbp)
jmp 0x48e8
movq -0x218(%rbp), %rcx
leaq 0x11689a(%rip), %rax    # 0x11b190
movq %rcx, (%rax)
movq -0x18(%rbp), %rsi
leaq -0x200(%rbp), %rdi
movl $0x1, %edx
callq 0x4dc0
movl %eax, -0x204(%rbp)
cmpl $0x0, -0x204(%rbp)
je 0x4939
movl -0x204(%rbp), %edi
callq 0x4d40
movq %rax, %rsi
leaq 0xeacc(%rip), %rdi      # 0x133fe
movb $0x0, %al
callq 0x3d00
callq 0x29e0
movq %rax, -0x210(%rbp)
movl $0x0, -0x204(%rbp)
cmpl $0x0, -0x8(%rbp)
jne 0x497d
movq -0x200(%rbp), %rdi
movq -0x210(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x4a60
cmpl $0x0, %eax
je 0x497b
movl $0x1, -0x204(%rbp)
jmp 0x49c1
jmp 0x497f
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x49bf
movq -0x200(%rbp), %rdi
movq -0x210(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x10(%rbp)
movq (%rax), %rdx
callq 0x4a60
cmpl $0x0, %eax
je 0x49bd
movl $0x1, -0x204(%rbp)
jmp 0x497f
jmp 0x49c1
movq -0x200(%rbp), %rdi
callq 0x53d0
movq -0x210(%rbp), %rdi
callq 0x2ab0
movl -0x204(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
nop