// File: /workspace/github_c_makefile_star2_O3/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)
cmpl $0x2, %r8d
jne 0x5bd6
movl $0x1, 0x8(%rsp)
movl 0x8(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb (%rcx), %r15b
leaq 0x2350(%rip), %r11      # 0x7f30
leaq 0x2c09(%rip), %rbx      # 0x87f0
leaq 0x2ca2(%rip), %r14      # 0x8890
leaq 0x2cfb(%rip), %r12      # 0x88f0
movq %rcx, %rbp
movl %r8d, 0xc(%rsp)
movq %rdx, 0x10(%rsp)
movzbl %r15b, %eax
movswl (%r11,%rax,2), %edi
cmpl $-0x4b, %edi
je 0x5c48
addl %r8d, %edi
cmpl $0x196, %edi            # imm = 0x196
ja 0x5c48
movl %edi, %edi
leaq 0x256c(%rip), %r9       # 0x8190
movswl (%r9,%rdi,2), %r9d
cmpl %r8d, %r9d
jne 0x5c48
leaq 0x288b(%rip), %rax      # 0x84c0
movswq (%rax,%rdi,2), %rax
testq %rax, %rax
jg 0x5d9a
negq %rax
jmp 0x5c56
movsbq (%rax,%rbx), %rax
testq %rax, %rax
je 0x5bbb
movsbq (%rax,%r14), %rdi
cmpq %rbp, %rcx
je 0x5c74
movq %rcx, %r9
subq (%rsi), %r9
cmpq %rdi, %r9
jge 0x5c81
notq %r9
addq %r9, %rdi
movq %rbp, %rcx
testq %rdi, %rdi
je 0x5c84
subq %rdi, %rbp
movq %rbp, %rcx
jmp 0x5c84
subq %rdi, %rcx
movsbq (%rax,%r12), %rax
leaq 0x2cc0(%rip), %rdi      # 0x8950
movsbl -0x2b(%rax,%rdi), %edi
movzbl (%rcx), %r9d
addl %r9d, %edi
js 0x5cbf
movl %edi, %r10d
leaq 0x24e8(%rip), %rdi      # 0x8190
movswl (%rdi,%r10,2), %edi
cmpl %r9d, %edi
jne 0x5cbf
leaq 0x2807(%rip), %rax      # 0x84c0
movb (%rax,%r10,2), %r15b
jmp 0x5ccb
leaq 0x2caa(%rip), %rdi      # 0x8970
movb -0x2b(%rax,%rdi), %r15b
movq (%rsi), %r13
cmpq %rbp, %rcx
je 0x5d8e
movq %rbp, 0x20(%rsp)
movq %rcx, %rax
subq %r13, %rax
leaq 0x1(%rax), %rbp
cmpq %rbp, (%rdx)
jg 0x5d81
movl $0xfffffffe, 0x8(%rsp)  # imm = 0xFFFFFFFE
cmpq $0x270e, %rax           # imm = 0x270E
jg 0x5bc3
movq %rsi, %rbx
leaq 0x2(,%rbp,2), %r12
movl $0x2710, %eax           # imm = 0x2710
cmpq %rax, %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x2150
testq %rax, %rax
je 0x5bc3
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2130
cmpq 0x18(%rsp), %r13
je 0x5d4b
movq %r13, %rdi
callq 0x2030
leaq (%r14,%rbp), %rcx
decq %rcx
movq %rbx, %rsi
movq %r14, (%rbx)
movq 0x10(%rsp), %rdx
movq %r12, (%rdx)
movl 0xc(%rsp), %r8d
leaq 0x21c4(%rip), %r11      # 0x7f30
leaq 0x2a7d(%rip), %rbx      # 0x87f0
leaq 0x2b16(%rip), %r14      # 0x8890
leaq 0x2b6f(%rip), %r12      # 0x88f0
incq %rcx
movq %rcx, %r13
movq 0x20(%rsp), %rbp
jmp 0x5d91
movq %r13, %rcx
movb %r15b, (%r13)
jmp 0x5c02
movl $0x0, 0x8(%rsp)
jmp 0x5bc3