// File: /workspace/github_c_makefile_star2_O0/anuwu[P]ERPLAG-Compiler/lexer.c
// Function: extract_lexeme
char* extract_lexeme (twinBuffer *twinBuf)
/*
Given the location of forward and begin pointer, it extracts the characters
into a lexeme 
*/
{
	char *word , *ptr ;
	int i , len ;
 
	if (*twinBuf->forward == EOF)
	{
		if (twinBuf->where_begin == twinBuf->where_forward)
		{
 
			ptr = twinBuf->begin ;
			if (*ptr == EOF)
				return NULL ;
 
			while (*ptr != EOF)
				ptr++ ;
			word = (char *) malloc (sizeof(char) * (ptr - twinBuf->begin + 1)) ;
			ptr = twinBuf->begin ;
			for (i = 0 ; *ptr != EOF ; i++)
			{
				word[i] = *ptr ;
				ptr++ ;
			}
 
			word[i] = '\0' ;
			return word ;
		}
		else
		{
			int j ;
 
			len = (twinBuf->forward - twinBuf->buf2 + 1) + (twinBuf->buf1 + bufSize - twinBuf->begin) ;
			word = (char *) malloc (sizeof(char) * (len + 1)) ;
 
			ptr = twinBuf->begin ;
			if (*ptr == EOF)
				return NULL ;
			for (i = 0 ; *ptr != EOF ; i++)
			{
				word[i] = *ptr ;
				ptr++ ;
			}
 
			ptr = twinBuf->buf2 ;
			for ( ; i < len ; i++)
			{
				word[i] = *ptr ;
				ptr++ ;
			}
 
			word[len] = '\0' ;
		}
	}
	else if ((twinBuf->where_begin == TWIN_ONE && twinBuf->where_forward == TWIN_ONE) || (twinBuf->where_begin == TWIN_TWO && twinBuf->where_forward == TWIN_TWO))
	{
		len = twinBuf->forward - twinBuf->begin + 1 ;
		word = (char *) malloc (sizeof(char) * (len + 1)) ;
 
		ptr = twinBuf->begin ;
		for (i = 0 ; i < len ; i++)
		{
			word[i] = *ptr ;
			ptr++ ;
		}
 
		word[len] = '\0' ;
	}
	else if (twinBuf->where_begin == TWIN_ONE && twinBuf->where_forward == TWIN_TWO)
	{
		int j ;
 
		len = (twinBuf->forward - twinBuf->buf2 + 1) + (twinBuf->buf1 + bufSize - twinBuf->begin) ;
		word = (char *) malloc (sizeof(char) * (len + 1)) ;
 
		ptr = twinBuf->begin ;
		for (i = 0 ; *ptr != EOF ; i++)
		{
			word[i] = *ptr ;
			ptr++ ;
		}
 
		ptr = twinBuf->buf2 ;
		for ( ; i < len ; i++)
		{
			word[i] = *ptr ;
			ptr++ ;
		}
 
		word[len] = '\0' ;
	}
 
	return word ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
jne 0xc69f
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jne 0xc5a5
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
jne 0xc509
movq $0x0, -0x8(%rbp)
jmp 0xc857
jmp 0xc50b
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
je 0xc525
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xc50b
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
subq %rax, %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
callq 0x10e0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
je 0xc58c
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc558
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xc857
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
addq $0x1, %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
addq $0x80, %rcx
movq -0x10(%rbp), %rdx
movq 0x18(%rdx), %rdx
subq %rdx, %rcx
addq %rcx, %rax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x0, %rdi
callq 0x10e0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
jne 0xc617
movq $0x0, -0x8(%rbp)
jmp 0xc857
movl $0x0, -0x24(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
je 0xc652
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc61e
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xc68e
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc65e
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0xc84f
movq -0x10(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0xc6b3
movq -0x10(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
je 0xc6cf
movq -0x10(%rbp), %rax
cmpl $0x1, 0x28(%rax)
jne 0xc753
movq -0x10(%rbp), %rax
cmpl $0x1, 0x2c(%rax)
jne 0xc753
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
addq $0x1, %rax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x0, %rdi
callq 0x10e0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xc742
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc712
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0xc84d
movq -0x10(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0xc84b
movq -0x10(%rbp), %rax
cmpl $0x1, 0x2c(%rax)
jne 0xc84b
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
addq $0x1, %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
addq $0x80, %rcx
movq -0x10(%rbp), %rdx
movq 0x18(%rdx), %rdx
subq %rdx, %rcx
addq %rcx, %rax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x0, %rdi
callq 0x10e0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $-0x1, %eax
je 0xc803
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc7cf
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xc83f
movq -0x20(%rbp), %rax
movb (%rax), %dl
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xc80f
movq -0x18(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0xc84d
jmp 0xc84f
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)