// File: /workspace/github_c_makefile_star2_O0/doy[P]libvt100/src/parser.c
// Function: yy_get_next_buffer
static int yy_get_next_buffer (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
	char *source = yyg->yytext_ptr;
	int number_to_move, i;
	int ret_val;

	if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;

	else
		{
			int num_to_read =
			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;

			int yy_c_buf_p_offset =
				(int) (yyg->yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yyrealloc( (void *) b->yy_ch_buf,
							 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = NULL;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
						number_to_move - 1;

			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
			yyg->yy_n_chars, num_to_read );

		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
		}

	if ( yyg->yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin  , yyscanner);
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
		/* Extend the array by 50%, plus the number we really need. */
		int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
		/* "- 2" to take care of EOB's */
		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
	}

	yyg->yy_n_chars += number_to_move;
	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];

	return ret_val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x8(%rcx), %rcx
movq -0x18(%rbp), %rdx
movl 0x34(%rdx), %edx
addl $0x1, %edx
movslq %edx, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jbe 0x63c4
movq -0x10(%rbp), %rsi
leaq 0x62a6(%rip), %rdi      # 0xc665
callq 0x60d0
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x34(%rax)
jne 0x6416
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x80(%rcx), %rcx
subq %rcx, %rax
subq $0x0, %rax
cmpq $0x1, %rax
jne 0x640a
movl $0x1, -0x4(%rbp)
jmp 0x6967
movl $0x2, -0x4(%rbp)
jmp 0x6967
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x80(%rcx), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x646f
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb (%rax), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x643a
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x2, 0x38(%rax)
jne 0x64b4
movq -0x18(%rbp), %rax
movl $0x0, 0x34(%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl $0x0, 0x1c(%rax)
jmp 0x67c8
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl 0x18(%rax), %eax
subl -0x2c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
jg 0x65df
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x40(%rbp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl %eax, -0x44(%rbp)
movq -0x40(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x657c
movq -0x40(%rbp), %rax
movl 0x18(%rax), %eax
shll %eax
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x48(%rbp)
jg 0x6545
movq -0x40(%rbp), %rax
movl 0x18(%rax), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x40(%rbp), %rax
addl 0x18(%rax), %ecx
movl %ecx, 0x18(%rax)
jmp 0x6551
movq -0x40(%rbp), %rax
movl 0x18(%rax), %ecx
shll %ecx
movl %ecx, 0x18(%rax)
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x40(%rbp), %rax
movl 0x18(%rax), %eax
addl $0x2, %eax
movslq %eax, %rsi
movq -0x10(%rbp), %rdx
callq 0x35d0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x6588
movq -0x40(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x40(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x65a3
movq -0x10(%rbp), %rsi
leaq 0x60ff(%rip), %rdi      # 0xc69d
callq 0x60d0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rcx
movslq -0x44(%rbp), %rax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl 0x18(%rax), %eax
subl -0x2c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x64d4
cmpl $0x2000, -0x38(%rbp)    # imm = 0x2000
jle 0x65ef
movl $0x2000, -0x38(%rbp)    # imm = 0x2000
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x24(%rax)
je 0x66ff
movl $0x2a, -0x4c(%rbp)
movl $0x0, -0x50(%rbp)
movl -0x50(%rbp), %ecx
xorl %eax, %eax
cmpl -0x38(%rbp), %ecx
movb %al, -0x55(%rbp)
jge 0x664e
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x36b0
movl %eax, %ecx
movl %ecx, -0x4c(%rbp)
xorl %eax, %eax
cmpl $-0x1, %ecx
movb %al, -0x55(%rbp)
je 0x664e
cmpl $0xa, -0x4c(%rbp)
setne %al
movb %al, -0x55(%rbp)
movb -0x55(%rbp), %al
testb $0x1, %al
jne 0x6657
jmp 0x668d
movl -0x4c(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
movslq -0x50(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x661b
cmpl $0xa, -0x4c(%rbp)
jne 0x66c8
movl -0x4c(%rbp), %eax
movb %al, %dl
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
movl -0x50(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x50(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
cmpl $-0x1, -0x4c(%rbp)
jne 0x66f0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x30f0
cmpl $0x0, %eax
je 0x66f0
movq -0x10(%rbp), %rsi
leaq 0x5fde(%rip), %rdi      # 0xc6c9
callq 0x60d0
movl -0x50(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x34(%rax)
jmp 0x67aa
callq 0x3080
movl $0x0, (%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
movslq -0x2c(%rbp), %rax
addq %rax, %rdi
movslq -0x38(%rbp), %rdx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x1, %esi
callq 0x3150
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x34(%rax)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x56(%rbp)
jne 0x6768
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x30f0
cmpl $0x0, %eax
setne %al
movb %al, -0x56(%rbp)
movb -0x56(%rbp), %al
testb $0x1, %al
jne 0x6771
jmp 0x67a8
callq 0x3080
cmpl $0x4, (%rax)
je 0x678b
movq -0x10(%rbp), %rsi
leaq 0x5f43(%rip), %rdi      # 0xc6c9
callq 0x60d0
callq 0x3080
movl $0x0, (%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x3460
jmp 0x670a
jmp 0x67aa
movq -0x18(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, 0x1c(%rax)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x34(%rax)
jne 0x6816
cmpl $0x0, -0x2c(%rbp)
jne 0x67f2
movl $0x1, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x3280
jmp 0x6814
movl $0x2, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl $0x2, 0x38(%rax)
jmp 0x681d
movl $0x0, -0x34(%rbp)
movq -0x18(%rbp), %rax
movl 0x34(%rax), %eax
addl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x18(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq (%rcx,%rdx,8), %rcx
cmpl 0x18(%rcx), %eax
jle 0x68e4
movq -0x18(%rbp), %rax
movl 0x34(%rax), %eax
addl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movl 0x34(%rcx), %ecx
sarl %ecx
addl %ecx, %eax
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
movslq -0x54(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x35d0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x8(%rax)
jne 0x68c7
movq -0x10(%rbp), %rsi
leaq 0x5e24(%rip), %rdi      # 0xc6e6
callq 0x60d0
movl -0x54(%rbp), %ecx
subl $0x2, %ecx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x18(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, 0x18(%rax)
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rax
addl 0x34(%rax), %ecx
movl %ecx, 0x34(%rax)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0x34(%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movl 0x34(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x80(%rax)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq