LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/main.c
// Function: cat_char
unsigned char* cat_char(unsigned char** R, size_t d, size_t *n){

  (*n)++; //add 0 at the end

  int_t i, j;
  int_t l=0;
  unsigned char *str = (unsigned char*) malloc((*n)*sizeof(unsigned char));

  for(i=0; i<d; i++){
    int_t m = strlen((char*)R[i]);
    for(j=0; j<m; j++){
      if(R[i][j]<255) str[l++] = R[i][j]+1;
    }
#if CAT == 1
    str[l++] = 1; //add 1 as separator
#endif
  }

  str[l++]=0;
  if(*n>l){
    str = (unsigned char*) realloc(str, (l)*sizeof(unsigned char)); 
  }
  *n = l;

return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %r13
movq (%rdx), %rdi
incq %rdi
movq %rdx, 0x10(%rsp)
movq %rdi, (%rdx)
movq %rdi, 0x8(%rsp)
callq 0x76d0
movq %rax, %r14
xorl %r15d, %r15d
xorl %ebx, %ebx
cmpq %r12, %r15
je 0x2411
movq (%r13,%r15,8), %rbp
movq %rbp, %rdi
callq 0x20c0
testl %eax, %eax
movl $0x0, %ecx
cmovlel %ecx, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x240c
movb (%rbp,%rcx), %dl
cmpb $-0x1, %dl
je 0x2407
incb %dl
movslq %ebx, %rsi
incl %ebx
movb %dl, (%r14,%rsi)
incq %rcx
jmp 0x23ee
incq %r15
jmp 0x23d0
movslq %ebx, %rax
incl %ebx
movb $0x0, (%r14,%rax)
movslq %ebx, %r12
cmpq %r12, 0x8(%rsp)
jbe 0x2433
movq %r14, %rdi
movq %r12, %rsi
callq 0x7878
movq %rax, %r14
movq 0x10(%rsp), %rax
movq %r12, (%rax)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/main.c
// Function: usage
void usage(char *name){
  printf("lyndon-array:\n\tUsage: %s [options] FILE \n\n",name);
  puts("Computes the Lyndon-array of FILE");
  puts("Output:\tLyndon-array (and Suffix-array)\n");
  puts("Available options:");
  puts("\t-A a\tpreferred algorithm to use (default 10)");
  puts("\t-d D\tuse the first D documents of the INPUT");
  puts("\t-b\tread INPUT as binary input (default)");
  puts("\t-f\tread INPUT as formatted input (txt, fasta or fastq)");
  puts("\t-v\tverbose output");
  puts("\t-o\toutput computed arrays to disk (INPUT.la and INPUT.sa)");
  puts("\t-s\tcompute some statistics for LA");
  puts("\t-l\toutput the lyndon-factors (start positions) to (INPUT.pos)");
  puts("\t-L\toutput the lyndon-factors (substrings) to (INPUT.lyn)");
  puts("Debug options:");
  puts("\t-c\tcheck output (for debug)");
  puts("\t-p P\tprint the output arrays LA[1,P] and SA[1,P] (for debug)");
  puts("\t-h\tthis help message");
  exit(EXIT_FAILURE);
}

// Assembly:
pushq %rax
movq %rdi, %rsi
leaq 0x5c58(%rip), %rdi      # 0x80b0
xorl %eax, %eax
callq 0x20f0
leaq 0x5c75(%rip), %rdi      # 0x80db
callq 0x2080
leaq 0x5c8b(%rip), %rdi      # 0x80fd
callq 0x2080
leaq 0x5ca8(%rip), %rdi      # 0x8126
callq 0x2080
leaq 0x5caf(%rip), %rdi      # 0x8139
callq 0x2080
leaq 0x5cd1(%rip), %rdi      # 0x8167
callq 0x2080
leaq 0x5cf2(%rip), %rdi      # 0x8194
callq 0x2080
leaq 0x5d0f(%rip), %rdi      # 0x81bd
callq 0x2080
leaq 0x5d3b(%rip), %rdi      # 0x81f5
callq 0x2080
leaq 0x5d42(%rip), %rdi      # 0x8208
callq 0x2080
leaq 0x5d71(%rip), %rdi      # 0x8243
callq 0x2080
leaq 0x5d88(%rip), %rdi      # 0x8266
callq 0x2080
leaq 0x5dbb(%rip), %rdi      # 0x82a5
callq 0x2080
leaq 0x5de9(%rip), %rdi      # 0x82df
callq 0x2080
leaq 0x5dec(%rip), %rdi      # 0x82ee
callq 0x2080
leaq 0x5dfd(%rip), %rdi      # 0x830b
callq 0x2080
leaq 0x5e2f(%rip), %rdi      # 0x8349
callq 0x2080
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: clean_filename_ext
const char *clean_filename_ext(const char *filename) {

    char *dot = strrchr(filename, '.');

    *dot = '\0';

    if(!dot || dot == filename) return "";

    return filename;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x2e
popq %rsi
callq 0x2120
movb $0x0, (%rax)
cmpq %rbx, %rax
leaq 0x4de5(%rip), %rax      # 0x8434
cmovneq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_open
FILE* file_open(char *c_file, const char * c_mode){
	
	FILE* f_in;
	
	f_in = fopen(c_file, c_mode);
	if (!f_in) perror ("file_open");

	fseek(f_in, 0, SEEK_SET);
	
return f_in;
}

// Assembly:
pushq %rbx
callq 0x21f0
movq %rax, %rbx
testq %rax, %rax
je 0x36c3
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
movq %rbx, %rax
popq %rbx
retq
leaq 0x4fe6(%rip), %rdi      # 0x86b0
callq 0x2200
jmp 0x36b2
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_load
char* file_load(FILE* f_in) {
	
	size_t len = 0;
	ssize_t size = 0;
 	char *c_aux = NULL;
 	
 	/*Read one line*/
 	size = getline(&c_aux, &len, f_in);
 	if (size == -1) perror("file_load");

 	/*Copy line to c_buffer*/
 	char *c_buffer = (char*) malloc((size+1)*sizeof(char));
	strncpy(c_buffer, c_aux, size);

	c_buffer[size-1] = END_MARKER;
	c_buffer[size] = '\0';

	free(c_aux);

return c_buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rdx
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
movq %rsp, %rdi
andq $0x0, (%rdi)
callq 0x2240
movq %rax, %rbx
cmpq $-0x1, %rax
je 0x3787
movq %rbx, %rdi
incq %rdi
callq 0x76d0
movq %rax, %r14
movq (%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2060
movw $0x24, -0x1(%r14,%rbx)
movq %r15, %rdi
callq 0x77a6
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4f37(%rip), %rdi      # 0x86c5
callq 0x2200
jmp 0x374a
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: load_multiple_txt
char** load_multiple_txt(FILE* f_in, size_t *k, size_t *n) {

  int n_alloc = N_ALLOC;
	char **c_buffer = (char**) malloc(n_alloc*sizeof(char*));

	size_t i;
 	for(i=0; i<*k; i++){

		size_t len = 0; c_buffer[i] = NULL;		
		ssize_t size = getline(&c_buffer[i], &len, f_in);
		if (size == -1){
	      		free(c_buffer[i]);
			*k = i;
			break;		
		}
		c_buffer[i][size-1] = 0;

		(*n) += size;

		if(i==n_alloc-1){
			n_alloc+=N_ALLOC;
      			c_buffer = (char**) realloc(c_buffer, n_alloc*sizeof(char*));
		}
	}

return c_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movl $0x4000, %edi           # imm = 0x4000
callq 0x76d0
movq %rax, %r12
movl $0x800, %ebp            # imm = 0x800
xorl %r13d, %r13d
xorl %r14d, %r14d
cmpq (%rbx), %r14
jae 0x3835
andq $0x0, 0x10(%rsp)
leaq (%r12,%r13), %rdi
andq $0x0, (%r12,%r14,8)
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0x2240
movq (%r12,%r14,8), %rdi
cmpq $-0x1, %rax
je 0x382d
movb $0x0, -0x1(%rdi,%rax)
movq 0x8(%rsp), %rcx
addq %rax, (%rcx)
leal -0x1(%rbp), %eax
cltq
cmpq %rax, %r14
jne 0x3824
movslq %ebp, %rax
addl $0x800, %ebp            # imm = 0x800
leaq 0x4000(,%rax,8), %rsi
movq %r12, %rdi
callq 0x7878
movq %rax, %r12
incq %r14
addq $0x8, %r13
jmp 0x37c6
callq 0x77a6
movq %r14, (%rbx)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: load_multiple_fastq
char** load_multiple_fastq(FILE* f_in, size_t *k, size_t *n){

	int n_alloc = N_ALLOC;
	char **c_buffer = (char**) malloc(n_alloc*sizeof(char*));

  	size_t len = 0;
	char *buf = NULL;
	size_t i;
 	for(i=0; i<*k; i++){

		len = 0; buf = NULL;
		ssize_t size = getline(&buf, &len, f_in); // @'s line
		free(buf);
		if (size <= 1){
			*k = i;
			break;		
		}

		len = 0; c_buffer[i] = NULL;
		size = getline(&c_buffer[i], &len, f_in); // read line
		c_buffer[i][size-1] = 0;

    		(*n) += size;

		len = 0; buf = NULL;
		getline(&buf, &len, f_in); // +'s line
		free(buf);
		len = 0; buf = NULL;
		getline(&buf, &len, f_in); // @'s line
		free(buf);

		if(i==n_alloc-1){
			n_alloc+=N_ALLOC;
     			c_buffer = (char**) realloc(c_buffer, n_alloc*sizeof(char*));
		}
	}

return c_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %r15
movl $0x4000, %edi           # imm = 0x4000
callq 0x76d0
movq %rax, %r12
movl $0x800, %r13d           # imm = 0x800
xorl %ebx, %ebx
leaq 0x8(%rsp), %r14
leaq 0x10(%rsp), %rbp
xorl %ecx, %ecx
movq 0x20(%rsp), %rax
cmpq (%rax), %rcx
jae 0x3992
movq %rcx, 0x18(%rsp)
movq %r13, 0x30(%rsp)
andq $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x2240
movq %rax, %r13
movq 0x8(%rsp), %rdi
callq 0x77a6
cmpq $0x2, %r13
jl 0x3985
andq $0x0, 0x10(%rsp)
leaq (%r12,%rbx), %rdi
movq 0x18(%rsp), %r13
andq $0x0, (%r12,%r13,8)
movq %rbp, %rsi
movq %r15, %rdx
callq 0x2240
movq (%r12,%r13,8), %rcx
movb $0x0, -0x1(%rcx,%rax)
movq 0x28(%rsp), %rcx
addq %rax, (%rcx)
andq $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x2240
movq 0x8(%rsp), %rdi
callq 0x77a6
andq $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x2240
movq 0x8(%rsp), %rdi
callq 0x77a6
movq %r13, %rcx
movq 0x30(%rsp), %r13
leal -0x1(%r13), %eax
cltq
cmpq %rax, %rcx
jne 0x3979
movslq %r13d, %rax
addl $0x800, %r13d           # imm = 0x800
leaq 0x4000(,%rax,8), %rsi
movq %r12, %rdi
callq 0x7878
movq 0x18(%rsp), %rcx
movq %rax, %r12
incq %rcx
addq $0x8, %rbx
jmp 0x3883
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, (%rax)
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: load_multiple_fasta
char** load_multiple_fasta(FILE* f_in, size_t *k, size_t *n){

  int n_alloc = N_ALLOC;
	char **c_buffer = (char**) malloc(n_alloc*sizeof(char*));

	char *buf = NULL;
	size_t len = 0;

	getline(&buf, &len, f_in);// first sequence
	free(buf);

	size_t count=0;
	size_t i;
 	for(i=0; i<*k; i++){

		if(i!=count){
			*k = i;
			break;		
		}

		int c_alloc = 128;
		c_buffer[i] = (char*) malloc(c_alloc*sizeof(char));

		size_t p=0;
		len = 0; buf=NULL;
		while(getline(&buf, &len, f_in)!=-1){

			if(buf[0] == '>'){
				count++;
				break;
			}

			if(p+len>c_alloc){
				c_alloc += len+128;
				c_buffer[i] = (char*) realloc(c_buffer[i], sizeof(char) * c_alloc);
			}

			strcpy(&c_buffer[i][p], buf);
			p+=strlen(buf)-1;

			free(buf);
			buf=NULL; len=0;
		}

		free(buf);
		c_buffer[i][p] = 0;
		(*n) += p+1;

		if(i==n_alloc-1){
			n_alloc+=N_ALLOC;
      			c_buffer = (char**) realloc(c_buffer, n_alloc*sizeof(char*));
		}
	}

return c_buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
movl $0x4000, %edi           # imm = 0x4000
callq 0x76d0
movq %rax, %r12
movq %rsp, %rbx
andq $0x0, (%rbx)
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2240
movq (%rbx), %rdi
callq 0x77a6
movl $0x800, %r13d           # imm = 0x800
xorl %r14d, %r14d
xorl %eax, %eax
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
jae 0x3b22
cmpq %r14, %rax
jne 0x3b1a
movq %r13, 0x20(%rsp)
movl $0x80, %edi
callq 0x76d0
andq $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
movq %rax, (%r12,%r14,8)
movl $0x80, %ebp
xorl %r13d, %r13d
movq %rsp, %rdi
leaq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0x2240
movq (%rsp), %rsi
cmpq $-0x1, %rax
je 0x3ab5
cmpb $0x3e, (%rsi)
je 0x3aba
movq 0x8(%rsp), %rax
leaq (%rax,%r13), %rcx
movslq %ebp, %rdx
movq (%r12,%r14,8), %rdi
cmpq %rdx, %rcx
jbe 0x3a86
addl %eax, %ebp
addl $0x80, %ebp
movslq %ebp, %rsi
callq 0x7878
movq %rax, %rdi
movq %rax, (%r12,%r14,8)
movq (%rsp), %rsi
addq %r13, %rdi
callq 0x2070
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x20c0
addq %rax, %r13
decq %r13
movq %rbx, %rdi
callq 0x77a6
andq $0x0, (%rsp)
andq $0x0, 0x8(%rsp)
jmp 0x3a37
movq %r14, %rbx
jmp 0x3abe
leaq 0x1(%r14), %rbx
movq %rsi, %rdi
callq 0x77a6
movq (%r12,%r14,8), %rax
movb $0x0, (%rax,%r13)
movq 0x18(%rsp), %rcx
movq (%rcx), %rax
leaq 0x1(%r13,%rax), %rax
movq %rax, (%rcx)
movq 0x20(%rsp), %r13
leal -0x1(%r13), %eax
cltq
cmpq %rax, %r14
jne 0x3b0c
movslq %r13d, %rax
addl $0x800, %r13d           # imm = 0x800
leaq 0x4000(,%rax,8), %rsi
movq %r12, %rdi
callq 0x7878
movq %rax, %r12
movq %r14, %rax
incq %rax
movq %rbx, %r14
jmp 0x39fa
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_load_multiple
char** file_load_multiple(char* c_file, size_t *k, size_t *n) {

/* .ext
 * .txt   - strings per line
 * .fasta - strings separated by '>' line
 * .fastq - strings separated by four lines
 */

	FILE* f_in = file_open(c_file, "rb");
	if(!f_in) return 0;

	const char *type = get_filename_ext(c_file);
	char **c_buffer = NULL; // = (char**) malloc(k*sizeof(char*));

	if(*k==0) *k=INT_MAX;

	if(strcmp(type,"txt") == 0)
		c_buffer = load_multiple_txt(f_in, k, n);

	else if(strcmp(type,"fasta") == 0)
		c_buffer = load_multiple_fasta(f_in, k, n);

	else if(strcmp(type,"fastq") == 0)
		c_buffer = load_multiple_fastq(f_in, k, n);
	else{
		printf("Error: file not recognized (.txt, .fasta, .fastq)\n");
		return 0;
	}

	fclose(f_in);

return c_buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x4b83(%rip), %rsi      # 0x86cf
callq 0x36a4
testq %rax, %rax
je 0x3bb6
movq %rax, %rbx
movq %r12, %rdi
callq 0x360c
movq %rax, %r12
cmpq $0x0, (%r15)
jne 0x3b71
movq $0x7fffffff, (%r15)     # imm = 0x7FFFFFFF
leaq 0x4b5a(%rip), %rsi      # 0x86d2
movq %r12, %rdi
callq 0x2170
testl %eax, %eax
je 0x3bbb
leaq 0x4b4b(%rip), %rsi      # 0x86d6
movq %r12, %rdi
callq 0x2170
testl %eax, %eax
je 0x3bcb
leaq 0x4b3e(%rip), %rsi      # 0x86dc
movq %r12, %rdi
callq 0x2170
testl %eax, %eax
je 0x3bdb
leaq 0x4b41(%rip), %rdi      # 0x86f2
callq 0x2080
xorl %r14d, %r14d
jmp 0x3bf4
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3795
jmp 0x3be9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x39a4
jmp 0x3be9
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3847
movq %rax, %r14
movq %rbx, %rdi
callq 0x20b0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_text_write
int file_text_write(unsigned char *str, size_t n, char* c_file, const char* ext){

	FILE *f_out;
	char *c_out = (char*) malloc((strlen(c_file)+strlen(ext)+3)*sizeof(char));
	
	sprintf(c_out, "%s.%s", c_file, ext);
	f_out = file_open(c_out, "wb");
	
	size_t i;
	for(i=0; i<n;i++) if(str[i]) str[i]--;

	fwrite(str, sizeof(unsigned char), n, f_out);
	
	file_close(f_out);
	free(c_out);

return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x20c0
movq %rax, %r15
movq %r12, %rdi
callq 0x20c0
leaq (%r15,%rax), %rdi
addq $0x3, %rdi
callq 0x76d0
movq %rax, %r15
leaq 0x4a6e(%rip), %rsi      # 0x86ec
xorl %ebp, %ebp
movq %rax, %rdi
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x47b1(%rip), %rsi      # 0x8448
movq %r15, %rdi
callq 0x36a4
movq %rax, %r12
cmpq %rbp, %rbx
je 0x3cba
movb (%r14,%rbp), %al
testb %al, %al
je 0x3cb5
decb %al
movb %al, (%r14,%rbp)
incq %rbp
jmp 0x3ca2
pushq $0x1
popq %rsi
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x2280
movq %r12, %rdi
callq 0x36d1
movq %r15, %rdi
callq 0x77a6
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_text_int_write
int file_text_int_write(int_t *str, size_t n, char* c_file, const char* ext){

	FILE *f_out;
	char *c_out = (char*) malloc((strlen(c_file)+strlen(ext))*sizeof(char));
	
	sprintf(c_out, "%s.%s", c_file, ext);
	f_out = file_open(c_out, "wb");
	
	fwrite(str, sizeof(int_t), n, f_out);
	
	file_close(f_out);
	free(c_out);

return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x20c0
movq %rax, %r15
movq %r12, %rdi
callq 0x20c0
addq %rax, %r15
movq %r15, %rdi
callq 0x76d0
movq %rax, %r15
leaq 0x49c2(%rip), %rsi      # 0x86ec
movq %rax, %rdi
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x4707(%rip), %rsi      # 0x8448
movq %r15, %rdi
callq 0x36a4
movq %rax, %r12
pushq $0x4
popq %rsi
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x2280
movq %r12, %rdi
callq 0x36d1
movq %r15, %rdi
callq 0x77a6
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_text_read
int_t file_text_read(unsigned char** str, char* c_file, const char* ext){

	FILE *f_in;
	char *c_in = (char*) malloc((strlen(c_file)+strlen(ext))*sizeof(char));
	
	sprintf(c_in, "%s.%s", c_file, ext);
	f_in = file_open(c_in, "rb");

	fseek(f_in, 0L, SEEK_END);
	size_t size = ftell(f_in);
	rewind(f_in);

	int_t n = size/sizeof(unsigned char);

	*str = (unsigned char*) malloc(n*sizeof(unsigned char));
	fread(*str, sizeof(unsigned char), n, f_in);
	
	file_close(f_in);
	free(c_in);

return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20c0
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
addq %rax, %r14
movq %r14, %rdi
callq 0x76d0
movq %rax, %r14
leaq 0x4939(%rip), %rsi      # 0x86ec
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x4905(%rip), %rsi      # 0x86cf
movq %r14, %rdi
callq 0x36a4
movq %rax, %r15
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x21d0
movq %r15, %rdi
callq 0x2190
movq %rax, %r12
movq %r15, %rdi
callq 0x2110
movslq %r12d, %r12
movq %r12, %rdi
callq 0x76d0
movq %rax, (%rbx)
pushq $0x1
popq %rsi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2090
movq %r15, %rdi
callq 0x36d1
movq %r14, %rdi
callq 0x77a6
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/file.c
// Function: file_text_int_read
int_t file_text_int_read(int_t** str_int, char* c_file, const char* ext){

	FILE *f_in;
	char *c_in = (char*) malloc((strlen(c_file)+strlen(ext))*sizeof(char));
	
	sprintf(c_in, "%s.%s", c_file, ext);
	f_in = file_open(c_in, "rb");

	fseek(f_in, 0L, SEEK_END);
	size_t size = ftell(f_in);
	rewind(f_in);

	int_t n = size/sizeof(int_t);

	*str_int = (int_t*) malloc(n*sizeof(int_t));
	fread(*str_int, sizeof(int_t), n, f_in);
	
	file_close(f_in);
	free(c_in);

return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20c0
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
addq %rax, %r14
movq %r14, %rdi
callq 0x76d0
movq %rax, %r14
leaq 0x4880(%rip), %rsi      # 0x86ec
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x484c(%rip), %rsi      # 0x86cf
movq %r14, %rdi
callq 0x36a4
movq %rax, %r15
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x21d0
movq %r15, %rdi
callq 0x2190
movq %rax, %r12
movq %r15, %rdi
callq 0x2110
shrq $0x2, %r12
movslq %r12d, %r12
leaq (,%r12,4), %rdi
callq 0x76d0
movq %rax, (%rbx)
pushq $0x4
popq %rsi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2090
movq %r15, %rdi
callq 0x36d1
movq %r14, %rdi
callq 0x77a6
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: rank
int rank(char *T, char c, int i){

  int sum=0;
  int j;

  for(j=0; j<i; j++) if(T[j] <= c) sum++;
  int len = strlen(T);
  for(; j<len; j++) if(T[j] < c) sum++;

return sum;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %ebx
xorl %r15d, %r15d
cmpq %rax, %rbx
je 0x3f26
xorl %ecx, %ecx
cmpb %bpl, (%r14,%rax)
setle %cl
addl %ecx, %r15d
incq %rax
jmp 0x3f10
movq %r14, %rdi
callq 0x20c0
cltq
cmpq %rax, %rbx
jge 0x3f46
xorl %ecx, %ecx
cmpb %bpl, (%r14,%rbx)
setl %cl
addl %ecx, %r15d
incq %rbx
jmp 0x3f30
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: bwt_lyndon_suffix_order
int bwt_lyndon_suffix_order(char *T, int_t *LA, int n){

int p, r=1;
int i, s;

int_t size=1;
//base cases
LA[n-2]=size++;
LA[n-1]=size++;

for(s=n-3; s>=0; s--){

  /*steps 1 and 2*/
  p=r+1;
  for(i=s+1, r=0; T[i]!=0; i++)if(T[i]<=T[s])r++;
  for(; i<n; i++) if(T[i]<T[s])r++;
  
  T[p+s] = T[s]; //replace('$', T[s]);

  for(i=s; i<s+r; i++){
    T[i] = T[i+1];
    LA[i] = LA[i+1];
  }

  T[s+r] = 0; //END_MARKER;
  LA[s+r]=size++;
}

for(i=n-1; i>0; i--){
  int_t max=0;
  for(s=i-1; s>=0; s--){
    if(LA[s]<LA[i] && LA[s]>max) max = LA[s];
  }
  LA[i]-=max;
}

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq %edx, %rax
movabsq $0x200000001, %rcx      # imm = 0x200000001
movq %rcx, -0x8(%rsi,%rax,4)
leal -0x1(%rax), %ecx
movl %ecx, -0x20(%rsp)
leal -0x3(%rax), %ecx
addl $-0x2, %eax
leaq 0x1(%rdi), %r8
movq %r8, -0x10(%rsp)
leaq (%rax,%rdi), %r12
leaq 0x4(%rsi), %r9
movq %r9, -0x18(%rsp)
movslq %ecx, %r11
movl $0x3, %ecx
movl $0x1, %r8d
testl %r11d, %r11d
js 0x4244
movl %ecx, -0x1c(%rsp)
movl %r11d, %r13d
movq -0x18(%rsp), %rcx
leaq (%rcx,%r13,4), %r14
movq -0x10(%rsp), %rcx
leaq (%rcx,%r13), %r15
xorl %r10d, %r10d
movq %rax, -0x8(%rsp)
movl %eax, %ecx
movq %r12, %rbx
movq %r12, %r9
xorl %ebp, %ebp
movb (%r15,%r10), %r12b
testb %r12b, %r12b
je 0x41ca
xorl %eax, %eax
cmpb (%rdi,%r13), %r12b
setle %al
addl %eax, %ebp
incq %r10
incq %r9
incl %ecx
jmp 0x41ac
movq %rbx, %r12
cmpl %edx, %ecx
jge 0x41e9
movb (%r9), %al
xorl %r10d, %r10d
cmpb (%rdi,%r13), %al
setl %r10b
addl %r10d, %ebp
incq %r9
incl %ecx
jmp 0x41cd
movb (%rdi,%r13), %al
leal (%r8,%r13), %ecx
incl %ecx
movslq %ecx, %rcx
movb %al, (%rdi,%rcx)
movl %ebp, %ecx
addq %r13, %rcx
xorl %r9d, %r9d
leal (%r11,%r9), %eax
cmpl %eax, %ecx
jle 0x4220
movb (%r15,%r9), %al
movb %al, -0x1(%r15,%r9)
movl (%r14,%r9,4), %eax
movl %eax, -0x4(%r14,%r9,4)
incq %r9
jmp 0x4201
movb $0x0, (%rdi,%rcx)
movl -0x1c(%rsp), %eax
movl %eax, (%rsi,%rcx,4)
movl %eax, %ecx
incl %ecx
decq %r11
decq %r12
movq -0x8(%rsp), %rax
decl %eax
movl %ebp, %r8d
jmp 0x4178
movl -0x20(%rsp), %eax
testl %eax, %eax
jle 0x4276
xorl %ecx, %ecx
movq %rax, %rdx
testl %edx, %edx
jle 0x426e
movl -0x4(%rsi,%rdx,4), %edi
decq %rdx
cmpl %ecx, %edi
movl %ecx, %r8d
cmovgl %edi, %r8d
cmpl (%rsi,%rax,4), %edi
cmovll %r8d, %ecx
jmp 0x4251
subl %ecx, (%rsi,%rax,4)
decq %rax
jmp 0x4248
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: bwt_lyndon_text_order
int bwt_lyndon_text_order(char *T, int_t *LA, int n){

  int p, r=1;
  int i, s;
  
  //base cases
  LA[n-2]=n-1;
  LA[n-1]=n-2;
  
  for(s=n-3; s>=0; s--){
  
    /*steps 1 and 2*/
    p=r+1;
    for(i=s+1, r=0; T[i]!=0; i++)if(T[i]<=T[s])r++;
    for(; i<n; i++) if(T[i]<T[s])r++;
    
    T[p+s] = T[s]; //replace('$', T[s]);
    
    for(i=s; i<s+r; i++){
      T[i] = T[i+1];
    }
    
    for(i=s+1; i<n; i++){
      if(LA[i]<=s+r) LA[i]--; 
    }
    
    T[s+r] = 0; //END_MARKER;
    LA[s]=s+r;
  }
  
  //LA = ISA
  for(i=0; i<n; i++){
  //find the next suffix smaller than T[i,n]
    for(s=i+1; s<n; s++){
      if(LA[s]<LA[i]) break;
    }
    LA[i]=s-i;
  }

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leal -0x1(%rdx), %ecx
leal -0x2(%rdx), %eax
movslq %eax, %r8
movl %ecx, (%rsi,%r8,4)
movslq %edx, %rcx
movl %r8d, -0x4(%rsi,%rcx,4)
addl $-0x3, %ecx
leaq (%rdi,%rax), %r12
leaq 0x1(%rdi), %r8
movq %r8, -0x10(%rsp)
leaq (%rsi,%rax,4), %r10
movl $0x1, %r15d
testl %ecx, %ecx
js 0x438a
movl %ecx, %ebx
movq -0x10(%rsp), %r8
leaq (%r8,%rbx), %r14
xorl %r11d, %r11d
movl %eax, %ebp
movq %r12, -0x8(%rsp)
movq %rax, %r13
movb (%rdi,%r13), %r9b
testb %r9b, %r9b
je 0x4314
xorl %r8d, %r8d
cmpb (%rdi,%rbx), %r9b
setle %r8b
addl %r8d, %r11d
incq %r13
incq %r12
incl %ebp
jmp 0x42dc
movb (%r12), %r8b
xorl %r9d, %r9d
cmpb (%rdi,%rbx), %r8b
setl %r9b
addl %r9d, %r11d
incq %r12
incl %ebp
cmpl %edx, %ebp
jl 0x42fd
movb (%rdi,%rbx), %r8b
leal (%rcx,%r15), %r9d
incl %r9d
movslq %r9d, %r9
movb %r8b, (%rdi,%r9)
movl %r11d, %r8d
movq %rbx, %r15
addq %r8, %r15
movl %ecx, %ebp
movq -0x8(%rsp), %r12
cmpl %ebp, %r15d
jle 0x434d
movb (%r14), %r8b
movb %r8b, -0x1(%r14)
incq %r14
incl %ebp
jmp 0x433a
xorl %r14d, %r14d
leal (%rax,%r14), %r8d
cmpl %edx, %r8d
jge 0x436d
movl (%r10,%r14,4), %ebp
cmpl %r15d, %ebp
jg 0x4368
decl %ebp
movl %ebp, (%r10,%r14,4)
incq %r14
jmp 0x4350
movb $0x0, (%rdi,%r15)
movl %r15d, (%rsi,%rbx,4)
decl %ecx
decq %rax
decq %r12
addq $-0x4, %r10
movl %r11d, %r15d
jmp 0x42bc
xorl %ecx, %ecx
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
leaq 0x4(%rsi), %rdi
cmpq %rax, %rcx
je 0x43d3
leaq 0x1(%rcx), %r8
movl %ecx, %r9d
movq %rdi, %r10
incl %r9d
cmpl %edx, %r9d
jge 0x43c0
movl (%r10), %r11d
addq $0x4, %r10
cmpl (%rsi,%rcx,4), %r11d
jge 0x43a9
jmp 0x43c3
movl %edx, %r9d
subl %ecx, %r9d
movl %r9d, (%rsi,%rcx,4)
addq $0x4, %rdi
movq %r8, %rcx
jmp 0x439a
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: bwt_inplace
int bwt_inplace(char *T, int n){

  int p, r=1;
  int i, s;

  for(s=n-3; s>=0; s--){

    p = r+1;//  p = find_sentinel(&T[s]);
    r = rank(&T[s+1], T[s], p);
  
    T[p+s] = T[s]; //replace('$', T[s]);

    for(i=s; i<s+r; i++) 
      T[i] = T[i+1];

    T[s+r] = 0; //END_MARKER;
  }

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
addl $-0x3, %ebx
leaq 0x1(%rdi), %r15
pushq $0x1
popq %r13
testl %ebx, %ebx
js 0x445b
movl %ebx, %eax
leaq (%r15,%rax), %r12
leal 0x1(%r13), %edx
leaq (%r14,%rax), %rdi
incq %rdi
movsbl -0x1(%rdi), %ebp
movl %ebp, %esi
callq 0x3ef8
leal (%rbx,%r13), %ecx
incl %ecx
movslq %ecx, %rcx
movb %bpl, (%r14,%rcx)
movl %eax, %ecx
addl %ebx, %ecx
movl %ebx, %edx
cmpl %edx, %ecx
jle 0x444c
movb (%r12), %sil
movb %sil, -0x1(%r12)
incq %r12
incl %edx
jmp 0x4438
movslq %ecx, %rcx
movb $0x0, (%r14,%rcx)
decl %ebx
movl %eax, %r13d
jmp 0x4405
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: bwt_reverse
char* bwt_reverse(char *bwt, int n){

  char* rev = (char*) malloc((n+1)*sizeof(char));
  int p = 0;

  //backward reconstruction
  int s;
  for(s=n-2; s>=0; s--){

    rev[s] = bwt[p];
    p = rank(bwt, rev[s], p);
  }

  rev[n-1] = 0; //END_MARKER;
  rev[n] = '\0';

return rev;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leal 0x1(%rbx), %eax
movslq %eax, %rdi
callq 0x76d0
movq %rax, %r15
leal -0x2(%rbx), %ebp
xorl %eax, %eax
testl %ebp, %ebp
js 0x44a9
movslq %eax, %rdx
movsbl (%r14,%rdx), %esi
movl %ebp, %eax
movb %sil, (%r15,%rax)
movq %r14, %rdi
callq 0x3ef8
decl %ebp
jmp 0x448b
movslq %ebx, %rax
andw $0x0, -0x1(%r15,%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: get_count
void get_count(char* T, int *C){

  int i;
  for(i=0; i<UCHAR_SIZE; i++) C[i]=0;
  int size = strlen(T);
  for(i=0; i<size; i++) C[(int)T[i]]++;  
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
cmpq $0x100, %rax            # imm = 0x100
je 0x44de
andl $0x0, (%rbx,%rax,4)
incq %rax
jmp 0x44cd
movq %r14, %rdi
callq 0x20c0
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %rcx, %rax
je 0x44ff
movsbq (%r14,%rcx), %rdx
incl (%rbx,%rdx,4)
incq %rcx
jmp 0x44ed
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: get_bucket
void get_bucket(int *C, int *B){

  int sum=0;
  int i;
  for(i=0; i<UCHAR_SIZE; i++){
      B[i] = sum;
      sum+=C[i];
  }
}

// Assembly:
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x100, %rax            # imm = 0x100
je 0x451e
movl %ecx, (%rsi,%rax,4)
addl (%rdi,%rax,4), %ecx
incq %rax
jmp 0x450b
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/bwt.c
// Function: find_sentinel
int find_sentinel(char *T){

  int i;
  for(i=0; i<strlen(T); i++)
    if(T[i] == 0) return i; //END_MARKER

return -1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x20c0
movq %rax, %rcx
xorl %edx, %edx
pushq $-0x1
popq %rax
cmpq %rdx, %rcx
jbe 0x4542
cmpb $0x0, (%rbx,%rdx)
je 0x4540
incq %rdx
jmp 0x4530
movl %edx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/suffix-array.c
// Function: suffix_array_write
int suffix_array_write(int_t *SA, int_t n, char* c_file, const char* ext){

  FILE *f_out;
  char *c_out = malloc((strlen(c_file)+strlen(ext)+3)*sizeof(char));
  
  sprintf(c_out, "%s.%s", c_file, ext);
  f_out = file_open(c_out, "wb");
  
  fwrite(SA, sizeof(int_t), n, f_out);
  
  file_close(f_out);
  free(c_out);

return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x20c0
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
leaq (%r14,%rax), %rdi
addq $0x3, %rdi
callq 0x76d0
movq %rax, %r14
leaq 0x416b(%rip), %rsi      # 0x86ec
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x3eb0(%rip), %rsi      # 0x8448
movq %r14, %rdi
callq 0x36a4
movq %rax, %r15
movslq %ebp, %rdx
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %rax, %rcx
callq 0x2280
movq %r15, %rdi
callq 0x36d1
movq %r14, %rdi
callq 0x77a6
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/suffix-array.c
// Function: suffix_array_read
int_t suffix_array_read(int_t** SA, char* c_file, const char* ext){

  FILE *f_in;
  char *c_in = malloc((strlen(c_file)+strlen(ext)+3)*sizeof(char));

  sprintf(c_in, "%s.%s", c_file, ext);
  f_in = file_open(c_in, "rb");

  fseek(f_in, 0L, SEEK_END);
  size_t size = ftell(f_in);
  rewind(f_in);
  
  int_t n = size/sizeof(int_t);

  *SA = (int_t*) malloc(n*sizeof(int_t));
  fread(*SA, sizeof(int_t), n, f_in);

  file_close(f_in);
  free(c_in);

return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20c0
movq %rax, %r14
movq %r15, %rdi
callq 0x20c0
leaq (%r14,%rax), %rdi
addq $0x3, %rdi
callq 0x76d0
movq %rax, %r14
leaq 0x40e1(%rip), %rsi      # 0x86ec
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x40ad(%rip), %rsi      # 0x86cf
movq %r14, %rdi
callq 0x36a4
movq %rax, %r15
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x21d0
movq %r15, %rdi
callq 0x2190
movq %rax, %r12
movq %r15, %rdi
callq 0x2110
shrq $0x2, %r12
movslq %r12d, %r12
leaq (,%r12,4), %rdi
callq 0x76d0
movq %rax, (%rbx)
pushq $0x4
popq %rsi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2090
movq %r15, %rdi
callq 0x36d1
movq %r14, %rdi
callq 0x77a6
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_pair_init
int stack_pair_init(stack_pair *S, int_t size){

	S->array = (s_pair*) malloc(size*sizeof(s_pair));	
	if(S->array==NULL) return 0;

	S->size = size;
	S->top = 0;

return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %rdi
shlq $0x3, %rdi
callq 0x76d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x4913
movl %ebp, 0xc(%rbx)
andl $0x0, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_pair_push
void stack_pair_push(stack_pair *S, int_t i, int_t j){

	if(S->top==S->size){
		S->size += STACK_SIZE;
		S->array = (s_pair*) realloc(S->array, S->size*sizeof(s_pair));
	} 

	S->array[S->top].i = i;
	S->array[S->top].j = j;

	(S->top)++;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
movq (%rdi), %rax
cmpl 0xc(%rdi), %ecx
jne 0x4951
addl $0x500, %ecx            # imm = 0x500
movl %ecx, 0xc(%rbx)
movslq %ecx, %rsi
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x7878
movq %rax, (%rbx)
movl 0x8(%rbx), %ecx
movslq %ecx, %rcx
movl %r14d, (%rax,%rcx,8)
movl %ebp, 0x4(%rax,%rcx,8)
incl %ecx
movl %ecx, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_pair_print
void stack_pair_print(stack_pair *S){

	int_t i;

	for(i=S->top-1; i>0; i--)
		printf("%d\t(%d, %d)\n", i, S->array[i].i, S->array[i].j);
	
	printf("%d\t(%d, %d)\n", i, S->array[i].i, S->array[i].j);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
movl 0x8(%rdi), %ebp
movq %rbp, %r12
shlq $0x20, %r12
addq %r13, %r12
leal -0x1(%rbp), %ebx
leaq 0x3dbe(%rip), %r15      # 0x8764
movq (%r14), %rax
cmpl $0x2, %ebp
jl 0x49cb
movl (%rax,%rbx,8), %edx
movl 0x4(%rax,%rbx,8), %ecx
movq %r15, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq 0x20f0
decl %ebp
addq %r13, %r12
decq %rbx
jmp 0x49a6
sarq $0x1d, %r12
movl (%rax,%r12), %edx
movl 0x4(%rax,%r12), %ecx
leaq 0x3d85(%rip), %rdi      # 0x8764
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_init
int stack_init(stack *S, int_t size){

	S->array = (int_t*) malloc(size*sizeof(int_t));	
	if(S->array==NULL) return 0;

	S->size = size;
	S->top = 0;

return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %rdi
shlq $0x2, %rdi
callq 0x76d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x4a19
movl %ebp, 0xc(%rbx)
andl $0x0, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_push
void stack_push(stack *S, int_t i){

	if(S->top==S->size){
		S->size += STACK_SIZE;
		S->array = (int_t*) realloc(S->array, S->size*sizeof(int_t));
	} 

	S->array[S->top] = i;

	(S->top)++;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %ecx
movq (%rdi), %rax
cmpl 0xc(%rdi), %ecx
jne 0x4a53
addl $0x500, %ecx            # imm = 0x500
movl %ecx, 0xc(%rbx)
movslq %ecx, %rsi
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x7878
movq %rax, (%rbx)
movl 0x8(%rbx), %ecx
movslq %ecx, %rcx
movl %ebp, (%rax,%rcx,4)
incl 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: stack_print
void stack_print(stack *S){

	int_t i;

	for(i=S->top-1; i>0; i--)
		printf("%d\t(%d)\n", i, S->array[i]);
	
	printf("%d\t(%d)\n", i, S->array[i]);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
movl 0x8(%rdi), %ebp
movq %rbp, %r13
shlq $0x20, %r13
addq %r12, %r13
leal -0x1(%rbp), %r14d
leaq 0x3cc5(%rip), %r15      # 0x8771
movq (%rbx), %rax
cmpl $0x2, %ebp
jl 0x4acf
movl (%rax,%r14,4), %edx
movq %r15, %rdi
movl %r14d, %esi
xorl %eax, %eax
callq 0x20f0
decl %ebp
addq %r12, %r13
decq %r14
jmp 0x4aac
sarq $0x1e, %r13
movl (%rax,%r13), %edx
leaq 0x3c93(%rip), %rdi      # 0x8771
movl %r14d, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20f0
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: find_symbol
unsigned char find_symbol(int_t pos, int_t* F, unsigned char* Alpha, int_t n){

	//binary search
	int_t a=0;
	int_t b=n-2;

	int_t i=0;
	while(a<=b){
		i=a+(b-a)/2;
		if(pos>=F[i] && pos<F[i+1]){
			return Alpha[i];
		}
		if(pos>F[i]) a=i+1;
		else b=i-1;
	}

	return 0;
}

// Assembly:
movq %rdx, %r8
addl $-0x2, %ecx
xorl %r9d, %r9d
pushq $0x2
popq %r10
movl %ecx, %eax
subl %r9d, %eax
jl 0x4dba
cltd
idivl %r10d
addl %r9d, %eax
movslq %eax, %r11
movl (%rsi,%r11,4), %edx
cmpl %edi, %edx
jg 0x4da7
cmpl %edi, 0x4(%rsi,%r11,4)
jg 0x4dbd
leal 0x1(%rax), %r11d
decl %eax
cmpl %edi, %edx
cmovll %r11d, %r9d
cmovll %ecx, %eax
movl %eax, %ecx
jmp 0x4d87
xorl %eax, %eax
retq
movb (%r8,%r11), %al
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: compute_nsv
int compute_nsv(int_t* NSV, int_t *array, int_t n){

	stack S;
	S.top=0; S.size=STACK_SIZE;
	stack_init(&S,STACK_SIZE);
	stack_push(&S, 0);//(idx, value)=(pos, step)

	int_t i;
  for(i=n-1; i>0; i--){

    NSV[i] = stack_top(&S);
		
    if(array[i-1]>array[i]){
      stack_push(&S, i);
    }
    else{
      //while(stack_top(&S).j >= array[i-1]) stack_pop(&S);
      while(array[stack_top(&S)] >= array[i-1]) stack_pop(&S);
    }
  }

  NSV[0] = stack_top(&S);
  free(S.array);

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0x50000000000, %rax    # imm = 0x50000000000
leaq 0x8(%rsp), %r15
movq %rax, 0x8(%r15)
movq %r15, %rdi
movl $0x500, %esi            # imm = 0x500
callq 0x49f6
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
callq 0x4a22
movl %ebp, %ecx
movq 0x8(%rsp), %rdi
movslq 0x10(%rsp), %rax
movl -0x4(%rdi,%rax,4), %edx
cmpl $0x2, %ecx
jl 0x54cf
leaq -0x1(%rcx), %r12
movl %r12d, %esi
shlq $0x2, %rsi
movl %edx, (%rbx,%rsi)
movl -0x8(%r14,%rcx,4), %ecx
cmpl (%r14,%rsi), %ecx
jle 0x54af
movq %r15, %rdi
movl %r12d, %esi
callq 0x4a22
movq %r12, %rcx
jmp 0x5473
movslq %eax, %rdx
movslq -0x4(%rdi,%rdx,4), %rdx
cmpl %ecx, (%r14,%rdx,4)
jl 0x54c6
subl $0x1, %eax
cmovbl %r13d, %eax
jmp 0x54af
movl %eax, 0x10(%rsp)
movq %r12, %rcx
jmp 0x5473
movl %edx, (%rbx)
callq 0x77a6
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/lib/lyndon-array.c
// Function: compute_lyndon_max_lyn
int compute_lyndon_max_lyn(unsigned char *s, int_t *A, int_t n){

int_t j;

	#if TIME
		time_t t_total= 0;clock_t c_total= 0;
		tstart(&t_total, &c_total); 
	#endif

	int_t *LA = A;
	for(j=0; j < n-1; j++){	

		int_t i = j+1;
		int_t max = j+1;

		while(i<n){

			int_t k = 0;
			while(s[j+k]==s[i+k]) k++;

			if(s[j+k]<s[i+k]){
				i+=k+1;
				max=i;
			}
			else{
				LA[j]=max-j;	
				break;
			}
		}
	}
	LA[n-1]=1;

	#if TIME
		printf("TOTAL:\n");
		fprintf(stderr,"%.6lf\n", tstop(t_total, c_total)); 
	#endif

return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x10(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
callq 0x4af6
leal -0x1(%r14), %eax
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
cmpq %rcx, %rdx
je 0x5640
leaq 0x1(%rdx), %rsi
movl %esi, %r8d
cmpl %r14d, %r8d
jge 0x563b
movl %r8d, %edi
movl %r8d, %r9d
movq %r15, %r10
movb (%r10,%r9), %r11b
incl %r8d
leaq 0x1(%r10), %r12
cmpb %r11b, (%r10,%rdx)
movq %r12, %r10
je 0x5620
jb 0x5612
subl %edx, %edi
movl %edi, (%rbx,%rdx,4)
movq %rsi, %rdx
jmp 0x5606
cltq
movl $0x1, (%rbx,%rax,4)
leaq 0x2f89(%rip), %rdi      # 0x85d9
callq 0x2080
movq 0x699c(%rip), %rax      # 0xbff8
movq (%rax), %rbx
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x4b1a
leaq 0x2d92(%rip), %rsi      # 0x8407
movq %rbx, %rdi
movb $0x1, %al
callq 0x2180
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/external/sacak-lyndon.c
// Function: getBuckets_k
void getBuckets_k(int_t *s, 
  int_t *bkt, int_t n,
  unsigned int K, int end, int cs) { 
  int_t i, sum=0;
  
  // clear all buckets .
  for(i=0; i<K; i++) bkt[i]=0; 
  
  // compute the size of each bucket .
  for(i=0; i<n; i++) bkt[chr(i)]++; 
  
  for(i=0; i<K; i++) { 
    sum+=bkt[i]; 
    bkt[i]=end ? sum-1 : sum-bkt[i]; 
  }
}

// Assembly:
movl %ecx, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x5e8d
andl $0x0, (%rsi,%rcx,4)
incq %rcx
jmp 0x5e7f
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
cmpq %rcx, %rdx
je 0x5eb6
cmpl $0x4, %r9d
jne 0x5ea5
movl (%rdi,%rcx,4), %r10d
jmp 0x5eaa
movzbl (%rdi,%rcx), %r10d
movslq %r10d, %r10
incl (%rsi,%r10,4)
incq %rcx
jmp 0x5e94
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x5ed9
movl (%rsi,%rcx,4), %edi
testl %r8d, %r8d
leal -0x1(%rdi,%rdx), %r9d
cmovel %edx, %r9d
addl %edi, %edx
movl %r9d, (%rsi,%rcx,4)
incq %rcx
jmp 0x5eba
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/external/sacak-lyndon.c
// Function: putSuffix0
void putSuffix0(int_t *SA, 
  int_t *s, int_t *bkt, 
  int_t n, unsigned int K, int_t n1, int cs) {
  int_t i, j;

  // find the end of each bucket.
  getBuckets_k(s, bkt, n, K, true, cs);

  // put the suffixes into their buckets.
  for(i=n1-1; i>0; i--) {
    j=SA[i]; SA[i]=0;
    SA[bkt[chr(j)]--]=j;
  }
  SA[0]=n-1; // set the single sentinel suffix.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r13d
movl %r8d, %eax
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl 0x40(%rsp), %ebp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movl %ecx, %edx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5e7b
movl %r13d, %eax
cmpl $0x2, %eax
jl 0x5f4d
movl -0x4(%r14,%rax,4), %ecx
andl $0x0, -0x4(%r14,%rax,4)
movslq %ecx, %rdx
cmpl $0x4, %ebp
jne 0x5f31
movl (%r12,%rdx,4), %edx
jmp 0x5f36
movzbl (%r12,%rdx), %edx
movslq %edx, %rdx
movslq (%r15,%rdx,4), %rsi
leal -0x1(%rsi), %edi
movl %edi, (%r15,%rdx,4)
movl %ecx, (%r14,%rsi,4)
decq %rax
jmp 0x5f13
decl %ebx
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/external/sacak-lyndon.c
// Function: induceSAl0
void induceSAl0(int_t *SA,
  int_t *s, int_t *bkt,
  int_t n, unsigned int K, int_t suffix, int cs) {
  int_t i, j;

  // find the head of each bucket.
  getBuckets_k(s, bkt, n, K, false, cs);

  bkt[0]++; // skip the virtual sentinel.
  for(i=0; i<n; i++)
    if(SA[i]>0) {
      j=SA[i]-1;
      if(chr(j)>=chr(j+1)) {
        SA[bkt[chr(j)]]=j;
        bkt[chr(j)]++;
        if(!suffix && i>0) SA[i]=0;
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, 0x4(%rsp)
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rdx, %rsi
movl %ecx, %edx
movl %r8d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x5e7b
movl 0x4(%rsp), %esi
incl (%r15)
testl %r14d, %r14d
cmovlel %ebx, %r14d
cmpq %rbx, %r14
je 0x6010
movslq (%r13,%rbx,4), %rcx
testq %rcx, %rcx
jle 0x600b
leal -0x1(%rcx), %eax
cmpl $0x4, %ebp
jne 0x5fd7
movslq (%r12,%rax,4), %rdx
cmpl (%r12,%rcx,4), %edx
jl 0x600b
movslq (%r15,%rdx,4), %rcx
movl %eax, (%r13,%rcx,4)
movl (%r12,%rax,4), %eax
jmp 0x5ff0
movzbl (%r12,%rax), %edx
cmpb (%r12,%rcx), %dl
jb 0x600b
movslq (%r15,%rdx,4), %rcx
movl %eax, (%r13,%rcx,4)
movzbl (%r12,%rax), %eax
testl %esi, %esi
setne %cl
cltq
incl (%r15,%rax,4)
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x600b
andl $0x0, (%r13,%rbx,4)
incq %rbx
jmp 0x5fa7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/external/sacak-lyndon.c
// Function: induceSAs0
void induceSAs0(int_t *SA,
  int_t *s, int_t *bkt,
  int_t n, unsigned int K, int_t suffix, int cs) {
  int_t i, j;

  // find the end of each bucket.
  getBuckets_k(s, bkt, n, K, true, cs);

  for(i=n-1; i>0; i--)
    if(SA[i]>0) {
      j=SA[i]-1;
      if(chr(j)<=chr(j+1) && bkt[chr(j)]<i) {
        SA[bkt[chr(j)]]=j;
        bkt[chr(j)]--;
        if(!suffix) SA[i]=0;
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %r8d, %eax
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movl %ecx, %edx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5e7b
leal -0x1(%r14), %eax
cmpl $0x2, %r14d
jl 0x60c5
movslq (%r13,%rax,4), %rdx
testq %rdx, %rdx
jle 0x60bd
leal -0x1(%rdx), %ecx
cmpl $0x4, %ebp
jne 0x608f
movslq (%r12,%rcx,4), %rsi
cmpl (%r12,%rdx,4), %esi
jg 0x60bd
movslq (%r15,%rsi,4), %rdx
cmpl %eax, %edx
jge 0x60bd
movl %ecx, (%r13,%rdx,4)
movl (%r12,%rcx,4), %ecx
jmp 0x60ac
movzbl (%r12,%rcx), %esi
cmpb (%r12,%rdx), %sil
ja 0x60bd
movslq (%r15,%rsi,4), %rdx
cmpl %eax, %edx
jge 0x60bd
movl %ecx, (%r13,%rdx,4)
movzbl (%r12,%rcx), %ecx
movslq %ecx, %rcx
decl (%r15,%rcx,4)
testl %ebx, %ebx
jne 0x60bd
andl $0x0, (%r13,%rax,4)
decl %r14d
decq %rax
jmp 0x605a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]lyndon-array/external/sacak-lyndon.c
// Function: induceSAs0_LA
void induceSAs0_LA(int_t *SA, int_t *LA,
  int_t *s, int_t *bkt,
  int_t n, unsigned int K, int_t suffix, int cs) {
  int_t i, j;

  // find the end of each bucket.
  getBuckets_k(s, bkt, n, K, true, cs);

  for(i=n-1; i>0; i--){

		j=SA[i];
		if(!LA[j]){// LA[j]=1;
				int_t l=j+1;
				//while(LA[l++]!=0);
				//LA[j]=l-j-1;
				while(LA[l]!=0) l+=LA[l];//jumping
				LA[j]=l-j;
		}

    if(SA[i]>0) {

      j=SA[i]-1;
      if(chr(j)<=chr(j+1) && bkt[chr(j)]<i) {
        SA[bkt[chr(j)]]=j;
        bkt[chr(j)]--;
        if(!suffix) SA[i]=0;
      }
    }
	}

	LA[n-1]=1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl 0x48(%rsp), %ebp
pushq $0x1
popq %r8
movq %rdx, %rdi
movq %rcx, %rsi
movl %ebx, %edx
movl %r9d, %ecx
movl %ebp, %r9d
callq 0x5e7b
movl 0x40(%rsp), %r9d
decl %ebx
movq %rbx, %rax
testl %eax, %eax
jle 0x61ac
movl (%r13,%rax,4), %edx
movslq %edx, %rcx
cmpl $0x0, (%r14,%rcx,4)
jne 0x614a
leal 0x1(%rdx), %edi
movl %edi, %esi
movslq %edi, %rdi
movl (%r14,%rdi,4), %r8d
leal (%r8,%rsi), %edi
testl %r8d, %r8d
jne 0x612d
subl %edx, %esi
movl %esi, (%r14,%rcx,4)
movl (%r13,%rax,4), %edx
testl %edx, %edx
jle 0x61a4
leal -0x1(%rdx), %ecx
movl %edx, %edx
cmpl $0x4, %ebp
jne 0x6175
movslq (%r12,%rcx,4), %rsi
cmpl (%r12,%rdx,4), %esi
jg 0x61a4
movslq (%r15,%rsi,4), %rdx
cmpl %eax, %edx
jge 0x61a4
movl %ecx, (%r13,%rdx,4)
movl (%r12,%rcx,4), %ecx
jmp 0x6192
movzbl (%r12,%rcx), %esi
cmpb (%r12,%rdx), %sil
ja 0x61a4
movslq (%r15,%rsi,4), %rdx
cmpl %eax, %edx
jge 0x61a4
movl %ecx, (%r13,%rdx,4)
movzbl (%r12,%rcx), %ecx
movslq %ecx, %rcx
decl (%r15,%rcx,4)
testl %r9d, %r9d
jne 0x61a4
andl $0x0, (%r13,%rax,4)
decq %rax
jmp 0x6113
movslq %ebx, %rax
movl $0x1, (%r14,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq