// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpl $0x2, -0x2c(%rbp)
jne 0x8cee
movl $0x1, -0x4(%rbp)
jmp 0x8f17
jmp 0x8cf0
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movslq %eax, %rcx
leaq 0x41df(%rip), %rax      # 0xcee0
movswl (%rax,%rcx,2), %eax
movl %eax, -0x44(%rbp)
cmpl $-0x4b, -0x44(%rbp)
je 0x8d3a
movl -0x2c(%rbp), %eax
addl -0x44(%rbp), %eax
movl %eax, -0x44(%rbp)
cmpl $0x0, %eax
jl 0x8d3a
movl $0x196, %eax            # imm = 0x196
cmpl -0x44(%rbp), %eax
jl 0x8d3a
movslq -0x44(%rbp), %rcx
leaq 0x440f(%rip), %rax      # 0xd140
movswl (%rax,%rcx,2), %eax
cmpl -0x2c(%rbp), %eax
je 0x8d66
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movslq %eax, %rcx
leaq 0x4a55(%rip), %rax      # 0xd7a0
movsbl (%rax,%rcx), %eax
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0x8d64
movl $0x1, -0x4(%rbp)
jmp 0x8f17
jmp 0x8d93
movslq -0x44(%rbp), %rcx
leaq 0x46ff(%rip), %rax      # 0xd470
movswl (%rax,%rcx,2), %eax
movl %eax, -0x44(%rbp)
xorl %eax, %eax
cmpl -0x44(%rbp), %eax
jge 0x8d8b
movl $0x0, -0x4(%rbp)
jmp 0x8f17
xorl %eax, %eax
subl -0x44(%rbp), %eax
movl %eax, -0x44(%rbp)
movslq -0x44(%rbp), %rcx
leaq 0x4aa2(%rip), %rax      # 0xd840
movsbq (%rax,%rcx), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x8e08
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
jge 0x8def
movq -0x50(%rbp), %rdx
movq -0x40(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x8e06
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x50(%rbp)
jmp 0x8e08
cmpq $0x0, -0x50(%rbp)
je 0x8e27
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movslq -0x44(%rbp), %rcx
leaq 0x4a6e(%rip), %rax      # 0xd8a0
movsbl (%rax,%rcx), %eax
subl $0x2b, %eax
movl %eax, -0x60(%rbp)
movslq -0x60(%rbp), %rcx
leaq 0x4ab9(%rip), %rax      # 0xd900
movsbl (%rax,%rcx), %eax
movq -0x40(%rbp), %rcx
movzbl (%rcx), %ecx
addl %ecx, %eax
movl %eax, -0x64(%rbp)
xorl %eax, %eax
cmpl -0x64(%rbp), %eax
jg 0x8e95
cmpl $0x196, -0x64(%rbp)     # imm = 0x196
jg 0x8e95
movslq -0x64(%rbp), %rcx
leaq 0x42ce(%rip), %rax      # 0xd140
movswl (%rax,%rcx,2), %eax
movq -0x40(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x8e95
movslq -0x64(%rbp), %rcx
leaq 0x45e4(%rip), %rax      # 0xd470
movswl (%rax,%rcx,2), %eax
movl %eax, -0x68(%rbp)
jmp 0x8ea7
movslq -0x60(%rbp), %rcx
leaq 0x4a80(%rip), %rax      # 0xd920
movsbl (%rax,%rcx), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x8ecf
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl -0x5c(%rbp), %eax
movb %al, %cl
movq -0x40(%rbp), %rax
movb %cl, (%rax)
jmp 0x8f12
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %r9
movl $0x1, %esi
leaq -0x40(%rbp), %r8
callq 0xadb0
cmpl $0x0, %eax
je 0x8efb
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f17
movl -0x5c(%rbp), %eax
movb %al, %cl
movq -0x40(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x40(%rbp)
movb %cl, 0x1(%rax)
jmp 0x8cf0
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq