LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/inflex[P]ripMIME/ripOLE/bt-int.c
// Function: BTI_done
int BTI_done( struct bti_node **n )
{
	struct bti_node *node;

	if (n == NULL) return 0;
	if (*n == NULL) return 0;

	node = *n;
	
	if (node->l) BTI_done(&(node->l)); 
	if (node->r) BTI_done(&(node->r));
	if (*n) { free(*n); *n = NULL; }

	return 0;
}

// Assembly:
testq %rdi, %rdi
je 0x1098c
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x10985
cmpq $0x0, 0x8(%r14)
je 0x10961
leaq 0x8(%r14), %rdi
callq 0x1093d
cmpq $0x0, 0x10(%r14)
je 0x10974
addq $0x10, %r14
movq %r14, %rdi
callq 0x1093d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x10985
callq 0x2030
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/writeseek3.c
// Function: testcase_prepare
void testcase_prepare(unsigned long nr_tasks)
{
	char buf[BUFLEN];
	int fd = mkstemp(tmpfile);
	unsigned long left = getpagesize() * nr_tasks;

	memset(buf, 0, sizeof(buf));
	assert(fd >= 0);

	while (left > 0) {
		int n = write(fd, buf, sizeof(buf));
		assert(n > 0);
		left -= n;
	}
	close(fd);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movq %rdi, %r14
leaq 0x262a(%rip), %rdi      # 0x5190
callq 0x21e0
movl %eax, %ebx
movq %rsp, %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x2140
testl %ebx, %ebx
js 0x2be1
callq 0x2290
movslq %eax, %r15
imulq %r14, %r15
movq %rsp, %r14
testq %r15, %r15
je 0x2bb1
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
movq %r14, %rsi
callq 0x20d0
testl %eax, %eax
jle 0x2bc4
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subq %rax, %r15
jmp 0x2b8f
movl %ebx, %edi
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %r15
jmp 0x2150
leaq 0x707(%rip), %rdi       # 0x32d2
leaq 0x6c8(%rip), %rsi       # 0x329a
leaq 0x6d4(%rip), %rcx       # 0x32ad
pushq $0x18
popq %rdx
callq 0x2130
leaq 0x6aa(%rip), %rdi       # 0x3292
leaq 0x6ab(%rip), %rsi       # 0x329a
leaq 0x6b7(%rip), %rcx       # 0x32ad
pushq $0x14
jmp 0x2bdb
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/writeseek3.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	int fd = open(tmpfile, O_RDWR);
	unsigned long offset = getpagesize() * nr;

	assert(fd >= 0);

	while (1) {
		lseek(fd, offset, SEEK_SET);
		assert(write(fd, buf, BUFLEN) == BUFLEN);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x257c(%rip), %rdi      # 0x5190
pushq $0x2
popq %rsi
xorl %eax, %eax
callq 0x2220
movl %eax, %ebp
callq 0x2290
testl %ebp, %ebp
js 0x2c74
movslq %eax, %r14
imulq %r15, %r14
movq %rsp, %r15
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2120
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r15, %rsi
callq 0x20d0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2c5b
incq (%rbx)
jmp 0x2c33
leaq 0x6a9(%rip), %rdi       # 0x330b
leaq 0x631(%rip), %rsi       # 0x329a
leaq 0x668(%rip), %rcx       # 0x32d8
pushq $0x28
jmp 0x2c8b
leaq 0x617(%rip), %rdi       # 0x3292
leaq 0x618(%rip), %rsi       # 0x329a
leaq 0x64f(%rip), %rcx       # 0x32d8
pushq $0x24
popq %rdx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/input_parse.c
// Function: read_doc
int read_doc(char *name,char ***map,int *lines){
	char c,pr_c;
	FILE* fp;
	*lines = 0;
	int counter = 0;//byte counter here
	if((fp=fopen(name,"r"))==NULL){
		printf("Given file doesn't exists!\n");
		return -1;
	}
	if(fp == NULL ){fclose(fp); return -1;}//error
	while((c=getc(fp)) != EOF){//1st parsing to find the lines
		if(c == '\n' && pr_c != '\n') (*lines)++;
		pr_c = c;
	}
	if(!(*lines)){printf("Empty input file!\n");fclose(fp);return -2;}
	//printf("Read %d folders!\n",*lines);
	*map = malloc((*lines)*sizeof(char*));
	if(fseek(fp,0L,SEEK_SET) !=0) {fclose(fp); return -2;}
	for(int i=0;i<(*lines);i++){
		fscanf(fp,"%m[^\n]s",&(*map)[i]);//read and save line
		getc(fp);//skip the remaining '\n'
		counter += strlen((*map)[i]) + 1;//the '+1' for '\n'
	}
	fclose(fp);
	return counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r12
andl $0x0, (%rdx)
leaq 0x4da1(%rip), %rsi      # 0x71ee
callq 0x2270
testq %rax, %rax
je 0x252e
movq %rax, %rbx
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x2310
movl %eax, %ecx
shll $0x18, %ecx
cmpl $0xff000000, %ecx       # imm = 0xFF000000
je 0x2495
cmpl $0xa000000, %ecx        # imm = 0xA000000
setne %cl
cmpb $0xa, %r15b
sete %dl
orb %cl, %dl
movl %eax, %r15d
jne 0x2461
incl (%r14)
movl %eax, %r15d
jmp 0x2461
movslq (%r14), %rdi
testq %rdi, %rdi
je 0x253e
shlq $0x3, %rdi
callq 0x2200
movq %rax, (%r12)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2210
testl %eax, %eax
jne 0x254a
movq %rbx, -0x30(%rbp)
movq %r12, -0x38(%rbp)
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r12d, %r12d
movq -0x30(%rbp), %r15
movslq (%r14), %rax
cmpq %rax, %rbx
jge 0x2568
movq %r12, -0x40(%rbp)
movq %r14, %r12
movq -0x38(%rbp), %r14
movq (%r14), %rdx
addq %r13, %rdx
movq %r15, %rdi
leaq 0x4b07(%rip), %rsi      # 0x7004
xorl %eax, %eax
callq 0x2090
movq %r15, %rdi
callq 0x2310
movq (%r14), %rax
movq %r12, %r14
movq -0x40(%rbp), %r12
movq (%rax,%r13), %rdi
callq 0x2120
addl %eax, %r12d
incl %r12d
incq %rbx
addq $0x8, %r13
jmp 0x24d6
leaq 0x4af1(%rip), %rdi      # 0x7026
callq 0x20a0
pushq $-0x1
jmp 0x2554
leaq 0x4acf(%rip), %rdi      # 0x7014
callq 0x20a0
movq %rbx, %rdi
callq 0x2100
pushq $-0x2
popq %r12
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x2100
jmp 0x2556
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: ePostingListConstuct
ePostingList* ePostingListConstuct(){
	ePostingList* epl = malloc(sizeof(ePostingList));
	epl->counter=0;
	epl->pl = NULL;
	epl->last=NULL;
	return epl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq $0x18
popq %rdi
callq 0x2200
andl $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: postingList1Destruct
void postingList1Destruct(postingList1* self){//recursive destruction
	if(self==NULL) return;
	postingList2Destruct(self->pl);
	postingList1Destruct(self->next);
	self->name = NULL;
	self->last = NULL;
	free(self);
	return;
}

// Assembly:
testq %rdi, %rdi
je 0x2850
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0x2851
movq 0x18(%rbx), %rdi
callq 0x2822
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2030
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: insertInPL2
postingList2* insertInPL2(int line){
	postingList2* pl = malloc(sizeof(postingList2));
	pl->line = line;
	pl->next = NULL;
	return pl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
pushq $0x10
popq %rdi
callq 0x2200
movl %ebx, (%rax)
andq $0x0, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: insertInPL
postingList1* insertInPL(int line,char* name,int id){//creates new pl's node
	postingList1* pl = malloc(sizeof(postingList1));
	pl->name = name;//just point to real name
	pl->id = id;
	pl->counter=1;
	pl->linecounter=1;
	pl->next=NULL;
	pl->pl = insertInPL2(line);
	pl->last = pl->pl;
	return pl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %r15d
pushq $0x30
popq %rdi
callq 0x2200
movq %rax, %r12
movq %r14, 0x8(%rax)
movl %ebx, 0x10(%rax)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, (%r12)
andq $0x0, 0x18(%r12)
movl %r15d, %edi
callq 0x2877
movq %rax, 0x20(%r12)
movq %rax, 0x28(%r12)
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: getMaxCounter
void getMaxCounter(ePostingList *self,char **name,int *counter){
	postingList1 *temp = self->pl;
	*name = temp->name;
	*counter = temp->counter;
	while((temp = temp->next) != NULL){
		if(temp->counter>*counter || (temp->counter==*counter && strcmp(temp->name,*name)<0)){
			*name = temp->name;
			*counter = temp->counter;
		}
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %r13
movq 0x8(%r13), %r15
movq %rsi, -0x30(%rbp)
movq %r15, (%rsi)
movl (%r13), %r14d
movq %rdx, -0x38(%rbp)
movl %r14d, (%rdx)
movq 0x18(%r13), %r13
testq %r13, %r13
je 0x2957
movl (%r13), %ebx
cmpl %r14d, %ebx
jg 0x2940
jne 0x2917
movq 0x8(%r13), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2180
testl %eax, %eax
jns 0x2917
jmp 0x2944
movq 0x8(%r13), %r12
movq -0x30(%rbp), %rax
movq %r12, (%rax)
movl %ebx, %r14d
movq %r12, %r15
movq -0x38(%rbp), %rdx
jmp 0x2914
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: updatePL
void updatePL(ePostingList **self,int line,char *name,int id){
	if((*self)->pl==NULL){
		(*self)->pl=insertInPL(line,name,id);
		(*self)->last = (*self)->pl;
		(*self)->counter++;//new PL node
		return;
	}
	postingList1 *temp = (*self)->last;
	if(!strcmp(temp->name,name) && (temp->last)->line>line){//that will never happen :-)
		printf("You shouldn't come here,leave me alone ~_~'\n");
		return ;
	}
	//checking name or id is the same in PL
	if(!strcmp(temp->name,name)){//now lets check pl2
		temp->counter++;//increase counter for the file
		if((temp->last)->line == line){}//do nothing
			//(temp->last)->freq++;//freq deleted
		else{//new line,create next pl2
			temp->linecounter++;
			(temp->last)->next = insertInPL2(line);
			((*self)->last)->last = (temp->last)->next;
		}
		return;
	}
	temp->next = insertInPL(line,name,id);
	(*self)->last = temp->next;
	(*self)->counter++;//new PL node
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movq %rdx, %r12
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rax
cmpq $0x0, 0x8(%rax)
je 0x2a3b
movq 0x10(%rax), %r13
movq 0x8(%r13), %rdi
movq %r12, %rsi
callq 0x2180
testl %eax, %eax
je 0x2a6f
movl %r14d, %edi
movq %r12, %rsi
movl %r15d, %edx
callq 0x2895
movq %rax, 0x18(%r13)
movq (%rbx), %rcx
movq %rax, 0x10(%rcx)
jmp 0x2a5b
movl %r14d, %edi
movq %r12, %rsi
movl %r15d, %edx
callq 0x2895
movq (%rbx), %rcx
movq %rax, 0x8(%rcx)
movq (%rbx), %rax
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%rax)
movq (%rbx), %rax
incl (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%r13), %rax
movl (%rax), %eax
cmpl %r14d, %eax
jle 0x2a94
leaq 0x4681(%rip), %rdi      # 0x7102
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20a0
incl (%r13)
cmpl %r14d, %eax
je 0x2a60
incl 0x4(%r13)
movl %r14d, %edi
callq 0x2877
movq 0x28(%r13), %rcx
movq %rax, 0x8(%rcx)
movq (%rbx), %rcx
movq 0x10(%rcx), %rcx
movq %rax, 0x28(%rcx)
jmp 0x2a60
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: replaceSpaces
void replaceSpaces(char** str){
	if(str == NULL) return;
	int len;
	if((len = strlen(*str)) == 0) return;
	for(int i=0;i<len;i++)
		if((*str)[i] == ' ') (*str)[i]='_';
	return;
}

// Assembly:
testq %rdi, %rdi
je 0x2afc
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2120
testl %eax, %eax
je 0x2af6
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %rcx, %rax
je 0x2af6
movq (%rbx), %rdx
cmpb $0x20, (%rdx,%rcx)
jne 0x2af1
movb $0x5f, (%rdx,%rcx)
incq %rcx
jmp 0x2adf
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: getNamesAsStringPL
char* getNamesAsStringPL(ePostingList *self){//self != NULL here
	if(self->pl==NULL) return NULL;
	postingList1 *temp = self->pl;
	char *name = temp->name;
	replaceSpaces(&name);
	int rescount=strlen(name)+4;
	char *tmp=" : ";
	char *res = malloc(rescount*sizeof(char));
	strcpy(res,tmp);
	strcat(res,name);
	while((temp=temp->next) != NULL){
		name = temp->name;
		replaceSpaces(&name);
		rescount+=strlen(name)+3;
		res = realloc(res,rescount*sizeof(char));
		strcat(res,tmp);
		strcat(res,name);
	}
	res[rescount-1] = '\0';
	return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x2bb0
movq 0x8(%r13), %r12
leaq -0x30(%rbp), %rbx
movq %r12, (%rbx)
movq %rbx, %rdi
callq 0x2abe
movq %r12, %rdi
callq 0x2120
movq %rax, %r14
addl $0x4, %r14d
movslq %r14d, %rdi
callq 0x2200
movq %rax, %r15
movl $0x203a20, (%rax)       # imm = 0x203A20
movq %rax, %rdi
movq %r12, %rsi
callq 0x22a0
movq 0x18(%r13), %r13
testq %r13, %r13
je 0x2ba5
movq 0x8(%r13), %rax
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x2abe
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x2120
addl %eax, %r14d
addl $0x3, %r14d
movslq %r14d, %rsi
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movq %rax, %rdi
callq 0x2120
movl $0x203a20, (%r15,%rax)  # imm = 0x203A20
movq %r15, %rdi
jmp 0x2b4e
movslq %r14d, %rax
movb $0x0, -0x1(%rax,%r15)
jmp 0x2bb3
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/postingList.c
// Function: getNodeDataPL
void getNodeDataPL(ePostingList *self, int*** info, int* infoc){
	if(self->pl==NULL) return;
	int fcounter = self->counter;
	int flcounter = 0;
	postingList1 *temp = self->pl;
	for(int i=0;i<fcounter;i++){
		flcounter += temp->linecounter;
		temp = temp->next;
	}
	if(flcounter == 0) return;
	(*info) = malloc(flcounter*sizeof(int*));
	*infoc = flcounter;
	flcounter = 0;
	temp = self->pl;
	for(int i=0;i<fcounter;i++){
		postingList2 *pl2temp = temp->pl;
		for(int j=0;j<temp->linecounter;j++){
			(*info)[flcounter + j] = malloc(2*sizeof(int));//[fileid,line]
			(*info)[flcounter + j][0] = temp->id;
			(*info)[flcounter + j][1] = pl2temp->line;
			pl2temp = pl2temp->next;
		}
		flcounter += temp->linecounter;
		temp = temp->next;
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x38(%rbp)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x2c98
movq %rdx, %r12
movq %rdi, %r14
movl (%rdi), %ecx
addq $0x8, %r14
xorl %r13d, %r13d
testl %ecx, %ecx
cmovlel %r13d, %ecx
movl %ecx, -0x2c(%rbp)
subl $0x1, %ecx
jb 0x2c0e
addl 0x4(%rax), %r13d
movq 0x18(%rax), %rax
jmp 0x2bff
testl %r13d, %r13d
je 0x2c98
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x2200
movq %rax, %r15
movq -0x38(%rbp), %rax
movq %r15, (%rax)
movl %r13d, (%r12)
xorl %eax, %eax
xorl %ecx, %ecx
cmpl -0x2c(%rbp), %ecx
je 0x2c98
movl %ecx, -0x30(%rbp)
movq (%r14), %r14
leaq 0x20(%r14), %r13
movq %rax, -0x40(%rbp)
movslq %eax, %r12
xorl %ebx, %ebx
movslq 0x4(%r14), %rax
cmpq %rax, %rbx
jge 0x2c8a
movq (%r13), %r13
pushq $0x8
popq %rdi
callq 0x2200
movq %rax, (%r15,%r12,8)
movl 0x10(%r14), %eax
movq -0x38(%rbp), %rcx
movq (%rcx), %r15
movq (%r15,%r12,8), %rcx
movl %eax, (%rcx)
movl (%r13), %eax
movl %eax, 0x4(%rcx)
addq $0x8, %r13
incq %rbx
incq %r12
jmp 0x2c4d
addl -0x40(%rbp), %eax
addq $0x18, %r14
movl -0x30(%rbp), %ecx
incl %ecx
jmp 0x2c35
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/trie.c
// Function: nodeConstruct
node* nodeConstruct(char v){
	node* newNode = malloc(sizeof( node));
	newNode->value=v;
	newNode->next=NULL;
	newNode->child=NULL;
	newNode->myPL=NULL;
//	newNode->myPL=ePostingListConstuct();
	return newNode;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
pushq $0x20
popq %rdi
callq 0x2200
movb %bl, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
andq $0x0, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/trie.c
// Function: nodeDestruct
void nodeDestruct(node* self){
	if(self==NULL) return;
	ePostingListDestruct(self->myPL);
	nodeDestruct(self->next);
	nodeDestruct(self->child);
	free(self);
	self=NULL;
	return;
}

// Assembly:
testq %rdi, %rdi
je 0x2d04
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x27fc
movq 0x8(%rbx), %rdi
callq 0x2ccd
movq 0x10(%rbx), %rdi
callq 0x2ccd
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2030
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/trieInsertion.c
// Function: nextWord
int nextWord(char* text,char** word,int start){
	if(text==NULL) return -2;//error
	if(start>strlen(text) || start<=-1) return -2;//error or END
	while(text[start]==' ' || text[start]=='\t') start++;//skip ws
	//now in text[start] starts the word which we return
	if(text[start]=='\0') return -2;//or maybe we reached '\0'
	int temp=start;//if not return the word
	while(text[temp]!=' ' && text[temp]!='\t' && text[temp]!='\0') temp++;
	if((*word = malloc((temp-start+1)*sizeof(char)))==NULL){
		printf("Allocation Error!\n");
		return -3;
	}
	strncpy(*word,text+start,temp-start);
	(*word)[temp-start] = '\0';
	while(text[temp]==' ' || text[temp]=='\t') temp++;//again skip ws
	if(text[temp]=='\0')//if after this word we reached the end
		return -1;
	return temp;//first char to check next time
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
pushq $-0x2
popq %rbx
testq %rdi, %rdi
je 0x2eeb
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %r14
callq 0x2120
testl %r12d, %r12d
js 0x2eeb
movslq %r12d, %rcx
cmpq %rcx, %rax
jb 0x2eeb
movl %r12d, %r13d
addq %r13, %r14
movzbl (%r14), %eax
cmpl $0x9, %eax
je 0x2e59
cmpl $0x20, %eax
jne 0x2e61
incq %r13
incq %r14
jmp 0x2e4b
testl %eax, %eax
je 0x2eeb
xorl %ebx, %ebx
movabsq $0x100000201, %rcx      # imm = 0x100000201
cmpb $0x20, %al
ja 0x2e82
movzbl %al, %eax
btq %rax, %rcx
jb 0x2e8c
movb 0x1(%r14,%rbx), %al
incq %rbx
jmp 0x2e75
leal 0x1(%rbx), %eax
movslq %eax, %rdi
callq 0x2200
movq %rax, (%r15)
testq %rax, %rax
je 0x2edc
movq %rax, %r12
leaq (%r14,%rbx), %r15
movslq %ebx, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2070
movb $0x0, (%r12,%rbx)
addl %r13d, %ebx
movzbl (%r15), %eax
cmpl $0x9, %eax
je 0x2ecd
cmpl $0x20, %eax
jne 0x2ed4
incl %ebx
incq %r15
jmp 0x2ebf
testl %eax, %eax
jne 0x2eeb
pushq $-0x1
jmp 0x2eea
leaq 0x424b(%rip), %rdi      # 0x712e
callq 0x20a0
pushq $-0x3
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/trie/trieInsertion.c
// Function: createTrie
int createTrie(char** Doc,int lines,char* name,int id,node** trie,int sorted){
	char* word=NULL;
	int start;
	int counter = 0;
	for(int f=0;f<lines;f++){
		start=0;
		while((start = nextWord(Doc[f],&word,start))!=-2){
			insertInTrie(trie,word,f,name,id,sorted);//f=line
			counter++;
			free(word);
		}
	}
	return counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, -0x30(%rbp)
movq %r8, -0x50(%rbp)
movl %ecx, -0x2c(%rbp)
movq %rdx, -0x48(%rbp)
movq %rdi, %r13
leaq -0x38(%rbp), %rax
andq $0x0, (%rax)
xorl %ebx, %ebx
testl %esi, %esi
cmovlel %ebx, %esi
movq %rsi, -0x40(%rbp)
xorl %r14d, %r14d
cmpq -0x40(%rbp), %rbx
je 0x3136
xorl %r15d, %r15d
movq (%r13,%rbx,8), %rdi
leaq -0x38(%rbp), %rsi
movl %r15d, %edx
callq 0x2e08
cmpl $-0x2, %eax
je 0x3131
movl %eax, %r15d
movq -0x38(%rbp), %r12
movq -0x50(%rbp), %rdi
movq %r12, %rsi
movl %ebx, %edx
movq -0x48(%rbp), %rcx
movl -0x2c(%rbp), %r8d
movl -0x30(%rbp), %r9d
callq 0x2efc
incl %r14d
movq %r12, %rdi
callq 0x2030
jmp 0x30ed
incq %rbx
jmp 0x30e4
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/fifo_fcts.c
// Function: initNames
void initNames(fifo_info **fifo,int n){
	if(fifo==NULL) return ;
	char *f1="../PantoulasStefanosProject2/jobExec/tmp/fifo1_w";
	char *f2="../PantoulasStefanosProject2/jobExec/tmp/fifo2_w";
	char *buf;
	for(int i=0;i<n;i++){
		buf = myitoa(i+1);
		(*fifo)[2*i].name = malloc((49 + itol(i+1))*sizeof(char));
		strcpy((*fifo)[2*i].name,f1);
		strcat((*fifo)[2*i].name,buf);
		(*fifo)[2*i+1].name = malloc((49 + itol(i+1))*sizeof(char));
		strcpy((*fifo)[2*i+1].name,f2);
		strcat((*fifo)[2*i+1].name,buf);
		free(buf);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x42fe
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
shlq $0x5, %rsi
movq %rsi, -0x30(%rbp)
pushq $0x1
popq %r15
xorl %r13d, %r13d
cmpq %r13, -0x30(%rbp)
je 0x42f0
movl %r15d, %edi
callq 0x43e9
movq %rax, %r12
movl %r15d, %edi
callq 0x43c3
addl $0x31, %eax
movslq %eax, %rdi
callq 0x2200
movq (%r14), %rcx
movq %rax, (%rcx,%r13)
movq (%r14), %rax
movq (%rax,%r13), %rax
movups 0x30e1(%rip), %xmm0     # 0x733a
movups %xmm0, (%rax)
xorl %ebx, %ebx
movb %bl, 0x30(%rax)
movups 0x30f2(%rip), %xmm0     # 0x735a
movups %xmm0, 0x20(%rax)
movups 0x30d7(%rip), %xmm0     # 0x734a
movups %xmm0, 0x10(%rax)
movq (%r14), %rax
movq (%rax,%r13), %rdi
movq %r12, %rsi
callq 0x22a0
movl %r15d, %edi
callq 0x43c3
addl $0x31, %eax
movslq %eax, %rdi
callq 0x2200
movq (%r14), %rcx
movq %rax, 0x10(%rcx,%r13)
movq (%r14), %rax
movq 0x10(%rax,%r13), %rax
movups 0x30bb(%rip), %xmm0     # 0x736b
movups %xmm0, (%rax)
movb %bl, 0x30(%rax)
movups 0x30ce(%rip), %xmm0     # 0x738b
movups %xmm0, 0x20(%rax)
movups 0x30b3(%rip), %xmm0     # 0x737b
movups %xmm0, 0x10(%rax)
movq (%r14), %rax
movq 0x10(%rax,%r13), %rdi
movq %r12, %rsi
callq 0x22a0
movq %r12, %rdi
callq 0x2030
addq $0x20, %r13
incl %r15d
jmp 0x421c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/functions.c
// Function: read_command
int read_command(int fd,char **buf,int size){
	char c;
	int n;
	int counter=0;
	while(1){
		if((n=read(fd,&c,1)) < 0) return n;
		if(!n){
			strcpy((*buf),"_BROKEN_FIFO_");
			counter = 13;
			break;
		}
		if(counter == size){//then realloc 
			size *=2;
			(*buf) = realloc((*buf),size*sizeof(char));
		}
		if(c == '\0' || c == EOF){
			(*buf)[counter] = '\0';
			break;
		}
		else (*buf)[counter++] = c;
	}
	return counter+1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
movl %edi, %r15d
xorl %r12d, %r12d
pushq $0x1
popq %r13
movl %r15d, %edi
leaq -0x29(%rbp), %rsi
movq %r13, %rdx
callq 0x2170
testl %eax, %eax
js 0x43b4
je 0x4381
movl %r14d, %eax
cmpq %rax, %r12
jne 0x436a
addl %r14d, %r14d
movq (%rbx), %rdi
movslq %r14d, %rsi
callq 0x2220
movq %rax, (%rbx)
movb -0x29(%rbp), %al
leal 0x1(%rax), %ecx
cmpb $0x1, %cl
jbe 0x43a4
movq (%rbx), %rcx
movb %al, (%rcx,%r12)
incq %r12
jmp 0x433c
movq (%rbx), %rax
movabsq $0x5f4f4649465f4e, %rcx # imm = 0x5F4F4649465F4E
movq %rcx, 0x6(%rax)
movabsq $0x5f4e454b4f52425f, %rcx # imm = 0x5F4E454B4F52425F
movq %rcx, (%rax)
pushq $0xe
popq %rax
jmp 0x43b4
movq (%rbx), %rax
movl %r12d, %ecx
movb $0x0, (%rax,%rcx)
incl %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/functions.c
// Function: itol
int itol(int value){
	int counter=1;
	if(value<0) value*=-1;
	while((value/=10)>0) counter++;
	return counter;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
movl $0x1, %ecx
movl $0xa, %esi
cmpl $0xa, %eax
jb 0x43e5
xorl %edx, %edx
divl %esi
incl %ecx
jmp 0x43d8
movl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/functions.c
// Function: myitoa
char* myitoa(int value){
	int c=itol(value);
	char *ptr = malloc((c+1)*sizeof(char));
	ptr[c--] = '\0';
	if(value == 0) ptr[0] = '0';
	while(value){
		ptr[c--] = value%10 + '0';
		value/=10;
	}
	return ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
callq 0x43c3
movl %eax, %r14d
leal 0x1(%r14), %eax
movslq %eax, %rdi
callq 0x2200
movq %rax, %rcx
movslq %r14d, %rax
movb $0x0, (%rcx,%rax)
testl %ebx, %ebx
jne 0x4417
movb $0x30, (%rcx)
leaq (%rax,%rcx), %rsi
decq %rsi
pushq $0xa
popq %rdi
testl %ebx, %ebx
je 0x4436
movl %ebx, %eax
cltd
idivl %edi
addb $0x30, %dl
movb %dl, (%rsi)
decq %rsi
movl %eax, %ebx
jmp 0x4421
movq %rcx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/functions.c
// Function: findChildPos
int findChildPos(pid_t chid,pid_t *pids,int w){
	int pos = 0;
	for(int i=0;i<w;i++)
		if(pids[i]==chid){
			pos=i;
			break;
		}
	return pos;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x447a
cmpl %edi, (%rsi,%rcx,4)
je 0x4478
incq %rcx
jmp 0x4469
movl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/parent.c
// Function: Psighandler
void Psighandler(int sig, siginfo_t* info, void *secret){
	if(sig == SIGINT || sig == SIGTERM || sig == SIGQUIT){
		flagINT=1;
	}
	else if(sig == SIGCHLD){
		while(1){
			pid_t pid = waitpid(-1,NULL,WNOHANG);//wait for any child or ret 0
			if(pid <= 0) break;
			deadCHILD[deadChildCounter++] = pid;//save what you find
		}
	}
	else if(sig == SIGPIPE){}//ignore it
}

// Assembly:
leal -0x2(%rdi), %eax
cmpl $0x2, %eax
jb 0x48e0
cmpl $0xf, %edi
je 0x48e0
cmpl $0x11, %edi
jne 0x48ea
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
pushq $-0x1
popq %rbx
pushq $0x1
popq %r14
movl %ebx, %edi
xorl %esi, %esi
movl %r14d, %edx
callq 0x2250
testl %eax, %eax
jle 0x48eb
movq 0x58fd(%rip), %rcx      # 0xa1c8
movslq 0x58f2(%rip), %rdx      # 0xa1c4
leal 0x1(%rdx), %esi
movl %esi, 0x58e9(%rip)      # 0xa1c4
movl %eax, (%rcx,%rdx,4)
jmp 0x48b4
movl $0x1, 0x58d6(%rip)      # 0xa1c0
retq
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/PCOptions.c
// Function: decode_plus
void decode_plus(char* buffer,int *bytes,int *words,int *lines){//for WC
	if(buffer==NULL) return;
	int start;
	char* word = NULL;
	start = nextWord(buffer,&word,0);//read bytes
	*bytes += atoi(word);
	free(word);
	word = NULL;
	start = nextWord(buffer,&word,start);
	*words += atoi(word);
	free(word);
	word = NULL;
	start = nextWord(buffer,&word,start);
	*lines += atoi(word);
	free(word);
	word = NULL;
	if(start != -1) printf("Unexpected result!(%s)\n",buffer);
	return;
}

// Assembly:
testq %rdi, %rdi
je 0x5d03
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r13
movq %rdi, %rbx
leaq -0x40(%rbp), %r15
andq $0x0, (%r15)
movq %r15, %rsi
movq %rdx, -0x30(%rbp)
xorl %edx, %edx
movq %rcx, -0x38(%rbp)
callq 0x2e08
movl %eax, %r14d
movq (%r15), %r12
movq %r12, %rdi
callq 0x2290
addl %eax, (%r13)
movq %r12, %rdi
callq 0x2030
andq $0x0, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x2e08
movl %eax, %r14d
movq (%r15), %r12
movq %r12, %rdi
callq 0x2290
movq -0x30(%rbp), %rcx
addl %eax, (%rcx)
movq %r12, %rdi
callq 0x2030
andq $0x0, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x2e08
movl %eax, %r14d
movq (%r15), %r12
movq %r12, %rdi
callq 0x2290
movq -0x38(%rbp), %rcx
addl %eax, (%rcx)
movq %r12, %rdi
callq 0x2030
andq $0x0, (%r15)
cmpl $-0x1, %r14d
je 0x5cf5
leaq 0x19bf(%rip), %rdi      # 0x76aa
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2130
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/PCOptions.c
// Function: decode_MAX
void decode_MAX(char* buffer,char** myname,int *maxcounter){//for MAXCOUNT
	if(!strcmp(buffer,"-")) return;//no result from child
	char* name;
	char* word;
	int counter;
	int start = nextWord(buffer,&word,0);
	int name_len = strlen(word) + 1;
	name = malloc(name_len*sizeof(char));
	strcpy(name,word);
	free(word);
	while((start = nextWord(buffer,&word,start)) != -1){//name maybe has spaces
		name_len += strlen(word) + 2;
		name = realloc(name,name_len*sizeof(char));
		strcat(name," ");
		strcat(name,word);
		free(word);
	}
	counter = atoi(word);
	free(word);
	if(counter>*maxcounter || (counter==*maxcounter && strcmp(name,*myname)<0)){
		*maxcounter = counter;
		if(*myname != NULL) free(*myname);
		*myname = name;
	}
	else free(name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
cmpb $0x2d, (%rdi)
jne 0x5d29
cmpb $0x0, 0x1(%r12)
je 0x5e1c
movq %rdx, -0x40(%rbp)
movq %rsi, -0x30(%rbp)
leaq -0x38(%rbp), %r14
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2e08
movl %eax, %ebx
movq (%r14), %r14
movq %r14, %rdi
callq 0x2120
movq %rax, %r13
incl %r13d
movslq %r13d, %rdi
callq 0x2200
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x2080
movq %r14, %rdi
callq 0x2030
movq %r12, %rdi
leaq -0x38(%rbp), %rsi
movl %ebx, %edx
callq 0x2e08
movq -0x38(%rbp), %r14
cmpl $-0x1, %eax
je 0x5dc5
movl %eax, %ebx
movq %r14, %rdi
callq 0x2120
addl %eax, %r13d
addl $0x2, %r13d
movslq %r13d, %rsi
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movq %rax, %rdi
callq 0x2120
movw $0x20, (%r15,%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x22a0
jmp 0x5d6b
movq %r14, %rdi
callq 0x2290
movl %eax, %ebx
movq %r14, %rdi
callq 0x2030
movq -0x40(%rbp), %r13
cmpl (%r13), %ebx
jle 0x5dfb
movq -0x30(%rbp), %r12
movq (%r12), %r14
movl %ebx, (%r13)
movq %r14, %rdi
callq 0x2030
movq %r15, (%r12)
jmp 0x5e1c
movq -0x30(%rbp), %r12
jne 0x5e14
movq (%r12), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x2180
testl %eax, %eax
js 0x5de9
movq %r15, %rdi
callq 0x2030
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/PCOptions.c
// Function: decode_MIN
void decode_MIN(char* buffer,char** myname,int *mincounter){//for MINCOUNT
	if(!strcmp(buffer,"-")) return;//no result from child
	char *name;
	char* word;
	int counter;	
	int start = nextWord(buffer,&word,0);
	int name_len = strlen(word) + 1;
	name = malloc(name_len*sizeof(char));
	strcpy(name,word);
	free(word);
	while((start = nextWord(buffer,&word,start)) != -1){//name maybe has spaces
		name_len += strlen(word) + 2;
		name = realloc(name,name_len*sizeof(char));
		strcat(name," ");
		strcat(name,word);
		free(word);
	}
	counter = atoi(word);
	free(word);
	if(counter<*mincounter || *mincounter==-1 || (counter==*mincounter && strcmp(name,*myname)<0)){
		*mincounter = counter;
		if(*myname != NULL) free(*myname);
		*myname = name;
	}
	else free(name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
cmpb $0x2d, (%rdi)
jne 0x5e50
cmpb $0x0, 0x1(%r12)
je 0x5f52
movq %rdx, -0x40(%rbp)
movq %rsi, -0x30(%rbp)
leaq -0x38(%rbp), %r14
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2e08
movl %eax, %ebx
movq (%r14), %r14
movq %r14, %rdi
callq 0x2120
movq %rax, %r13
incl %r13d
movslq %r13d, %rdi
callq 0x2200
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x2080
movq %r14, %rdi
callq 0x2030
movq %r12, %rdi
leaq -0x38(%rbp), %rsi
movl %ebx, %edx
callq 0x2e08
movq -0x38(%rbp), %r14
cmpl $-0x1, %eax
je 0x5eec
movl %eax, %ebx
movq %r14, %rdi
callq 0x2120
addl %eax, %r13d
addl $0x2, %r13d
movslq %r13d, %rsi
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movq %rax, %rdi
callq 0x2120
movw $0x20, (%r15,%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x22a0
jmp 0x5e92
movq %r14, %rdi
callq 0x2290
movl %eax, %ebx
movq %r14, %rdi
callq 0x2030
movq -0x40(%rbp), %r13
movl (%r13), %eax
cmpl %eax, %ebx
setge %cl
cmpl $-0x1, %eax
setne %dl
testb %dl, %cl
jne 0x5f2f
movq -0x30(%rbp), %r12
movq (%r12), %r14
movl %ebx, (%r13)
movq %r14, %rdi
callq 0x2030
movq %r15, (%r12)
jmp 0x5f52
cmpl %eax, %ebx
movq -0x30(%rbp), %r12
jne 0x5f4a
movq (%r12), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x2180
testl %eax, %eax
js 0x5f1d
movq %r15, %rdi
callq 0x2030
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/PCOptions.c
// Function: searchWordInTrie
nc_pair* searchWordInTrie(node* trie,char* word,int sorted,int max){//for min/maxcount
	int i=0;//character's index
	char c = word[i];
	node* temp=trie;
	int flag=1;
	//flag:if temp->next==NULL then create new next

	nc_pair* p = malloc(sizeof(nc_pair));
	p->name = NULL;//means word not exists
	p->counter = -1;

	while(1){//for all word's chars(has at least 1 char)
		while(1){//for all childs in temp's list(temp -> next -> next -> ...)
			if(c==getValue(temp)){
				flag=0;
				break;//check next char
			}
			else if((c<getValue(temp))&&sorted) break;
			if(getNext(temp)==NULL) return p;//word doesn't exists in trie :(
			temp = getNext(temp);//search until c found in trie
		}//or we reached the end of temp's list
		if(flag)//c not found in trie...exiting
			return p;

		//now temp has the 'c' value so we check its child
		if((c=word[++i])=='\0'){
			if(max)
				getMaxCounterEPL(temp,&(p->name),&(p->counter));
			else
				getMinCounterEPL(temp,&(p->name),&(p->counter));
			return p;
		}
		if(getChild(temp)==NULL) return p;//word not found
		temp=getChild(temp);//else continue with child
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, -0x34(%rbp)
movl %edx, %r12d
movq %rdi, %r15
movq %rsi, -0x48(%rbp)
movb (%rsi), %r13b
pushq $0x10
popq %rdi
callq 0x2200
andq $0x0, (%rax)
orl $-0x1, 0x8(%rax)
movq %rax, -0x30(%rbp)
addq $0x8, %rax
movq %rax, -0x40(%rbp)
xorl %r14d, %r14d
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x2d0e
cmpb %al, %r13b
je 0x5fe1
movq %r15, %rdi
callq 0x2d0e
testl %r12d, %r12d
je 0x5fc2
cmpb %al, %r13b
jl 0x5fdc
movq %r15, %rdi
callq 0x2d20
testq %rax, %rax
je 0x6036
movq %r15, %rdi
callq 0x2d20
movq %rax, %r15
jmp 0x5fa3
testb $0x1, %bl
je 0x6036
movq -0x48(%rbp), %rax
movb 0x1(%rax,%r14), %r13b
testb %r13b, %r13b
je 0x600e
movq %r15, %rdi
callq 0x2d34
testq %rax, %rax
je 0x6036
incq %r14
movq %r15, %rdi
callq 0x2d34
movq %rax, %r15
movb $0x1, %bl
jmp 0x5fa3
cmpl $0x0, -0x34(%rbp)
je 0x6026
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x2d3e
jmp 0x6036
movq %r15, %rdi
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x2d58
movq -0x30(%rbp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stefpant[P]TCPserver/PantoulasStefanosProject2/jobExec/PCOptions.c
// Function: getWordLastNode
node* getWordLastNode(node* trie,char* word,int sorted){//for search - child
	int i=0;//character's index
	char c = word[i];
	node* temp=trie;
	int flag=1;
	//flag:if temp->next==NULL then create new next

	while(1){//for all word's chars(has at least 1 char)
		while(1){//for all childs in temp's list(temp -> next -> next -> ...)
			if(c==getValue(temp)){
				flag=0;
				break;//check next char
			}
			else if((c<getValue(temp))&&sorted) break;
			if(getNext(temp)==NULL) return NULL;//word doesn't exists in trie :(
			temp = getNext(temp);//search until c found in trie
		}//or we reached the end of temp's list
		if(flag)//c not found in trie...exiting
			return NULL;
		//now temp has the 'c' value so we check its child
		if((c=word[++i])=='\0'){
			if(getCounterEPL(temp)==0) return NULL;//word found but is subword in trie
			return temp;
		}
		if(getChild(temp)==NULL) return NULL;//word not found
		temp=getChild(temp);//else continue with child
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb (%rsi), %bl
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x2d0e
cmpb %al, %bl
je 0x60a6
movq %r14, %rdi
callq 0x2d0e
testl %r15d, %r15d
je 0x6086
cmpb %al, %bl
jl 0x60a0
movq %r14, %rdi
callq 0x2d20
testq %rax, %rax
je 0x60d3
movq %r14, %rdi
callq 0x2d20
movq %rax, %r14
jmp 0x6069
testb $0x1, %r12b
je 0x60d3
movq -0x30(%rbp), %rax
movb 0x1(%rax,%r13), %bl
movq %r14, %rdi
testb %bl, %bl
je 0x60e7
callq 0x2d34
testq %rax, %rax
je 0x60d3
incq %r13
movq %r14, %rdi
callq 0x2d34
movq %rax, %r14
movb $0x1, %r12b
jmp 0x6069
xorl %ecx, %ecx
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2d72
xorl %ecx, %ecx
testl %eax, %eax
cmovneq %r14, %rcx
jmp 0x60d5
// File: /workspace/github_c_makefile_star2_O2/chrispanag[P]operating-systems-scheduler/shell.c
// Function: issue_request
void issue_request(int wfd, int rfd, struct request_struct *rq)
{
	int ret;

	/* Issue the request */
	fprintf(stderr, "Shell: issuing request...\n");
	if (write(wfd, rq, sizeof(*rq)) != sizeof(*rq)) {
		perror("Shell: write request struct");
		exit(1);
	}

	/* Block until a reply has been received */
	fprintf(stderr, "Shell: receiving request return value...\n");

	if (read(rfd, &ret, sizeof(ret)) != sizeof(ret)) {
		perror("Shell: read request return value");
		exit(1);
	}

	if(ret < 0){
		fprintf(stderr, "Shell: request return value ret = %d\n", ret);
		fprintf(stderr, "       %s\n", strerror(-ret));
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebx
movl %edi, %ebp
movq 0x2d57(%rip), %r15      # 0x3ff8
movq (%r15), %rcx
leaq 0xde9(%rip), %rdi       # 0x2094
pushq $0x1a
popq %rsi
pushq $0x1
popq %rdx
callq 0x1160
pushq $0x44
popq %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x1050
cmpq $0x44, %rax
jne 0x1343
movq (%r15), %rcx
leaq 0xdf8(%rip), %rdi       # 0x20cb
pushq $0x29
popq %rsi
pushq $0x1
popq %rdx
callq 0x1160
leaq 0x4(%rsp), %rsi
pushq $0x4
popq %rdx
movl %ebx, %edi
callq 0x10c0
cmpq $0x4, %rax
jne 0x1357
movl 0x4(%rsp), %ebx
testl %ebx, %ebx
js 0x1306
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rdi
leaq 0xe06(%rip), %rsi       # 0x2116
movl %ebx, %edx
xorl %eax, %eax
callq 0x10e0
movq (%r15), %r14
negl %ebx
movl %ebx, %edi
callq 0x1170
leaq 0xe10(%rip), %rsi       # 0x213c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x10e0
leaq 0xd65(%rip), %rdi       # 0x20af
callq 0x1120
pushq $0x1
popq %rdi
callq 0x1150
leaq 0xd97(%rip), %rdi       # 0x20f5
jmp 0x134a
// File: /workspace/github_c_makefile_star2_O2/chrispanag[P]operating-systems-scheduler/shell.c
// Function: get_cmdline
void get_cmdline(FILE *fp, char *buf, int bufsz)
{
	if (fgets(buf, bufsz, fp) == NULL) {
		fprintf(stderr, "Shell: could not read command line, exiting.\n");
		exit(1);
	}
	if (buf[strlen(buf) - 1] == '\n')
		buf[strlen(buf) - 1] = '\0';
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq %rdi, %rax
movq %rsi, %rdi
movl %edx, %esi
movq %rax, %rdx
callq 0x10d0
testq %rax, %rax
je 0x138f
movq %rbx, %rdi
callq 0x1070
cmpb $0xa, -0x1(%rbx,%rax)
jne 0x138d
movb $0x0, -0x1(%rbx,%rax)
popq %rbx
retq
movq 0x2c62(%rip), %rax      # 0x3ff8
movq (%rax), %rcx
leaq 0xda7(%rip), %rdi       # 0x2147
pushq $0x2d
popq %rsi
pushq $0x1
popq %rdx
callq 0x1160
pushq $0x1
popq %rdi
callq 0x1150
// File: /workspace/github_c_makefile_star2_O2/chrispanag[P]operating-systems-scheduler/shell.c
// Function: main
int main(int argc, char *argv[])
{
	int rfd, wfd;
	char cmdline[SHELL_CMDLINE_SZ];

	/*
	 * Communication with the scheduler happens over two UNIX pipes.
	 *
	 * The scheduler first creates the pipes, then execve()s the shell
	 * program. It passes two file descriptors as command-line arguments:
	 *
	 * argument 1: wfd: the file descriptor to write request structures into.
	 * argument 2: rfd: the file descriptor to read request return values from.
	 */

	if (argc != 3) {
		fprintf(stderr, "Shell: must be called with exactly two arguments.\n");
		exit(1);
	}

	wfd = atoi(argv[1]);
	rfd = atoi(argv[2]);
	if (!wfd || !rfd) {
		fprintf(stderr, "Shell: descriptors must be non-zero: wfd = %d, rfd = %d\n",
			wfd, rfd);
		exit(1);
	}

	/*
	 * Forever: show the prompt, read a command line, then process it.
	 */
	printf("\nThis is the Shell. Welcome.\n\n");

	for (;;) {
		printf("Shell> ");
		fflush(stdout);
		get_cmdline(stdin, cmdline, SHELL_CMDLINE_SZ);
		process_cmdline(cmdline, wfd, rfd);
	}

	/* Unreachable */
	fprintf(stderr, "Shell: reached unreachable point.\n");
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpl $0x3, %edi
jne 0x15d7
movq %rsi, %r14
movq 0x8(%rsi), %rdi
callq 0x1140
movl %eax, %ebx
movq 0x10(%r14), %rdi
callq 0x1140
movl %eax, %ebp
testl %ebx, %ebx
je 0x15f5
testl %ebp, %ebp
je 0x15f5
leaq 0xd93(%rip), %rdi       # 0x231d
callq 0x1040
movq 0x2a3a(%rip), %r13      # 0x3fd0
movq 0x2a3b(%rip), %r14      # 0x3fd8
movq %rsp, %r15
pushq $0x64
popq %r12
leaq 0xc6c(%rip), %rdi       # 0x2217
xorl %eax, %eax
callq 0x10a0
movq (%r13), %rdi
callq 0x1100
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1360
movq %r15, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x13bf
jmp 0x15a4
movq 0x2a1a(%rip), %rax      # 0x3ff8
movq (%rax), %rcx
leaq 0xbc3(%rip), %rdi       # 0x21ab
pushq $0x32
popq %rsi
pushq $0x1
popq %rdx
callq 0x1160
jmp 0x1611
movq 0x29fc(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xbd8(%rip), %rsi       # 0x21de
movl %ebx, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x10e0
pushq $0x1
popq %rdi
callq 0x1150
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/kvlds-dump/main.c
// Function: callback_pair
static int
callback_pair(void * cookie,
    const struct kvldskey * key, const struct kvldskey * value)
{
	struct dumpstate * C = cookie;
	char kvnum[17];

	/* Filesystem or stdout? */
	if (C->tofs) {
		sprintf(kvnum, "%016" PRIx64, C->N);
		if (mkdir(kvnum, 0700)) {
			warnp("mkdir(%s)", kvnum);
			goto err0;
		}
		if (writefile(kvnum, "k", key))
			goto err0;
		if (writefile(kvnum, "v", value))
			goto err0;
	} else {
		if (fwrite(&key->len, 1, 1, stdout) != 1)
			goto err0;
		if (fwrite(key->buf, key->len, 1, stdout) != 1)
			goto err0;
		if (fwrite(&value->len, 1, 1, stdout) != 1)
			goto err0;
		if (fwrite(value->buf, value->len, 1, stdout) != 1)
			goto err0;
	}

	/* Done another key-value pair. */
	C->N++;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x2a94
movq 0x8(%rbx), %rdx
leaq 0x9771(%rip), %rsi      # 0xc1b9
movq %rsp, %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x22f0
movq %r12, %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x20d0
testl %eax, %eax
je 0x2b10
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2b47
movq %rax, %rbx
leaq 0x8760(%rip), %rdi      # 0xb1e2
movq %rsp, %rsi
xorl %eax, %eax
callq 0x390d
andl $0x0, (%rbx)
jmp 0x2b58
movq 0xe53d(%rip), %r12      # 0x10fd8
movq (%r12), %rcx
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %rdx, %rsi
callq 0x2320
pushq $-0x1
popq %rbp
cmpq $0x1, %rax
jne 0x2b5b
movzbl (%r15), %esi
incq %r15
movq (%r12), %rcx
pushq $0x1
popq %rdx
movq %r15, %rdi
callq 0x2320
cmpq $0x1, %rax
jne 0x2b5b
movq (%r12), %rcx
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rdx, %rsi
callq 0x2320
cmpq $0x1, %rax
jne 0x2b5b
movzbl (%r14), %esi
incq %r14
movq (%r12), %rcx
pushq $0x1
popq %rdx
movq %r14, %rdi
callq 0x2320
cmpq $0x1, %rax
je 0x2b3f
jmp 0x2b5b
leaq 0x86d5(%rip), %rsi      # 0xb1ec
movq %rsp, %rdi
movq %r15, %rdx
callq 0x2b6a
pushq $-0x1
popq %rbp
testl %eax, %eax
jne 0x2b5b
leaq 0x855c(%rip), %rsi      # 0xb08c
movq %rsp, %rdi
movq %r14, %rdx
callq 0x2b6a
testl %eax, %eax
jne 0x2b5b
incq 0x8(%rbx)
xorl %ebp, %ebp
jmp 0x2b5b
leaq 0x8694(%rip), %rdi      # 0xb1e2
movq %rsp, %rsi
xorl %eax, %eax
callq 0x3a9c
pushq $-0x1
popq %rbp
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/kvlds-dump/main.c
// Function: writefile
static int
writefile(const char * dir, const char * fname, const struct kvldskey * v)
{
	char * s;
	FILE * f;

	/* Construct file name. */
	if (asprintf(&s, "%s/%s", dir, fname) == -1) {
		warnp("asprintf");
		goto err0;
	}

	/* Open file. */
	if ((f = fopen(s, "wb")) == NULL) {
		warnp("fopen(%s)", s);
		goto err1;
	}

	/* Write value. */
	if (fwrite(v->buf, v->len, 1, f) != 1) {
		warnp("fwrite(%s)", s);
		goto err2;
	}

	/* Close file and free file name. */
	if (fclose(f))
		warnp("fclose");
	free(s);

	/* Success! */
	return (0);

err2:
	if (fclose(f))
		warnp("fclose");
err1:
	free(s);
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rcx
movq %rdi, %rdx
leaq 0x8670(%rip), %rsi      # 0xb1ee
movq %rsp, %rdi
xorl %eax, %eax
callq 0x2cf4
cmpl $-0x1, %eax
je 0x2bfb
movq (%rsp), %rdi
leaq 0x8665(%rip), %rsi      # 0xb1fd
callq 0x22c0
testq %rax, %rax
je 0x2c1e
movq %rax, %rbx
movzbl (%r14), %esi
incq %r14
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rax, %rcx
callq 0x2320
cmpq $0x1, %rax
jne 0x2c45
movq %rbx, %rdi
callq 0x2120
testl %eax, %eax
je 0x2cc5
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2cb7
movq %rax, %rbx
leaq 0x8629(%rip), %rdi      # 0xb215
xorl %eax, %eax
callq 0x390d
andl $0x0, (%rbx)
jmp 0x2cc5
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2c6a
movq %rax, %rbx
leaq 0x85e5(%rip), %rdi      # 0xb1f4
xorl %eax, %eax
callq 0x390d
andl $0x0, (%rbx)
jmp 0x2ce9
callq 0x20a0
cmpl $0x0, (%rax)
movq (%rsp), %rsi
je 0x2c7a
movq %rax, %rbx
leaq 0x85ca(%rip), %rdi      # 0xb200
xorl %eax, %eax
callq 0x390d
andl $0x0, (%rbx)
jmp 0x2ce0
callq 0x20a0
movq %rax, %r14
cmpl $0x0, (%rax)
movq (%rsp), %rsi
leaq 0x85af(%rip), %rdi      # 0xb20a
je 0x2c8a
xorl %eax, %eax
callq 0x390d
andl $0x0, (%r14)
jmp 0x2c91
leaq 0x8583(%rip), %rdi      # 0xb1f4
xorl %eax, %eax
callq 0x3a9c
jmp 0x2ce9
leaq 0x857f(%rip), %rdi      # 0xb200
xorl %eax, %eax
callq 0x3a9c
jmp 0x2ce0
xorl %eax, %eax
callq 0x3a9c
movq %rbx, %rdi
callq 0x2120
testl %eax, %eax
je 0x2ce0
cmpl $0x0, (%r14)
je 0x2cd2
leaq 0x856b(%rip), %rdi      # 0xb215
xorl %eax, %eax
callq 0x390d
andl $0x0, (%r14)
jmp 0x2ce0
leaq 0x8557(%rip), %rdi      # 0xb215
xorl %eax, %eax
callq 0x3a9c
movq (%rsp), %rdi
callq 0x2040
xorl %eax, %eax
jmp 0x2cec
leaq 0x853c(%rip), %rdi      # 0xb215
xorl %eax, %eax
callq 0x3a9c
movq (%rsp), %rdi
callq 0x2040
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq