// File: /workspace/github_c_makefile_star2_O0/barabo[P]advanced-shell-history/src/queries.cpp
// Function: yy_get_next_buffer()
static int yy_get_next_buffer (void)
{
    	register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
	register char *source = (yytext_ptr);
	register int number_to_move, i;
	int ret_val;

	if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(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 ( (yy_c_buf_p) - (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) ((yy_c_buf_p) - (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 = (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;

			int yy_c_buf_p_offset =
				(int) ((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,b->yy_buf_size + 2  );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

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

			(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]),
			(yy_n_chars), (size_t) num_to_read );

		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
		}

	if ( (yy_n_chars) == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart(yyin  );
			}

		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 ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
		/* Extend the array by 50%, plus the number we really need. */
		yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size  );
		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
	}

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

	(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];

	return ret_val;
}

// Assembly:
subq $0x68, %rsp
movq 0x2cfb5(%rip), %rax     # 0xd28c0
movq 0x2cfb6(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x2ceba(%rip), %rax     # 0xd27e0
movq %rax, 0x50(%rsp)
movq 0x2cf9e(%rip), %rax     # 0xd28d0
movq 0x2cf87(%rip), %rcx     # 0xd28c0
movq 0x2cf88(%rip), %rdx     # 0xd28c8
movq (%rcx,%rdx,8), %rcx
movq 0x8(%rcx), %rcx
movl 0x2cf9a(%rip), %edx     # 0xd28e8
addl $0x1, %edx
movslq %edx, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jbe 0xa5968
leaq 0xe881(%rip), %rdi      # 0xb41e4
callq 0xa5fd0
movq 0x2cf51(%rip), %rax     # 0xd28c0
movq 0x2cf52(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x38(%rax)
jne 0xa59b5
movq 0x2cf49(%rip), %rax     # 0xd28d0
movq 0x2ce52(%rip), %rcx     # 0xd27e0
subq %rcx, %rax
subq $0x0, %rax
cmpq $0x1, %rax
jne 0xa59a8
movl $0x1, 0x64(%rsp)
jmp 0xa5f17
movl $0x2, 0x64(%rsp)
jmp 0xa5f17
movq 0x2cf14(%rip), %rax     # 0xd28d0
movq 0x2ce1d(%rip), %rcx     # 0xd27e0
subq %rcx, %rax
subl $0x1, %eax
movl %eax, 0x4c(%rsp)
movl $0x0, 0x48(%rsp)
movl 0x48(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0xa5a12
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rsp)
movb (%rax), %cl
movq 0x58(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x58(%rsp)
movb %cl, (%rax)
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0xa59d5
movq 0x2cea7(%rip), %rax     # 0xd28c0
movq 0x2cea8(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
cmpl $0x2, 0x3c(%rax)
jne 0xa5a52
movl $0x0, 0x2ceb4(%rip)     # 0xd28e8
movq 0x2ce85(%rip), %rax     # 0xd28c0
movq 0x2ce86(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movl $0x0, 0x20(%rax)
jmp 0xa5dab
movq 0x2ce67(%rip), %rax     # 0xd28c0
movq 0x2ce68(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x18(%rax), %rax
movslq 0x4c(%rsp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, 0x40(%rsp)
cmpl $0x0, 0x40(%rsp)
jg 0xa5baf
cmpq $0x0, 0x2ce35(%rip)     # 0xd28c0
je 0xa5aa6
movq 0x2ce2c(%rip), %rax     # 0xd28c0
movq 0x2ce2d(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
jmp 0xa5aaf
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0xa5aaf
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x2ce10(%rip), %rax     # 0xd28d0
movq 0x38(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movl %eax, 0x34(%rsp)
movq 0x38(%rsp), %rax
cmpl $0x0, 0x24(%rax)
je 0xa5b47
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
shlq %rax
movl %eax, 0x30(%rsp)
cmpl $0x0, 0x30(%rsp)
jg 0xa5b0e
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rcx
shrq $0x3, %rcx
movq 0x38(%rsp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
jmp 0xa5b1e
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rcx
shlq %rcx
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rsi
addq $0x2, %rsi
callq 0xa6990
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0xa5b54
movq 0x38(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x38(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0xa5b6c
leaq 0xe6b5(%rip), %rdi      # 0xb421c
callq 0xa5fd0
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x34(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x2cd4c(%rip)     # 0xd28d0
movq 0x2cd35(%rip), %rax     # 0xd28c0
movq 0x2cd36(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x18(%rax), %rax
movslq 0x4c(%rsp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, 0x40(%rsp)
jmp 0xa5a78
cmpl $0x2000, 0x40(%rsp)     # imm = 0x2000
jle 0xa5bc1
movl $0x2000, 0x40(%rsp)     # imm = 0x2000
movq 0x2ccf8(%rip), %rax     # 0xd28c0
movq 0x2ccf9(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x28(%rax)
je 0xa5ce8
movl $0x2a, 0x2c(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rcx
movslq 0x40(%rsp), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, 0xf(%rsp)
jae 0xa5c2c
movq 0x2cbbe(%rip), %rdi     # 0xd27c8
callq 0x8110
movl %eax, %ecx
movl %ecx, 0x2c(%rsp)
xorl %eax, %eax
cmpl $-0x1, %ecx
movb %al, 0xf(%rsp)
je 0xa5c2c
cmpl $0xa, 0x2c(%rsp)
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0xa5c36
jmp 0xa5c75
movl 0x2c(%rsp), %eax
movb %al, %dl
movq 0x2cc7d(%rip), %rax     # 0xd28c0
movq 0x2cc7e(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movslq 0x4c(%rsp), %rcx
addq %rcx, %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0xa5bee
cmpl $0xa, 0x2c(%rsp)
jne 0xa5cb4
movl 0x2c(%rsp), %eax
movb %al, %dl
movq 0x2cc37(%rip), %rax     # 0xd28c0
movq 0x2cc38(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movslq 0x4c(%rsp), %rcx
addq %rcx, %rax
movq 0x20(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x20(%rsp)
movb %dl, (%rax,%rcx)
cmpl $-0x1, 0x2c(%rsp)
jne 0xa5cd8
movq 0x2cb06(%rip), %rdi     # 0xd27c8
callq 0x8860
cmpl $0x0, %eax
je 0xa5cd8
leaq 0xe575(%rip), %rdi      # 0xb4248
callq 0xa5fd0
movq 0x20(%rsp), %rax
movl %eax, 0x2cc05(%rip)     # 0xd28e8
jmp 0xa5d90
callq 0x8060
movl $0x0, (%rax)
movq 0x2cbc6(%rip), %rax     # 0xd28c0
movq 0x2cbc7(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
movslq 0x4c(%rsp), %rax
addq %rax, %rdi
movslq 0x40(%rsp), %rdx
movq 0x2caab(%rip), %rcx     # 0xd27c8
movl $0x1, %esi
callq 0x8660
movl %eax, %ecx
movl %ecx, 0x2cbb9(%rip)     # 0xd28e8
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0xe(%rsp)
jne 0xa5d50
movq 0x2ca87(%rip), %rdi     # 0xd27c8
callq 0x8860
cmpl $0x0, %eax
setne %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0xa5d5a
jmp 0xa5d8e
callq 0x8060
cmpl $0x4, (%rax)
je 0xa5d72
leaq 0xe4dd(%rip), %rdi      # 0xb4248
callq 0xa5fd0
jmp 0xa5d8e
callq 0x8060
movl $0x0, (%rax)
movq 0x2ca44(%rip), %rdi     # 0xd27c8
callq 0x80a0
jmp 0xa5cf3
jmp 0xa5d90
movl 0x2cb52(%rip), %ecx     # 0xd28e8
movq 0x2cb23(%rip), %rax     # 0xd28c0
movq 0x2cb24(%rip), %rdx     # 0xd28c8
movq (%rax,%rdx,8), %rax
movl %ecx, 0x20(%rax)
cmpl $0x0, 0x2cb36(%rip)     # 0xd28e8
jne 0xa5df4
cmpl $0x0, 0x4c(%rsp)
jne 0xa5dd1
movl $0x1, 0x44(%rsp)
movq 0x2c9fe(%rip), %rdi     # 0xd27c8
callq 0xa5f20
jmp 0xa5df2
movl $0x2, 0x44(%rsp)
movq 0x2cae0(%rip), %rax     # 0xd28c0
movq 0x2cae1(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movl $0x2, 0x3c(%rax)
jmp 0xa5dfc
movl $0x0, 0x44(%rsp)
movl 0x2cae6(%rip), %eax     # 0xd28e8
addl 0x4c(%rsp), %eax
cltq
movq 0x2cab1(%rip), %rcx     # 0xd28c0
movq 0x2cab2(%rip), %rdx     # 0xd28c8
movq (%rcx,%rdx,8), %rcx
cmpq 0x18(%rcx), %rax
jbe 0xa5e9b
movl 0x2cac2(%rip), %eax     # 0xd28e8
addl 0x4c(%rsp), %eax
movl 0x2cab8(%rip), %ecx     # 0xd28e8
sarl %ecx
addl %ecx, %eax
cltq
movq %rax, 0x18(%rsp)
movq 0x2ca7e(%rip), %rax     # 0xd28c0
movq 0x2ca7f(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0xa6990
movq %rax, %rcx
movq 0x2ca5b(%rip), %rax     # 0xd28c0
movq 0x2ca5c(%rip), %rdx     # 0xd28c8
movq (%rax,%rdx,8), %rax
movq %rcx, 0x8(%rax)
movq 0x2ca45(%rip), %rax     # 0xd28c0
movq 0x2ca46(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x8(%rax)
jne 0xa5e99
leaq 0xe3d1(%rip), %rdi      # 0xb4265
callq 0xa5fd0
jmp 0xa5e9b
movl 0x4c(%rsp), %eax
addl 0x2ca43(%rip), %eax     # 0xd28e8
movl %eax, 0x2ca3d(%rip)     # 0xd28e8
movq 0x2ca0e(%rip), %rax     # 0xd28c0
movq 0x2ca0f(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movslq 0x2ca20(%rip), %rcx     # 0xd28e8
movb $0x0, (%rax,%rcx)
movq 0x2c9ed(%rip), %rax     # 0xd28c0
movq 0x2c9ee(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movl 0x2ca00(%rip), %ecx     # 0xd28e8
addl $0x1, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq 0x2c9c7(%rip), %rax     # 0xd28c0
movq 0x2c9c8(%rip), %rcx     # 0xd28c8
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, 0x2c8d1(%rip)     # 0xd27e0
movl 0x44(%rsp), %eax
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq