// File: /workspace/github_c_makefile_star2_O2/yangtau[P]hedgehog/src/yy.hedgehog.c
// Function: yy_lac
static int
yy_lac (yy_state_t *yyesa, yy_state_t **yyes,
        YYPTRDIFF_T *yyes_capacity, yy_state_t *yyssp, yysymbol_kind_t yytoken)
{
  yy_state_t *yyes_prev = yyssp;
  yy_state_t *yyesp = yyes_prev;
  /* Reduce until we encounter a shift and thereby accept the token.  */
  YYDPRINTF ((stderr, "LAC: checking lookahead %s:", yysymbol_name (yytoken)));
  if (yytoken == YYSYMBOL_YYUNDEF)
    {
      YYDPRINTF ((stderr, " Always Err\n"));
      return 1;
    }
  while (1)
    {
      int yyrule = yypact[+*yyesp];
      if (yypact_value_is_default (yyrule)
          || (yyrule += yytoken) < 0 || YYLAST < yyrule
          || yycheck[yyrule] != yytoken)
        {
          /* Use the default action.  */
          yyrule = yydefact[+*yyesp];
          if (yyrule == 0)
            {
              YYDPRINTF ((stderr, " Err\n"));
              return 1;
            }
        }
      else
        {
          /* Use the action from yytable.  */
          yyrule = yytable[yyrule];
          if (yytable_value_is_error (yyrule))
            {
              YYDPRINTF ((stderr, " Err\n"));
              return 1;
            }
          if (0 < yyrule)
            {
              YYDPRINTF ((stderr, " S%d\n", yyrule));
              return 0;
            }
          yyrule = -yyrule;
        }
      /* By now we know we have to simulate a reduce.  */
      YYDPRINTF ((stderr, " R%d", yyrule - 1));
      {
        /* Pop the corresponding number of values from the stack.  */
        YYPTRDIFF_T yylen = yyr2[yyrule];
        /* First pop from the LAC stack as many tokens as possible.  */
        if (yyesp != yyes_prev)
          {
            YYPTRDIFF_T yysize = yyesp - *yyes + 1;
            if (yylen < yysize)
              {
                yyesp -= yylen;
                yylen = 0;
              }
            else
              {
                yyesp = yyes_prev;
                yylen -= yysize;
              }
          }
        /* Only afterwards look at the main stack.  */
        if (yylen)
          yyesp = yyes_prev -= yylen;
      }
      /* Push the resulting state of the reduction.  */
      {
        yy_state_fast_t yystate;
        {
          const int yylhs = yyr1[yyrule] - YYNTOKENS;
          const int yyi = yypgoto[yylhs] + *yyesp;
          yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyesp
                     ? yytable[yyi]
                     : yydefgoto[yylhs]);
        }
        if (yyesp == yyes_prev)
          {
            yyesp = *yyes;
            YY_IGNORE_USELESS_CAST_BEGIN
            *yyesp = YY_CAST (yy_state_t, yystate);
            YY_IGNORE_USELESS_CAST_END
          }
        else
          {
            if (yy_lac_stack_realloc (yyes_capacity, 1,
#if HG_YYDEBUG
                                      " (", ")",
#endif
                                      yyes, yyesa, &yyesp, yyes_prev))
              {
                YYDPRINTF ((stderr, "\n"));
                return YYENOMEM;
              }
            YY_IGNORE_USELESS_CAST_BEGIN
            *++yyesp = YY_CAST (yy_state_t, yystate);
            YY_IGNORE_USELESS_CAST_END
          }
        YYDPRINTF ((stderr, " G%d", yystate));
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
pushq $0x1
popq %rax
cmpl $0x2, %r8d
je 0x54f7
movb (%rcx), %r15b
leaq 0x1b9e(%rip), %r11      # 0x6ee0
leaq 0x2457(%rip), %r14      # 0x77a0
leaq 0x24f0(%rip), %r12      # 0x7840
leaq 0x2549(%rip), %rbp      # 0x78a0
movq %rcx, %rbx
movl %r8d, 0xc(%rsp)
movq %rdx, 0x10(%rsp)
movzbl %r15b, %eax
movswl (%r11,%rax,2), %edi
cmpl $-0x4b, %edi
je 0x53aa
addl %r8d, %edi
cmpl $0x196, %edi            # imm = 0x196
ja 0x53aa
movl %edi, %edi
leaq 0x1dba(%rip), %r9       # 0x7140
movswl (%r9,%rdi,2), %r9d
cmpl %r8d, %r9d
jne 0x53aa
leaq 0x20d9(%rip), %rax      # 0x7470
movswq (%rax,%rdi,2), %rax
testq %rax, %rax
jg 0x5506
negq %rax
jmp 0x53b8
movsbq (%rax,%r14), %rax
testq %rax, %rax
je 0x54f0
movsbq (%rax,%r12), %rdi
cmpq %rbx, %rcx
je 0x53d6
movq %rcx, %r9
subq (%rsi), %r9
cmpq %rdi, %r9
jge 0x53e3
notq %r9
addq %r9, %rdi
movq %rbx, %rcx
testq %rdi, %rdi
je 0x53e6
subq %rdi, %rbx
movq %rbx, %rcx
jmp 0x53e6
subq %rdi, %rcx
movsbq (%rax,%rbp), %rax
leaq 0x250e(%rip), %rdi      # 0x7900
movsbl -0x2b(%rax,%rdi), %edi
movzbl (%rcx), %r9d
addl %r9d, %edi
js 0x5421
movl %edi, %r10d
leaq 0x1d36(%rip), %rdi      # 0x7140
movswl (%rdi,%r10,2), %edi
cmpl %r9d, %edi
jne 0x5421
leaq 0x2055(%rip), %rax      # 0x7470
movb (%rax,%r10,2), %r15b
jmp 0x542d
leaq 0x24f8(%rip), %rdi      # 0x7920
movb -0x2b(%rax,%rdi), %r15b
movq (%rsi), %r13
cmpq %rbx, %rcx
je 0x54e4
movq %rbx, 0x20(%rsp)
movq %rcx, %rax
subq %r13, %rax
leaq 0x1(%rax), %rbx
cmpq %rbx, (%rdx)
jg 0x54d7
cmpq $0x270e, %rax           # imm = 0x270E
jg 0x54f4
movq %rsi, %r14
leaq 0x2(,%rbx,2), %r12
movl $0x2710, %eax           # imm = 0x2710
cmpq %rax, %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x2150
testq %rax, %rax
je 0x54f4
movq %rax, %rbp
movq %rax, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x2130
cmpq 0x18(%rsp), %r13
je 0x54a1
movq %r13, %rdi
callq 0x2030
leaq (%rbx,%rbp), %rcx
decq %rcx
movq %r14, %rsi
movq %rbp, (%r14)
movq 0x10(%rsp), %rdx
movq %r12, (%rdx)
movl 0xc(%rsp), %r8d
leaq 0x1a1e(%rip), %r11      # 0x6ee0
leaq 0x22d7(%rip), %r14      # 0x77a0
leaq 0x2370(%rip), %r12      # 0x7840
leaq 0x23c9(%rip), %rbp      # 0x78a0
incq %rcx
movq %rcx, %r13
movq 0x20(%rsp), %rbx
jmp 0x54e7
movq %r13, %rcx
movb %r15b, (%r13)
jmp 0x5364
pushq $0x1
jmp 0x54f6
pushq $-0x2
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x54f7