// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x9963(%rip), %rax      # 0xafc0
movq (%rax), %rcx
leaq 0x9b49(%rip), %rax      # 0xb1b0
movq %rcx, (%rax)
movq 0x9957(%rip), %rax      # 0xafc8
movq (%rax), %rax
movq %rax, 0x9a9d(%rip)      # 0xb118
movl $0x1, 0x9b03(%rip)      # 0xb188
leaq 0x4b0d(%rip), %rax      # 0x6199
movq %rax, 0x9aed(%rip)      # 0xb180
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x4b00(%rip), %rdx      # 0x61a1
callq 0x1150
movl %eax, %ecx
movl %ecx, -0x1c(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %eax
je 0x178d
movl -0x1c(%rbp), %eax
addl $-0x56, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x20, %eax
ja 0x175f
movq -0x28(%rbp), %rax
leaq 0x492c(%rip), %rcx      # 0x6004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x10f0
movq %rax, %rdi
callq 0x1930
xorl %edi, %edi
callq 0x1170
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x10f0
movq %rax, %rdi
callq 0x1970
jmp 0x1788
movq 0x98bf(%rip), %rax      # 0xafd8
movq (%rax), %rdi
leaq 0x4a84(%rip), %rsi      # 0x61a7
callq 0x1130
leaq 0x9a81(%rip), %rcx      # 0xb1b0
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x1751
movq 0x9899(%rip), %rax      # 0xafd8
movq (%rax), %rdi
callq 0x1140
movl $0x1, %edi
callq 0x1170
jmp 0x1788
movl $0x1, 0x99c3(%rip)      # 0xb120
jmp 0x1788
movq 0x9892(%rip), %rax      # 0xaff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
leaq 0x4a32(%rip), %rsi      # 0x61a9
movb $0x0, %al
callq 0x10c0
movl $0x1, %edi
callq 0x1170
jmp 0x1693
movq 0x983c(%rip), %rax      # 0xafd0
movl (%rax), %ecx
movl -0x8(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x8(%rbp)
movq 0x982b(%rip), %rax      # 0xafd0
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
cmpl $0x0, -0x8(%rbp)
je 0x18a9
jmp 0x17c5
cmpl $0x0, -0x8(%rbp)
je 0x18a7
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x4a08(%rip), %rsi      # 0x61e5
callq 0x10b0
cmpl $0x0, %eax
jne 0x1808
movq 0x97da(%rip), %rax      # 0xafc8
movq (%rax), %rax
movq %rax, 0x9920(%rip)      # 0xb118
leaq 0x499a(%rip), %rax      # 0x6199
movq %rax, 0x997a(%rip)      # 0xb180
jmp 0x184c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x49b4(%rip), %rsi      # 0x61ca
callq 0x1130
movq %rax, 0x98f6(%rip)      # 0xb118
cmpq $0x0, %rax
jne 0x183e
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1140
movl $0x1, %edi
callq 0x1170
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x9934(%rip)      # 0xb180
movl $0x1, 0x9932(%rip)      # 0xb188
callq 0x1450
cmpl $0x0, %eax
jne 0x186c
leaq 0x4958(%rip), %rdi      # 0x61bf
callq 0x1470
movq 0x98a5(%rip), %rax      # 0xb118
movq 0x974e(%rip), %rcx      # 0xafc8
cmpq (%rcx), %rax
je 0x188b
movq 0x9892(%rip), %rdi      # 0xb118
callq 0x1030
jmp 0x188d
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0x17c5
jmp 0x18c1
callq 0x1450
cmpl $0x0, %eax
jne 0x18bf
leaq 0x4905(%rip), %rdi      # 0x61bf
callq 0x1470
jmp 0x18c1
cmpl $0x0, 0x9858(%rip)      # 0xb120
je 0x18f8
leaq 0x98c7(%rip), %rax      # 0xb198
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x18f6
movq -0x18(%rbp), %rdi
callq 0x4ad0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x18d8
jmp 0x18f8
callq 0x4bd0
leaq 0x9894(%rip), %rax      # 0xb198
cmpq $0x0, (%rax)
je 0x1919
leaq 0x9887(%rip), %rax      # 0xb198
movq (%rax), %rdi
callq 0x4e70
xorl %eax, %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)