// File: /workspace/github_c_makefile_star2_O2/macournoyer[P]peg/leg.c
// Function: main
int main(int argc, char **argv)
{
  Node *n;
  int   c;

  output= stdout;
  input= stdin;
  lineNumber= 1;
  fileName= "<stdin>";

  while (-1 != (c= getopt(argc, argv, "Vho:v")))
    {
      switch (c)
	{
	case 'V':
	  version(basename(argv[0]));
	  exit(0);

	case 'h':
	  usage(basename(argv[0]));
	  break;

	case 'o':
	  if (!(output= fopen(optarg, "w")))
	    {
	      perror(optarg);
	      exit(1);
	    }
	  break;

	case 'v':
	  verboseFlag= 1;
	  break;

	default:
	  fprintf(stderr, "for usage try: %s -h\n", argv[0]);
	  exit(1);
	}
    }
  argc -= optind;
  argv += optind;

  if (argc)
    {
      for (;  argc;  --argc, ++argv)
	{
	  if (!strcmp(*argv, "-"))
	    {
	      input= stdin;
	      fileName= "<stdin>";
	    }
	  else
	    {
	      if (!(input= fopen(*argv, "r")))
		{
		  perror(*argv);
		  exit(1);
		}
	      fileName= *argv;
	    }
	  lineNumber= 1;
	  if (!yyparse())
	    yyerror("syntax error");
	  if (input != stdin)
	    fclose(input);
	}
    }
  else
    if (!yyparse())
      yyerror("syntax error");

  if (verboseFlag)
    for (n= rules;  n;  n= n->any.next)
      Rule_print(n);

  Rule_compile_c_header();

  for (; headers;  headers= headers->next)
    fprintf(output, "%s\n", headers->text);

  if (rules)
    Rule_compile_c(rules);

  if (trailer)
    fprintf(output, "%s\n", trailer);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movq 0x8a43(%rip), %rax      # 0x9fc0
movq (%rax), %rax
leaq 0x8c29(%rip), %r12      # 0xa1b0
movq %rax, (%r12)
movq 0x8a36(%rip), %rax      # 0x9fc8
movq (%rax), %rax
movq %rax, 0x8b6c(%rip)      # 0xa108
movl $0x1, 0x8bca(%rip)      # 0xa170
leaq 0x3a81(%rip), %rax      # 0x502e
movq %rax, 0x8bb4(%rip)      # 0xa168
leaq 0x3a7b(%rip), %r14      # 0x5036
movq 0x8a16(%rip), %r13      # 0x9fd8
leaq 0x3a73(%rip), %r15      # 0x503c
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1150
cmpl $0x6f, %eax
je 0x15ec
cmpl $0x76, %eax
jne 0x160f
movl $0x1, 0x8b26(%rip)      # 0xa110
jmp 0x15c9
movq (%r13), %rdi
movq %r15, %rsi
callq 0x1130
movq %rax, (%r12)
testq %rax, %rax
jne 0x15c9
movq (%r13), %rdi
callq 0x1140
jmp 0x186f
cmpl $-0x1, %eax
jne 0x1769
movq 0x89b1(%rip), %rax      # 0x9fd0
movslq (%rax), %rax
subl %eax, %ebp
movq 0x899d(%rip), %r13      # 0x9fc8
je 0x16b6
leaq (%rbx,%rax,8), %r14
movl %ebp, %r15d
xorl %ebp, %ebp
leaq 0x3a1e(%rip), %rbx      # 0x505f
cmpl %ebp, %r15d
je 0x16c3
movq (%r14,%rbp,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x1655
cmpb $0x0, 0x1(%rdi)
je 0x16a2
movq %rbx, %rsi
callq 0x1130
movq %rax, 0x8aa4(%rip)      # 0xa108
movq (%r14,%rbp,8), %rdi
testq %rax, %rax
je 0x1605
movq %rdi, 0x8af4(%rip)      # 0xa168
movl $0x1, 0x8af2(%rip)      # 0xa170
callq 0x13fb
testl %eax, %eax
je 0x1877
movq 0x8a76(%rip), %rdi      # 0xa108
cmpq (%r13), %rdi
je 0x169d
callq 0x1030
incq %rbp
jmp 0x1641
movq (%r13), %rax
movq %rax, 0x8a5b(%rip)      # 0xa108
leaq 0x397a(%rip), %rdi      # 0x502e
jmp 0x166d
callq 0x13fb
testl %eax, %eax
je 0x1877
cmpl $0x0, 0x8a46(%rip)      # 0xa110
je 0x16e9
leaq 0x8ac5(%rip), %rbx      # 0xa198
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x16e9
movq %rbx, %rdi
callq 0x3456
addq $0x8, %rbx
jmp 0x16d3
callq 0x3510
movq 0x8a83(%rip), %rax      # 0xa178
leaq 0x52e2(%rip), %rbx      # 0x69de
testq %rax, %rax
je 0x1726
movq (%r12), %rdi
movq (%rax), %rdx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10c0
movq 0x8a5f(%rip), %rax      # 0xa178
movq 0x8(%rax), %rax
movq %rax, 0x8a54(%rip)      # 0xa178
jmp 0x16fc
leaq 0x8a6b(%rip), %rax      # 0xa198
movq (%rax), %rdi
testq %rdi, %rdi
je 0x173a
callq 0x3662
movq 0x8a3f(%rip), %rdx      # 0xa180
testq %rdx, %rdx
je 0x1758
movq (%r12), %rdi
leaq 0x528d(%rip), %rsi      # 0x69de
xorl %eax, %eax
callq 0x10c0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x68, %eax
je 0x178e
cmpl $0x56, %eax
jne 0x1854
movq (%rbx), %rdi
callq 0x10f0
movq %rax, %rdi
callq 0x1883
xorl %edi, %edi
callq 0x1170
movq (%rbx), %rdi
callq 0x10f0
movq %rax, %rbx
movq %rax, %rdi
callq 0x1883
movq 0x8850(%rip), %r14      # 0x9ff8
movq (%r14), %rdi
leaq 0x38f5(%rip), %rsi      # 0x50a7
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10c0
movq (%r14), %rcx
leaq 0x3906(%rip), %rdi      # 0x50cc
pushq $0x16
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x3905(%rip), %rdi      # 0x50e3
pushq $0x2a
popq %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x391b(%rip), %rdi      # 0x510e
pushq $0x26
popq %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x392d(%rip), %rdi      # 0x5135
pushq $0x19
popq %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x3932(%rip), %rdi      # 0x514f
pushq $0x2c
popq %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x394a(%rip), %rdi      # 0x517c
pushq $0x30
popq %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r14), %rcx
leaq 0x3966(%rip), %rdi      # 0x51ad
pushq $0x34
popq %rsi
movq %rbx, %rdx
callq 0x1180
jmp 0x186f
movq 0x879d(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x37d6(%rip), %rsi      # 0x503e
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x1170
leaq 0x37d6(%rip), %rdi      # 0x5054
callq 0x1407