// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl $0x1, %ebp
cmpl $0x2, %r8d
je 0x5e3c
movq %rcx, %r12
leaq 0x229d(%rip), %r10      # 0x7ee0
leaq 0x2b56(%rip), %r11      # 0x87a0
leaq 0x2bef(%rip), %r14      # 0x8840
movq %rcx, %rbx
movl %r8d, 0xc(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x10(%rsp)
movzbl (%r12), %eax
movswl (%r10,%rax,2), %ecx
cmpl $-0x4b, %ecx
je 0x5cad
addl %r8d, %ecx
cmpl $0x196, %ecx            # imm = 0x196
ja 0x5cad
movl %ecx, %ecx
leaq 0x24ba(%rip), %rdi      # 0x8140
movswl (%rdi,%rcx,2), %edi
cmpl %r8d, %edi
jne 0x5cad
leaq 0x27da(%rip), %rax      # 0x8470
movswq (%rax,%rcx,2), %rax
xorl %ecx, %ecx
testq %rax, %rax
jle 0x5de9
xorl %ebp, %ebp
jmp 0x5e34
movsbq (%rax,%r11), %rax
testq %rax, %rax
je 0x5cd7
movsbq (%rax,%r14), %rcx
cmpq %rbx, %r12
je 0x5ce8
movq %r12, %rdi
subq (%rsi), %rdi
cmpq %rcx, %rdi
jge 0x5ce3
notq %rdi
addq %rdi, %rcx
movq %rbx, %r12
jmp 0x5ce8
xorl %ecx, %ecx
movl $0x1, %ebp
jmp 0x5e34
subq %rcx, %r12
xorl %ecx, %ecx
subq %rcx, %rbx
testq %rcx, %rcx
cmovneq %rbx, %r12
leaq 0x2ba7(%rip), %rcx      # 0x88a0
movsbq (%rax,%rcx), %rax
leaq 0x2bfb(%rip), %rcx      # 0x8900
movsbl -0x2b(%rax,%rcx), %edi
movzbl (%r12), %ecx
addl %ecx, %edi
js 0x5d33
movl %edi, %edi
leaq 0x2424(%rip), %r9       # 0x8140
movswl (%r9,%rdi,2), %r9d
cmpl %ecx, %r9d
jne 0x5d33
leaq 0x2743(%rip), %rax      # 0x8470
movb (%rax,%rdi,2), %r15b
jmp 0x5d3f
leaq 0x2be6(%rip), %rcx      # 0x8920
movb -0x2b(%rax,%rcx), %r15b
movq (%rsi), %rax
cmpq %rbx, %r12
je 0x5d70
movl %ebp, 0x1c(%rsp)
movq %r12, %r13
subq %rax, %r13
incq %r13
movb $0x1, %bpl
cmpq %r13, (%rdx)
jg 0x5e17
cmpq $0x270f, %r13           # imm = 0x270F
jle 0x5d78
xorl %ebp, %ebp
jmp 0x5e17
movq %rax, %r12
jmp 0x5e26
leaq 0x2(,%r13,2), %r14
movl $0x2710, %eax           # imm = 0x2710
cmpq %rax, %r14
cmovgeq %rax, %r14
movq %r14, %rdi
callq 0x2160
testq %rax, %rax
je 0x5df1
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq (%rax), %r12
movq %rcx, 0x28(%rsp)
movq %rcx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2140
cmpq 0x30(%rsp), %r12
je 0x5dc6
movq %r12, %rdi
callq 0x2030
movq 0x28(%rsp), %rax
leaq (%rax,%r13), %r12
decq %r12
movq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq 0x20(%rsp), %rdx
movq %r14, (%rdx)
movl 0xc(%rsp), %r8d
jmp 0x5e02
negq %rax
jmp 0x5cb7
xorl %ebp, %ebp
movl 0xc(%rsp), %r8d
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %rsi
leaq 0x20d7(%rip), %r10      # 0x7ee0
leaq 0x2990(%rip), %r11      # 0x87a0
leaq 0x2a29(%rip), %r14      # 0x8840
testb %bpl, %bpl
je 0x5e2d
incq %r12
movq %r12, %rax
movl 0x1c(%rsp), %ebp
movb %r15b, (%rax)
movb $0x1, %cl
jmp 0x5e34
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
xorl %ecx, %ecx
testb %cl, %cl
jne 0x5c63
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq