// File: /workspace/github_c_makefile_star2_O1/doublec[P]peg/peg.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();
  if (rules) Rule_compile_c(rules);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r12d
movq 0x8843(%rip), %rax      # 0x9fc0
movq (%rax), %rax
leaq 0x8a19(%rip), %r13      # 0xa1a0
movq %rax, (%r13)
movq 0x8836(%rip), %rax      # 0x9fc8
movq (%rax), %rax
movq %rax, 0x896c(%rip)      # 0xa108
movl $0x1, 0x89ca(%rip)      # 0xa170
leaq 0x3980(%rip), %rax      # 0x512d
movq %rax, 0x89b4(%rip)      # 0xa168
leaq 0x397a(%rip), %r14      # 0x5135
movq 0x8816(%rip), %rbp      # 0x9fd8
leaq 0x3972(%rip), %r15      # 0x513b
movl %r12d, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1150
cmpl $0x6e, %eax
jle 0x1810
cmpl $0x6f, %eax
je 0x17f6
cmpl $0x76, %eax
jne 0x1973
movl $0x1, 0x891c(%rip)      # 0xa110
jmp 0x17c9
movq (%rbp), %rdi
movq %r15, %rsi
callq 0x1130
movq %rax, (%r13)
testq %rax, %rax
jne 0x17c9
callq 0x11c0
cmpl $-0x1, %eax
jne 0x193e
movq 0x87b0(%rip), %rax      # 0x9fd0
movslq (%rax), %rax
subl %eax, %r12d
je 0x18dc
leaq (%rbx,%rax,8), %rbp
movl %r12d, %r15d
xorl %r13d, %r13d
leaq 0x393c(%rip), %rbx      # 0x5179
leaq 0x208(%rip), %r14       # 0x1a4c
movq (%rbp,%r13,8), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10b0
testl %eax, %eax
je 0x187d
movq %r12, %rdi
leaq 0x38fc(%rip), %rsi      # 0x515e
callq 0x1130
movq %rax, 0x889a(%rip)      # 0xa108
movq (%rbp,%r13,8), %rdi
testq %rax, %rax
jne 0x1895
jmp 0x197b
movq 0x8744(%rip), %rax      # 0x9fc8
movq (%rax), %rax
movq %rax, 0x887a(%rip)      # 0xa108
leaq 0x3898(%rip), %rdi      # 0x512d
movq %rdi, 0x88cc(%rip)      # 0xa168
movl $0x1, 0x88ca(%rip)      # 0xa170
movq %r14, %rdi
callq 0x14fc
testl %eax, %eax
je 0x1967
movq 0x884b(%rip), %rdi      # 0xa108
movq 0x8704(%rip), %rax      # 0x9fc8
cmpq (%rax), %rdi
je 0x18ce
callq 0x1030
incq %r13
cmpl %r13d, %r15d
jne 0x1844
jmp 0x18ec
leaq 0x169(%rip), %rdi       # 0x1a4c
callq 0x14fc
testl %eax, %eax
je 0x1967
cmpl $0x0, 0x881d(%rip)      # 0xa110
sete %al
leaq 0x888b(%rip), %r14      # 0xa188
movq (%r14), %rbx
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x191b
movq %rbx, %rdi
callq 0x35d4
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x190a
callq 0x3630
movq (%r14), %rdi
testq %rdi, %rdi
je 0x192d
callq 0x3750
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x56, %eax
je 0x1950
cmpl $0x68, %eax
jne 0x1973
movq %rbx, %rdi
callq 0x11d8
movq (%rbx), %rdi
callq 0x10f0
movq %rax, %rdi
callq 0x1980
xorl %edi, %edi
callq 0x1170
leaq 0x37e5(%rip), %rdi      # 0x5153
callq 0x1641
movq %rbx, %rdi
callq 0x12b6
callq 0x12a8