LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/suffix_array.c
// Function: suffix_array_read
int_t* suffix_array_read(int_t n, char* c_file, const char* ext){

  FILE *f_in;
  char *c_in = malloc((strlen(c_file)+strlen(ext))*sizeof(char));
  
  sprintf(c_in, "%s.%s", c_file, ext);
  f_in = file_open(c_in, "rb");
  
  int_t *SA = (int_t*) malloc(n*sizeof(int_t));
  size_t e = fread(SA, sizeof(int_t), n, f_in);
  if(e!=n) {perror(__func__); exit(1);}
  
  file_close(f_in);
  free(c_in);

return SA;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20d0
movq %rax, %r14
movq %r15, %rdi
callq 0x20d0
addq %rax, %r14
movq %r14, %rdi
callq 0x9fd2
movq %rax, %r14
leaq 0x636f(%rip), %rsi      # 0xb9b9
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x5f91(%rip), %rsi      # 0xb5f2
movq %r14, %rdi
callq 0x4393
movq %rax, %r12
leaq (,%rbx,8), %rdi
callq 0x9fd2
movq %rax, %r15
movl $0x8, %esi
movq %rax, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x20a0
cmpq %rbx, %rax
jne 0x56b3
movq %r12, %rdi
callq 0x43b7
movq %r14, %rdi
callq 0xa089
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x2468
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/suffix_array.c
// Function: suffix_array_print
int_t suffix_array_print(unsigned char *T, int_t *SA, size_t n, int cs){

int_t i;
  for(i=0; i<n; i++){

    printf("%" PRIdN ") %" PRIdN "\t", i, SA[i]);
  
    int_t j=SA[i];
    for(j=SA[i]; (j<SA[i]+5); j++)
      printf("%" PRIdN " ", chr(j));
    printf("\n");
  }

return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
testq %rdx, %rdx
je 0x5739
movl %ecx, %ebx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x6300(%rip), %rbp      # 0xb9db
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdx
leaq 0x62e8(%rip), %rdi      # 0xb9d1
movq %r13, %rsi
xorl %eax, %eax
callq 0x20f0
movq (%r15,%r13,8), %r14
decq %r14
cmpl $0x8, %ebx
jne 0x5706
movq 0x8(%r12,%r14,8), %rsi
jmp 0x570c
movzbl 0x1(%r12,%r14), %esi
movq %rbp, %rdi
xorl %eax, %eax
callq 0x20f0
movq (%r15,%r13,8), %rax
addq $0x4, %rax
incq %r14
cmpq %rax, %r14
jl 0x56fa
movl $0xa, %edi
callq 0x2040
incq %r13
cmpq (%rsp), %r13
jne 0x56de
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/suffix_array.c
// Function: sleq
int_t sleq(unsigned char *T, int_t a, int_t b, size_t n, int cs, unsigned char sentinel) {

  size_t i;

  for(i=0; i<n; i++){

          if (chr(a) < chr(b))
      return 1;
          else if (chr(a) > chr(b))
                  return 0;
    else if(chr(a)==sentinel && chr(b)==sentinel){// $_i < $_j iff i < j
      if(a < b) 
        return 1;
      else  
        return 0;
    }
    a++;
    b++;
        }

return 1;
}

// Assembly:
movl $0x1, %eax
testq %rcx, %rcx
je 0x57e8
movzbl %r9b, %r9d
cmpl $0x8, %r8d
jne 0x576b
movq (%rdi,%rsi,8), %r10
jmp 0x5770
movzbl (%rdi,%rsi), %r10d
cmpl $0x8, %r8d
jne 0x577c
movq (%rdi,%rdx,8), %r11
jmp 0x5781
movzbl (%rdi,%rdx), %r11d
cmpq %r11, %r10
jl 0x57e8
cmpl $0x8, %r8d
jne 0x5792
movq (%rdi,%rsi,8), %r10
jmp 0x5797
movzbl (%rdi,%rsi), %r10d
cmpl $0x8, %r8d
jne 0x57a3
movq (%rdi,%rdx,8), %r11
jmp 0x57a8
movzbl (%rdi,%rdx), %r11d
cmpq %r11, %r10
jg 0x57e9
cmpl $0x8, %r8d
jne 0x57b9
movq (%rdi,%rsi,8), %r10
jmp 0x57be
movzbl (%rdi,%rsi), %r10d
cmpq %r9, %r10
jne 0x57d9
cmpl $0x8, %r8d
jne 0x57cf
movq (%rdi,%rdx,8), %r10
jmp 0x57d4
movzbl (%rdi,%rdx), %r10d
cmpq %r9, %r10
je 0x57ec
incq %rsi
incq %rdx
decq %rcx
jne 0x575f
retq
xorl %eax, %eax
retq
xorl %eax, %eax
cmpq %rdx, %rsi
setl %al
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/suffix_array.c
// Function: suffix_array_check
int_t suffix_array_check(unsigned char *T, int_t *SA,  size_t n, int cs, unsigned char sentinel){

  int_t i,j,k;
  
  for (i = 0; i < n-1;  i++) {
    size_t min = SA[i+1]<SA[i]?(n-SA[i]):(n-SA[i+1]);
    if (!sleq(T, SA[i], SA[i+1], min, cs, sentinel)){

      printf("#%" PRIdN ") %" PRIdN ", %" PRIdN "&\n", i, SA[i], SA[i+1]);

      for(j=SA[i], k=SA[i+1]; (j<SA[i]+5); j++, k++)
        printf("%" PRIdN " | %" PRIdN "\n", chr(j), chr(k));
      printf("\n");

      return 0;
    }
  }

  unsigned char *tmp = (unsigned char*) malloc(n*sizeof(unsigned char));

  for (i = 0; i < n;  i++) 
    tmp[i] = 0;

  for (i = 0; i < n;  i++) 
    tmp[SA[i]] = 1;
  
  for (i = 0; i < n;  i++){ 
    if(!tmp[i]){
      free(tmp);
      fprintf(stderr, "Error: is not a permutation\n");
      return 0;
    }
  }

  free(tmp);
  
return 1;  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %eax
movq %rdx, 0x8(%rsp)
subq %rdx, %rax
movq %rax, 0x10(%rsp)
movq $-0x1, %r15
movzbl %r8b, %eax
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rax
addq %r15, %rax
cmpq $-0x1, %rax
je 0x58ec
movq 0x8(%rbx,%r15,8), %r12
movq 0x10(%rbx,%r15,8), %r13
cmpq %r12, %r13
movq %r12, %rax
cmovgq %r13, %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movl %ebp, %r8d
movl 0x4(%rsp), %r9d
callq 0x574d
incq %r15
testq %rax, %rax
jne 0x582c
leaq 0x6161(%rip), %rdi      # 0xb9e0
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x20f0
movq (%rbx,%r15,8), %r13
movq 0x8(%rbx,%r15,8), %r12
decq %r13
cmpl $0x8, %ebp
jne 0x58a7
movq 0x8(%r14,%r13,8), %rsi
jmp 0x58ad
movzbl 0x1(%r14,%r13), %esi
cmpl $0x8, %ebp
jne 0x58b8
movq (%r14,%r12,8), %rdx
jmp 0x58bd
movzbl (%r14,%r12), %edx
leaq 0x612d(%rip), %rdi      # 0xb9f1
xorl %eax, %eax
callq 0x20f0
incq %r12
movq (%rbx,%r15,8), %rax
addq $0x4, %rax
incq %r13
cmpq %rax, %r13
jl 0x589b
movl $0xa, %edi
callq 0x2040
xorl %eax, %eax
jmp 0x5940
movq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x9fd2
movq %rax, %r14
testq %r12, %r12
je 0x5933
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x2150
movq (%rbx,%r15,8), %rax
movb $0x1, (%r14,%rax)
incq %r15
cmpq %r15, %r12
jne 0x5911
xorl %eax, %eax
cmpb $0x0, (%r14,%rax)
je 0x594f
incq %rax
cmpq %rax, %r12
jne 0x5924
movq %r14, %rdi
callq 0xa089
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x247d
jmp 0x58e8
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_kasai
int lcp_kasai(char* T, int_t* SA, uint_t n, int_t* LCP){
  
  uint_t *ISA = (uint_t* ) malloc(n * sizeof(uint_t));
  find_inverse(SA, n, ISA);
  
  uint_t l = 0;
  uint_t j, k, i;
  
  for(i = 0; i < n; i++){

    k = ISA[i];
  
    if(!k) {
      LCP[k] = 0;
    }
    else{
      
      j = SA[k-1];
      while(T[i+l] == T[j+l] && !(T[i+l] == 0 && T[j+l]==0)){
        l++; 
      }
      
      LCP[k] = l;
      if(T[i+l] == 0 && T[j+l]==0) LCP[k]++;
      if(l>0) l--;
    }
  } 
  
  free(ISA);

return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq (,%rdx,8), %rdi
callq 0x9fd2
testq %r14, %r14
je 0x59ae
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rdx
movq %rcx, (%rax,%rdx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x599e
testq %r14, %r14
je 0x5a23
xorl %ecx, %ecx
movq %r12, %rdx
xorl %esi, %esi
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x5a11
movq -0x8(%r15,%rdi,8), %r9
addq %r12, %r9
leaq -0x1(%rsi), %r8
movq %rsi, %r11
movb (%r9,%rsi), %r10b
incq %rsi
incq %r8
cmpb %r10b, (%rdx,%r11)
jne 0x59e7
testb %r10b, %r10b
jne 0x59cf
leaq -0x1(%rsi), %r10
movq %r10, (%rbx,%rdi,8)
cmpb $0x0, -0x1(%rdx,%rsi)
jne 0x5a02
cmpb $0x0, -0x1(%r9,%rsi)
jne 0x5a02
movq %rsi, (%rbx,%rdi,8)
subq $0x1, %r8
movl $0x0, %esi
cmovaeq %r8, %rsi
jmp 0x5a18
movq $0x0, (%rbx)
incq %rcx
incq %rdx
cmpq %r14, %rcx
jne 0x59ba
movq %rax, %rdi
callq 0xa089
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_PHI
int lcp_PHI(unsigned char* T, int_t* SA, int_t* LCP, uint_t n, int cs, unsigned char separator){

  uint_t* PLCP = (uint_t*) malloc(n * sizeof(uint_t));;

  //PHI is stored in PLCP array
  uint_t i,j;
  for (i=0, j = 0; i < n; ++i) {
    PLCP[SA[i]] = j;
    j = SA[i];
  }

  int_t l;
  for (i=0, l=0; i < n-1; ++i) {
    while (chr(i+l) == chr(PLCP[i]+l) && !(chr(i+l) == separator && chr(PLCP[i]+l)==separator) ) {
        ++l;
    }
    PLCP[i] = l;
    if (l) --l;
  }

  for (i=0; i < n; ++i) {
    LCP[i] = PLCP[SA[i]];
  }
  
  free(PLCP);

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r13d
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq (,%rcx,8), %rdi
callq 0x9fd2
testq %rbx, %rbx
je 0x5a7f
xorl %edx, %edx
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rsi
movq %rdx, (%rax,%rsi,8)
incq %rcx
movq %rsi, %rdx
cmpq %rcx, %rbx
jne 0x5a6c
movq %rbx, %rcx
decq %rcx
je 0x5b35
movzbl %r13b, %edx
xorl %r10d, %r10d
movq %r12, %rsi
movq %r12, %rdi
xorl %r8d, %r8d
movq %r10, %r9
cmpl $0x8, %ebp
jne 0x5aa9
movq (%rdi,%r9,8), %r10
jmp 0x5aae
movzbl (%rsi,%r9), %r10d
cmpl $0x8, %ebp
jne 0x5ac1
movq (%rax,%r8,8), %r11
leaq (%r12,%r11,8), %r11
movq (%r11,%r9,8), %r11
jmp 0x5acd
movq (%rax,%r8,8), %r11
addq %r12, %r11
movzbl (%r9,%r11), %r11d
cmpq %r11, %r10
jne 0x5b10
cmpl $0x8, %ebp
jne 0x5add
movq (%rdi,%r9,8), %r10
jmp 0x5ae2
movzbl (%rsi,%r9), %r10d
cmpq %rdx, %r10
jne 0x5b0b
cmpl $0x8, %ebp
jne 0x5afa
movq (%rax,%r8,8), %r10
leaq (%r12,%r10,8), %r10
movq (%r10,%r9,8), %r10
jmp 0x5b06
movq (%rax,%r8,8), %r10
addq %r12, %r10
movzbl (%r9,%r10), %r10d
cmpq %rdx, %r10
je 0x5b10
incq %r9
jmp 0x5a9e
movq %r9, (%rax,%r8,8)
subq $0x1, %r9
movl $0x0, %r10d
cmovaeq %r9, %r10
incq %r8
addq $0x8, %rdi
incq %rsi
cmpq %rcx, %r8
jne 0x5a9b
testq %rbx, %rbx
je 0x5b50
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rdx
movq (%rax,%rdx,8), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x5b3c
movq %rax, %rdi
callq 0xa089
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_O1/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_PHI_int
int lcp_PHI_int(int_t* T, int_t* SA, int_t* LCP, uint_t n, int cs){

  uint_t* PLCP = (uint_t*) malloc(n * sizeof(uint_t));;

  //PHI is stored in PLCP array
  uint_t i,j;
  for (i=0, j = 0; i < n; ++i) {
    PLCP[SA[i]] = j;
    j = SA[i];
  }

  int_t l;
  for (i=0, l=0; i < n-1; ++i) {
    while (chr(i+l) == chr(PLCP[i]+l)) {
        ++l;
    }
    PLCP[i] = l;
    if (l) --l;
  }

  for (i=0; i < n; ++i) {
    LCP[i] = PLCP[SA[i]];
  }
  
  free(PLCP);

return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq (,%rcx,8), %rdi
callq 0x9fd2
testq %rbx, %rbx
je 0x5ba9
xorl %edx, %edx
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rsi
movq %rdx, (%rax,%rsi,8)
incq %rcx
movq %rsi, %rdx
cmpq %rcx, %rbx
jne 0x5b96
movq %rbx, %rcx
decq %rcx
je 0x5c1b
xorl %edx, %edx
movq %r12, %rsi
movq %r12, %rdi
xorl %r8d, %r8d
decq %rdx
cmpl $0x8, %ebp
jne 0x5bcb
movq 0x8(%rdi,%rdx,8), %r9
jmp 0x5bd1
movzbl 0x1(%rsi,%rdx), %r9d
cmpl $0x8, %ebp
jne 0x5be5
movq (%rax,%r8,8), %r10
leaq (%r12,%r10,8), %r10
movq 0x8(%r10,%rdx,8), %r10
jmp 0x5bf2
movq (%rax,%r8,8), %r10
addq %r12, %r10
movzbl 0x1(%rdx,%r10), %r10d
incq %rdx
cmpq %r10, %r9
je 0x5bbf
movq %rdx, (%rax,%r8,8)
subq $0x1, %rdx
movl $0x0, %r9d
cmovbq %r9, %rdx
incq %r8
addq $0x8, %rdi
incq %rsi
cmpq %rcx, %r8
jne 0x5bbc
testq %rbx, %rbx
je 0x5c36
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rdx
movq (%rax,%rdx,8), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x5c22
movq %rax, %rdi
callq 0xa089
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_array_print
int lcp_array_print(unsigned char *T, int_t *SA, int_t *LCP, size_t n, int cs){

  int_t i;

        for(i=0; i<n; i++){

                printf("%" PRIdN ") %" PRIdN ", %" PRIdN "  \t", i, SA[i], LCP[i]);

                int_t j=SA[i];
                for(j=SA[i]; (j<SA[i]+min(10,LCP[i]+10)); j++)
                        printf("%" PRIdN " ", chr(j));
                printf("\n");
        }

return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
testq %rcx, %rcx
je 0x5ebe
movl %r8d, %ebx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorl %r14d, %r14d
movq (%r12,%r14,8), %rdx
movq (%r15,%r14,8), %rcx
leaq 0x5c42(%rip), %rdi      # 0xba98
movq %r14, %rsi
xorl %eax, %eax
callq 0x20f0
cmpq $-0x9, (%r15,%r14,8)
jl 0x5eab
movq (%r12,%r14,8), %rbp
cmpl $0x8, %ebx
jne 0x5e77
movq (%r13,%rbp,8), %rsi
jmp 0x5e7d
movzbl (%r13,%rbp), %esi
leaq 0x5b57(%rip), %rdi      # 0xb9db
xorl %eax, %eax
callq 0x20f0
incq %rbp
movq (%r15,%r14,8), %rax
leaq 0xa(%rax), %rcx
testq %rax, %rax
movl $0xa, %eax
cmovgq %rax, %rcx
addq (%r12,%r14,8), %rcx
cmpq %rcx, %rbp
jl 0x5e6b
movl $0xa, %edi
callq 0x2040
incq %r14
cmpq (%rsp), %r14
jne 0x5e47
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_array_write
int lcp_array_write(int_t *SA, int_t *LCP, int_t n, char* c_file, const char* ext){

  FILE *f_out;
  char *c_out = malloc((strlen(c_file)+strlen(ext))*sizeof(char));
  
  sprintf(c_out, "%s.%s", c_file, ext);
  f_out = file_open(c_out, "wb");
        
  int_t i;
  for(i=0; i<n; i++){//writes SA, LCP interleaved
    fwrite(&SA[i], sizeof(int_t), 1, f_out);
    fwrite(&LCP[i], sizeof(int_t), 1, 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 %r8, %r13
movq %rcx, %rbp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rcx, %rdi
callq 0x20d0
movq %rax, %r12
movq %r13, %rdi
callq 0x20d0
addq %rax, %r12
movq %r12, %rdi
callq 0x9fd2
movq %rax, %r12
leaq 0x5aa5(%rip), %rsi      # 0xb9b9
movq %rax, %rdi
movq %rbp, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x5710(%rip), %rsi      # 0xb63b
movq %r12, %rdi
callq 0x4393
movq %rax, %r13
testq %rbx, %rbx
jle 0x5f72
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rcx
callq 0x2280
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rcx
callq 0x2280
addq $0x8, %r14
addq $0x8, %r15
decq %rbx
jne 0x5f3b
movq %r13, %rdi
callq 0x43b7
movq %r12, %rdi
callq 0xa089
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: getBuckets_k
void getBuckets_k(int_t *s, 
  uint_t *bkt, uint_t n,
  unsigned int K, int end, int cs) { 
  uint_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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movl %r8d, %ebx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl %ecx, %r15d
testl %ecx, %ecx
je 0x61bb
leaq (,%r15,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
movl %ecx, 0x4(%rsp)
callq 0x2150
movl 0x4(%rsp), %ecx
testq %r12, %r12
je 0x61e0
xorl %eax, %eax
cmpl $0x8, %ebp
jne 0x61ce
movq (%r13,%rax,8), %rdx
jmp 0x61d4
movzbl (%r13,%rax), %edx
incq (%r14,%rdx,8)
incq %rax
cmpq %rax, %r12
jne 0x61c2
testl %ecx, %ecx
je 0x6206
xorl %ecx, %ecx
xorl %eax, %eax
movq (%r14,%rax,8), %rdx
testl %ebx, %ebx
leaq -0x1(%rdx,%rcx), %rsi
cmoveq %rcx, %rsi
addq %rdx, %rcx
movq %rsi, (%r14,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x61e8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix0
void putSuffix0(uint_t *SA, 
  int_t *s, uint_t *bkt, 
  uint_t n, unsigned int K, int_t n1, int cs) {
  uint_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
movq %r9, %r14
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movl 0x40(%rsp), %ebp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
decq %r14
je 0x6282
movq (%r15,%r14,8), %rax
movq $0x0, (%r15,%r14,8)
cmpl $0x8, %ebp
jne 0x626a
movq (%r13,%rax,8), %rcx
jmp 0x6270
movzbl (%r13,%rax), %ecx
movq (%r12,%rcx,8), %rdx
leaq -0x1(%rdx), %rsi
movq %rsi, (%r12,%rcx,8)
movq %rax, (%r15,%rdx,8)
jmp 0x624d
decq %rbx
movq %rbx, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix0_generalized
void putSuffix0_generalized(uint_t *SA, 
  uint_t *s, uint_t *bkt, 
  uint_t n, unsigned int K, int_t n1, int cs, uint_t separator) {
  uint_t i, j;

  // find the end of each bucket.
  getBuckets_k((int_t*)s, bkt, n, K, true, cs);

  int_t tmp=bkt[separator]--;// shifts one position left of bkt[separator]

  // 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.

  SA[tmp]=SA[0]-1;// insert the last separator at the end of bkt[separator]

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl 0x40(%rsp), %ebp
movq 0x48(%rsp), %r13
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
movq (%r15,%r13,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%r13,8)
decq %rbx
je 0x6310
movq (%r14,%rbx,8), %rcx
movq $0x0, (%r14,%rbx,8)
cmpl $0x8, %ebp
jne 0x62f9
movq (%r12,%rcx,8), %rdx
jmp 0x62fe
movzbl (%r12,%rcx), %edx
movq (%r15,%rdx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r15,%rdx,8)
movq %rcx, (%r14,%rsi,8)
jmp 0x62dd
movq (%r14), %rcx
decq %rcx
movq %rcx, (%r14,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix0_generalized_LCP
void putSuffix0_generalized_LCP(uint_t *SA, int_t *LCP,
  uint_t *s, uint_t *bkt, 
  uint_t n, unsigned int K, int_t n1, int cs, uint_t separator) {
  uint_t i, j;
  int_t l;

  // find the end of each bucket.
  getBuckets_k((int_t*)s, bkt, n, K, true, cs);

  int_t tmp=bkt[separator]--;// shifts one position left of bkt[separator]

  // put the suffixes into their buckets.
  for(i=n1-1; i>0; i--) {
    j=SA[i]; SA[i]=U_MAX;
    l=LCP[i]; LCP[i]=0;

    SA[bkt[chr(j)]]=j;
    LCP[bkt[chr(j)]--]=l;
  }

 // SA[0]=n-1; // set the single sentinel suffix.

  SA[tmp]=SA[0]-1;// insert the last separator at the end of bkt[separator]

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl 0x48(%rsp), %ebp
movq 0x40(%rsp), %r13
movq %rdx, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movl %r9d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
movq 0x50(%rsp), %rdx
movq (%r14,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r14,%rdx,8)
decq %r13
je 0x63cb
movq (%rbx,%r13,8), %rdx
movq $-0x1, (%rbx,%r13,8)
movq (%r12,%r13,8), %rcx
movq $0x0, (%r12,%r13,8)
cmpl $0x8, %ebp
jne 0x639c
movq (%r15,%rdx,8), %rsi
jmp 0x63a1
movzbl (%r15,%rdx), %esi
movq (%r14,%rsi,8), %rsi
movq %rdx, (%rbx,%rsi,8)
cmpl $0x8, %ebp
jne 0x63b4
movq (%r15,%rdx,8), %rdx
jmp 0x63b9
movzbl (%r15,%rdx), %edx
movq (%r14,%rdx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r14,%rdx,8)
movq %rcx, (%r12,%rsi,8)
jmp 0x6374
movq (%rbx), %rcx
decq %rcx
movq %rcx, (%rbx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix0_generalized_DA
void putSuffix0_generalized_DA(uint_t *SA, int_t *DA,
  uint_t *s, uint_t *bkt, 
  uint_t n, unsigned int K, int_t n1, int cs, uint_t separator) {
  uint_t i, j;

  // find the end of each bucket.
  getBuckets_k((int_t*)s, bkt, n, K, true, cs);

  int_t tmp=bkt[separator]--;// shifts one position left of bkt[separator]
  
  // put the suffixes into their buckets.
  for(i=n1-1; i>0; i--) {
    j=SA[i]; SA[i]=0;
    SA[bkt[chr(j)]]=j;
    DA[bkt[chr(j)]--]=DA[i];
  }

 // SA[0]=n-1; // set the single sentinel suffix.

  SA[tmp]=SA[0]-1;// insert the last separator at the end of bkt[separator]
  DA[tmp]=tmp-1;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl 0x48(%rsp), %ebp
movq 0x40(%rsp), %r13
movq %rdx, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movl %r9d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
movq 0x50(%rsp), %rdx
movq (%r15,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%rdx,8)
decq %r13
je 0x647e
movq (%r14,%r13,8), %rdx
movq $0x0, (%r14,%r13,8)
cmpl $0x8, %ebp
jne 0x644b
movq (%r12,%rdx,8), %rsi
jmp 0x6450
movzbl (%r12,%rdx), %esi
movq (%r15,%rsi,8), %rsi
movq %rdx, (%r14,%rsi,8)
movq (%rbx,%r13,8), %rsi
cmpl $0x8, %ebp
jne 0x6467
movq (%r12,%rdx,8), %rdx
jmp 0x646c
movzbl (%r12,%rdx), %edx
movq (%r15,%rdx,8), %rdi
leaq -0x1(%rdi), %r8
movq %r8, (%r15,%rdx,8)
movq %rsi, (%rbx,%rdi,8)
jmp 0x642f
movq (%r14), %rdx
decq %rdx
movq %rdx, (%r14,%rax,8)
movq %rcx, (%rbx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix0_generalized_LCP_DA
void putSuffix0_generalized_LCP_DA(uint_t *SA, int_t *LCP,  int_t *DA, 
  uint_t *s, uint_t *bkt, 
  uint_t n, unsigned int K, int_t n1, int cs, uint_t separator) {
  uint_t i, j;
  int_t l;

  // find the end of each bucket.
  getBuckets_k((int_t*)s, bkt, n, K, true, cs);

  int_t tmp=bkt[separator]--;// shifts one position left of bkt[separator]

  // put the suffixes into their buckets.
  for(i=n1-1; i>0; i--) {
    j=SA[i]; SA[i]=U_MAX;
    l=LCP[i]; LCP[i]=0;

    SA[bkt[chr(j)]]=j;
    DA[bkt[chr(j)]]=DA[i];
    LCP[bkt[chr(j)]--]=l;
  }

 // SA[0]=n-1; // set the single sentinel suffix.

  SA[tmp]=SA[0]-1;// insert the last separator at the end of bkt[separator]
  DA[tmp]=tmp-1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rax
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
movl 0x50(%rsp), %r9d
movq 0x48(%rsp), %rbp
movl 0x40(%rsp), %ecx
movq %r12, %rdi
movq %r8, %rsi
movq %rax, %rdx
movl $0x1, %r8d
callq 0x6180
movl 0x50(%rsp), %r9d
movq 0x58(%rsp), %rdx
movq (%r15,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%rdx,8)
decq %rbp
je 0x6569
movq (%r14,%rbp,8), %rsi
movq $-0x1, (%r14,%rbp,8)
movq (%r13,%rbp,8), %rdx
movq $0x0, (%r13,%rbp,8)
cmpl $0x8, %r9d
jne 0x651b
movq (%r12,%rsi,8), %rdi
jmp 0x6520
movzbl (%r12,%rsi), %edi
movq (%r15,%rdi,8), %rdi
movq %rsi, (%r14,%rdi,8)
movq (%rbx,%rbp,8), %rdi
cmpl $0x8, %r9d
jne 0x6538
movq (%r12,%rsi,8), %r8
jmp 0x653d
movzbl (%r12,%rsi), %r8d
movq (%r15,%r8,8), %r8
movq %rdi, (%rbx,%r8,8)
cmpl $0x8, %r9d
jne 0x6551
movq (%r12,%rsi,8), %rsi
jmp 0x6556
movzbl (%r12,%rsi), %esi
movq (%r15,%rsi,8), %rdi
leaq -0x1(%rdi), %r8
movq %r8, (%r15,%rsi,8)
movq %rdx, (%r13,%rdi,8)
jmp 0x64f0
movq (%r14), %rdx
decq %rdx
movq %rdx, (%r14,%rax,8)
movq %rcx, (%rbx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAl0
void induceSAl0(uint_t *SA,
  int_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int_t suffix, int cs) {
  uint_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
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x6180
incq (%r15)
testq %r14, %r14
je 0x6651
xorl %eax, %eax
movq (%r13,%rax,8), %rcx
testq %rcx, %rcx
je 0x6645
leaq -0x1(%rcx), %rdx
cmpl $0x8, %ebp
jne 0x65e3
movq -0x8(%r12,%rcx,8), %rsi
jmp 0x65e8
movzbl (%r12,%rdx), %esi
cmpl $0x8, %ebp
jne 0x65f3
movq (%r12,%rcx,8), %rdi
jmp 0x65f8
movzbl (%r12,%rcx), %edi
cmpq %rdi, %rsi
jl 0x6645
cmpl $0x8, %ebp
jne 0x6609
movq -0x8(%r12,%rcx,8), %rsi
jmp 0x660e
movzbl (%r12,%rdx), %esi
movq (%r15,%rsi,8), %rsi
movq %rdx, (%r13,%rsi,8)
cmpl $0x8, %ebp
jne 0x6623
movq -0x8(%r12,%rcx,8), %rcx
jmp 0x6628
movzbl (%r12,%rdx), %ecx
testq %rbx, %rbx
setne %dl
incq (%r15,%rcx,8)
testq %rax, %rax
sete %cl
orb %dl, %cl
jne 0x6645
movq $0x0, (%r13,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x65c9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAs0
void induceSAs0(uint_t *SA,
  int_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int_t suffix, int cs) {
  uint_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
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
decq %r14
je 0x6732
movq (%r13,%r14,8), %rax
testq %rax, %rax
je 0x6698
leaq -0x1(%rax), %rcx
cmpl $0x8, %ebp
jne 0x66bb
movq -0x8(%r12,%rax,8), %rdx
jmp 0x66c0
movzbl (%r12,%rcx), %edx
cmpl $0x8, %ebp
jne 0x66cb
movq (%r12,%rax,8), %rsi
jmp 0x66d0
movzbl (%r12,%rax), %esi
cmpq %rsi, %rdx
jg 0x6698
cmpl $0x8, %ebp
jne 0x66e1
movq -0x8(%r12,%rax,8), %rdx
jmp 0x66e6
movzbl (%r12,%rcx), %edx
cmpq %r14, (%r15,%rdx,8)
jae 0x6698
cmpl $0x8, %ebp
jne 0x66f8
movq -0x8(%r12,%rax,8), %rdx
jmp 0x66fd
movzbl (%r12,%rcx), %edx
movq (%r15,%rdx,8), %rdx
movq %rcx, (%r13,%rdx,8)
cmpl $0x8, %ebp
jne 0x6712
movq -0x8(%r12,%rax,8), %rax
jmp 0x6717
movzbl (%r12,%rcx), %eax
decq (%r15,%rax,8)
testq %rbx, %rbx
jne 0x6698
movq $0x0, (%r13,%r14,8)
jmp 0x6698
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAl0_generalized
void induceSAl0_generalized(uint_t *SA,
  uint_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int_t suffix, int cs, uint_t separator) {
  uint_t i, j;

  // find the head of each bucket.
  getBuckets_k((int_t*)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) ) {
	if(chr(j)!=separator)//gsa-is
          SA[bkt[chr(j)]++]=j;
        if(!suffix && i>0) SA[i]=0;
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x6180
incq (%r15)
testq %r14, %r14
je 0x681c
movq 0x48(%rsp), %rax
xorl %ecx, %ecx
movq (%r13,%rcx,8), %rsi
testq %rsi, %rsi
je 0x6810
leaq -0x1(%rsi), %rdx
cmpl $0x8, %ebp
jne 0x67a3
movq -0x8(%r12,%rsi,8), %rdi
jmp 0x67a8
movzbl (%r12,%rdx), %edi
cmpl $0x8, %ebp
jne 0x67b3
movq (%r12,%rsi,8), %r8
jmp 0x67b8
movzbl (%r12,%rsi), %r8d
cmpq %r8, %rdi
jl 0x6810
cmpl $0x8, %ebp
jne 0x67c9
movq -0x8(%r12,%rsi,8), %rdi
jmp 0x67ce
movzbl (%r12,%rdx), %edi
cmpq %rax, %rdi
je 0x67f5
cmpl $0x8, %ebp
jne 0x67df
movq -0x8(%r12,%rsi,8), %rsi
jmp 0x67e4
movzbl (%r12,%rdx), %esi
movq (%r15,%rsi,8), %rdi
leaq 0x1(%rdi), %r8
movq %r8, (%r15,%rsi,8)
movq %rdx, (%r13,%rdi,8)
testq %rbx, %rbx
setne %dl
testq %rcx, %rcx
sete %sil
orb %dl, %sil
jne 0x6810
movq $0x0, (%r13,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x6789
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAs0_generalized
void induceSAs0_generalized(uint_t *SA,
  uint_t *s, uint_t *bkt,
  uint_t n, uint_t K, int_t suffix, int cs, uint_t separator) {
  uint_t i, j;

  // find the end of each bucket.
  getBuckets_k((int_t*)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) {
        if(chr(j)!=separator)
	  SA[bkt[chr(j)]--]=j;
        if(!suffix) SA[i]=0;
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
decq %r14
je 0x690f
movq 0x48(%rsp), %rax
movq (%r13,%r14,8), %rdx
testq %rdx, %rdx
je 0x6906
leaq -0x1(%rdx), %rcx
cmpl $0x8, %ebp
jne 0x688f
movq -0x8(%r12,%rdx,8), %rsi
jmp 0x6894
movzbl (%r12,%rcx), %esi
cmpl $0x8, %ebp
jne 0x689f
movq (%r12,%rdx,8), %rdi
jmp 0x68a4
movzbl (%r12,%rdx), %edi
cmpq %rdi, %rsi
jg 0x6906
cmpl $0x8, %ebp
jne 0x68b5
movq -0x8(%r12,%rdx,8), %rsi
jmp 0x68ba
movzbl (%r12,%rcx), %esi
cmpq %r14, (%r15,%rsi,8)
jae 0x6906
cmpl $0x8, %ebp
jne 0x68cc
movq -0x8(%r12,%rdx,8), %rsi
jmp 0x68d1
movzbl (%r12,%rcx), %esi
cmpq %rax, %rsi
je 0x68f8
cmpl $0x8, %ebp
jne 0x68e2
movq -0x8(%r12,%rdx,8), %rdx
jmp 0x68e7
movzbl (%r12,%rcx), %edx
movq (%r15,%rdx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r15,%rdx,8)
movq %rcx, (%r13,%rsi,8)
testq %rbx, %rbx
jne 0x6906
movq $0x0, (%r13,%r14,8)
decq %r14
jne 0x6871
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAl0_generalized_DA
void induceSAl0_generalized_DA(uint_t *SA, int_t* DA,
  uint_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int cs, uint_t separator) {
  uint_t i, j;

  // find the head of each bucket.
  getBuckets_k((int_t*)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) ) {
	    if(chr(j)!=separator){//gsa-is
          SA[bkt[chr(j)]]=j;
          DA[bkt[chr(j)]++]=DA[i];
	    }
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rdx, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movl %r9d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x6180
incq (%r14)
testq %rbx, %rbx
je 0x7343
movq 0x48(%rsp), %rax
xorl %ecx, %ecx
movq (%r13,%rcx,8), %rdx
testq %rdx, %rdx
je 0x7337
leaq -0x1(%rdx), %rsi
cmpl $0x8, %ebp
jne 0x72c8
movq -0x8(%r15,%rdx,8), %rdi
jmp 0x72cd
movzbl (%r15,%rsi), %edi
cmpl $0x8, %ebp
jne 0x72d8
movq (%r15,%rdx,8), %r8
jmp 0x72dd
movzbl (%r15,%rdx), %r8d
cmpq %r8, %rdi
jl 0x7337
cmpl $0x8, %ebp
jne 0x72ee
movq -0x8(%r15,%rdx,8), %rdi
jmp 0x72f3
movzbl (%r15,%rsi), %edi
cmpq %rax, %rdi
je 0x7337
cmpl $0x8, %ebp
jne 0x7304
movq -0x8(%r15,%rdx,8), %rdi
jmp 0x7309
movzbl (%r15,%rsi), %edi
movq (%r14,%rdi,8), %rdi
movq %rsi, (%r13,%rdi,8)
cmpl $0x8, %ebp
jne 0x731e
movq -0x8(%r15,%rdx,8), %rdx
jmp 0x7323
movzbl (%r15,%rsi), %edx
movq (%r12,%rcx,8), %rsi
movq (%r14,%rdx,8), %rdi
leaq 0x1(%rdi), %r8
movq %r8, (%r14,%rdx,8)
movq %rsi, (%r12,%rdi,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x72ae
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: induceSAs0_generalized_DA
void induceSAs0_generalized_DA(uint_t *SA, int_t* DA,
  uint_t *s, uint_t *bkt,
  uint_t n, uint_t K, int cs, uint_t separator) {
  uint_t i, j;

  // find the end of each bucket.
  getBuckets_k((int_t*)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) {
        if(chr(j)!=separator){
		  SA[bkt[chr(j)]]=j;
		  DA[bkt[chr(j)]--]=DA[i];
	    }
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
movq %rdx, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movl %r9d, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
callq 0x6180
decq %rbx
je 0x7445
movq 0x48(%rsp), %rax
movq (%r13,%rbx,8), %rcx
testq %rcx, %rcx
je 0x743c
leaq -0x1(%rcx), %rdx
cmpl $0x8, %ebp
jne 0x73b6
movq -0x8(%r15,%rcx,8), %rsi
jmp 0x73bb
movzbl (%r15,%rdx), %esi
cmpl $0x8, %ebp
jne 0x73c6
movq (%r15,%rcx,8), %rdi
jmp 0x73cb
movzbl (%r15,%rcx), %edi
cmpq %rdi, %rsi
jg 0x743c
cmpl $0x8, %ebp
jne 0x73dc
movq -0x8(%r15,%rcx,8), %rsi
jmp 0x73e1
movzbl (%r15,%rdx), %esi
cmpq %rbx, (%r14,%rsi,8)
jae 0x743c
cmpl $0x8, %ebp
jne 0x73f3
movq -0x8(%r15,%rcx,8), %rsi
jmp 0x73f8
movzbl (%r15,%rdx), %esi
cmpq %rax, %rsi
je 0x743c
cmpl $0x8, %ebp
jne 0x7409
movq -0x8(%r15,%rcx,8), %rsi
jmp 0x740e
movzbl (%r15,%rdx), %esi
movq (%r14,%rsi,8), %rsi
movq %rdx, (%r13,%rsi,8)
cmpl $0x8, %ebp
jne 0x7423
movq -0x8(%r15,%rcx,8), %rcx
jmp 0x7428
movzbl (%r15,%rdx), %ecx
movq (%r12,%rbx,8), %rdx
movq (%r14,%rcx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r14,%rcx,8)
movq %rdx, (%r12,%rsi,8)
decq %rbx
jne 0x7398
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSubstr0
void putSubstr0(uint_t *SA,
  int_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int cs) {
  uint_t i, cur_t, succ_t;

  // find the end of each bucket.
  getBuckets_k(s, bkt, n, K, true, cs);

  // set each item in SA as empty.
  for(i=0; i<n; i++) SA[i]=0;

  succ_t=0; // s[n-2] must be L-type.
  for(i=n-2; i>0; i--) {
    cur_t=(chr(i-1)<chr(i) ||
           (chr(i-1)==chr(i) && succ_t==1)
          )?1:0;
    if(cur_t==0 && succ_t==1) SA[bkt[chr(i)]--]=i;
    succ_t=cur_t;
  }

  // set the single sentinel LMS-substring.
  SA[0]=n-1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r9d, %ebp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
callq 0x6180
testq %rbx, %rbx
je 0x7e1a
leaq (,%rbx,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x2150
movq %rbx, %rax
addq $-0x2, %rax
je 0x7eb5
xorl %ecx, %ecx
cmpl $0x8, %ebp
jne 0x7e35
movq -0x8(%r12,%rax,8), %rsi
jmp 0x7e3b
movzbl -0x1(%r12,%rax), %esi
cmpl $0x8, %ebp
jne 0x7e46
movq (%r12,%rax,8), %rdi
jmp 0x7e4b
movzbl (%r12,%rax), %edi
movb $0x1, %dl
cmpq %rdi, %rsi
jl 0x7e7c
cmpl $0x8, %ebp
jne 0x7e5e
movq -0x8(%r12,%rax,8), %rdx
jmp 0x7e64
movzbl -0x1(%r12,%rax), %edx
cmpl $0x8, %ebp
jne 0x7e6f
movq (%r12,%rax,8), %rsi
jmp 0x7e74
movzbl (%r12,%rax), %esi
cmpq %rsi, %rdx
sete %dl
andb %cl, %dl
movl %edx, %esi
xorb $0x1, %sil
andb %sil, %cl
cmpb $0x1, %cl
jne 0x7eaa
cmpl $0x8, %ebp
jne 0x7e95
movq (%r12,%rax,8), %rcx
jmp 0x7e9a
movzbl (%r12,%rax), %ecx
movq (%r15,%rcx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r15,%rcx,8)
movq %rax, (%r14,%rsi,8)
movl %edx, %ecx
decq %rax
jne 0x7e29
decq %rbx
movq %rbx, (%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSubstr0_generalized
void putSubstr0_generalized(uint_t *SA,
  uint_t *s, uint_t *bkt,
  uint_t n, unsigned int K, int cs, uint_t separator) {
  uint_t i, cur_t, succ_t;

  // find the end of each bucket.
  getBuckets_k((int_t*)s, bkt, n, K, true, cs);

  // set each item in SA as empty.
  for(i=0; i<n; i++) SA[i]=0;

  // gsa-is
  int_t tmp=bkt[separator]--;// shifts one position left of bkt[separator]
  
  SA[0]=n-1;// set the single sentinel LMS-substring.

  SA[tmp] = SA[0]-1; // insert the last separator at the end of bkt[separator]

  int_t p=n-2;

  succ_t=0; // s[n-2] must be L-type.
  for(i=n-2; i>0; i--) {
    cur_t=(chr(i-1)<chr(i) ||
           (chr(i-1)==chr(i) && succ_t==1)
          )?1:0;
    if(cur_t==0 && succ_t==1){

      if(chr(i)==separator)
        SA[++bkt[chr(p)]]=0; // removes LMS-positions that induces separator suffixes

      SA[bkt[chr(i)]--]=i;
      p=i;
    }
    succ_t=cur_t;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x40(%rsp), %rbp
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
movl $0x1, %r8d
callq 0x6180
testq %r13, %r13
je 0x7f11
leaq (,%r13,8), %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x2150
movq (%r14,%rbp,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r14,%rbp,8)
leaq -0x1(%r13), %rcx
movq %rcx, (%r12)
addq $-0x2, %r13
movq %r13, (%r12,%rax,8)
je 0x8001
xorl %ecx, %ecx
movq %r13, %rax
cmpl $0x8, %ebx
jne 0x7f44
movq -0x8(%r15,%rax,8), %rsi
jmp 0x7f4a
movzbl -0x1(%r15,%rax), %esi
cmpl $0x8, %ebx
jne 0x7f55
movq (%r15,%rax,8), %rdi
jmp 0x7f5a
movzbl (%r15,%rax), %edi
movb $0x1, %dl
cmpq %rdi, %rsi
jl 0x7f8b
cmpl $0x8, %ebx
jne 0x7f6d
movq -0x8(%r15,%rax,8), %rdx
jmp 0x7f73
movzbl -0x1(%r15,%rax), %edx
cmpl $0x8, %ebx
jne 0x7f7e
movq (%r15,%rax,8), %rsi
jmp 0x7f83
movzbl (%r15,%rax), %esi
cmpq %rsi, %rdx
sete %dl
andb %cl, %dl
movl %edx, %esi
xorb $0x1, %sil
andb %sil, %cl
cmpb $0x1, %cl
jne 0x7ff6
cmpl $0x8, %ebx
jne 0x7fa4
movq (%r15,%rax,8), %rcx
jmp 0x7fa9
movzbl (%r15,%rax), %ecx
cmpq %rbp, %rcx
jne 0x7fd3
cmpl $0x8, %ebx
jne 0x7fb9
movq (%r15,%r13,8), %rcx
jmp 0x7fbe
movzbl (%r15,%r13), %ecx
movq (%r14,%rcx,8), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, (%r14,%rcx,8)
movq $0x0, 0x8(%r12,%rsi,8)
cmpl $0x8, %ebx
jne 0x7fde
movq (%r15,%rax,8), %rcx
jmp 0x7fe3
movzbl (%r15,%rax), %ecx
movq (%r14,%rcx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r14,%rcx,8)
movq %rax, (%r12,%rsi,8)
movq %rax, %r13
movl %edx, %ecx
decq %rax
jne 0x7f38
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: putSuffix1
void putSuffix1(int_t *SA, int_t *s, int_t n1, int cs) {
  int_t i, j, pos=n1, cur, pre=-1;
  
  for(i=n1-1; i>0; i--) {
    j=SA[i]; SA[i]=EMPTY_k;
    cur=chr(j);
    if(cur!=pre) {
      pre=cur; pos=cur;
    }
    SA[pos--]=j;
  }
}

// Assembly:
cmpq $0x2, %rdx
jl 0x805f
leaq 0x1(%rdx), %rax
movq $-0x1, %r9
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
movq -0x10(%rdi,%rax,8), %r10
movq %r8, -0x10(%rdi,%rax,8)
cmpl $0x8, %ecx
jne 0x8040
movq (%rsi,%r10,8), %r11
jmp 0x8045
movzbl (%rsi,%r10), %r11d
cmpq %r9, %r11
cmovneq %r11, %rdx
movq %r10, (%rdi,%rdx,8)
decq %rdx
decq %rax
movq %r11, %r9
cmpq $0x2, %rax
jg 0x802b
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: getLengthOfLMS
uint_t getLengthOfLMS(int_t *s, 
  uint_t n, int level, uint_t x, int cs) {
  if(x==n-1) return 1;  
  
  uint_t dist=0, i=1;  
  while(1) {
    if(chr(x+i)<chr(x+i-1)) break;
    i++;
  }  
  while(1) {
    if(x+i>n-1 || chr(x+i)>chr(x+i-1)) break;
    if(x+i==n-1 || chr(x+i)<chr(x+i-1)) dist=i;
    i++;
  }
  
  return dist+1;
}

// Assembly:
decq %rsi
movl $0x1, %eax
cmpq %rcx, %rsi
je 0x868d
pushq %rbx
leaq (%rdi,%rcx,8), %r9
addq $0x8, %r9
leaq (%rdi,%rcx), %r10
incq %r10
xorl %edx, %edx
cmpl $0x8, %r8d
jne 0x85fa
movq (%r9,%rdx,8), %r11
jmp 0x85ff
movzbl (%r10,%rdx), %r11d
cmpl $0x8, %r8d
jne 0x860c
movq -0x8(%r9,%rdx,8), %rbx
jmp 0x8612
movzbl -0x1(%r10,%rdx), %ebx
incq %rdx
cmpq %rbx, %r11
jge 0x85ee
addq %rdx, %rcx
cmpq %rsi, %rcx
popq %rbx
ja 0x868d
xorl %eax, %eax
cmpl $0x8, %r8d
jne 0x8631
movq (%rdi,%rcx,8), %r9
jmp 0x8636
movzbl (%rdi,%rcx), %r9d
cmpl $0x8, %r8d
jne 0x8643
movq -0x8(%rdi,%rcx,8), %r10
jmp 0x8649
movzbl -0x1(%rdi,%rcx), %r10d
cmpq %r10, %r9
jg 0x868a
cmpq %rcx, %rsi
je 0x867c
cmpl $0x8, %r8d
jne 0x865f
movq (%rdi,%rcx,8), %r9
jmp 0x8664
movzbl (%rdi,%rcx), %r9d
cmpl $0x8, %r8d
jne 0x8671
movq -0x8(%rdi,%rcx,8), %r10
jmp 0x8677
movzbl -0x1(%rdi,%rcx), %r10d
cmpq %r10, %r9
jge 0x867f
movq %rdx, %rax
incq %rdx
incq %rcx
cmpq %rsi, %rcx
jbe 0x8625
incq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: getSAlms
void getSAlms(uint_t *SA, 
  int_t *s, 
  uint_t *s1, uint_t n, 
  uint_t n1, int level, int cs) {
  uint_t i, j, cur_t, succ_t;

  j=n1-1; s1[j--]=n-1;
  succ_t=0; // s[n-2] must be L-type
  for(i=n-2; i>0; i--) {
    cur_t=(chr(i-1)<chr(i) ||
          (chr(i-1)==chr(i) && succ_t==1))?1:0;
    if(cur_t==0 && succ_t==1) s1[j--]=i;
    succ_t=cur_t;
  }
}

// Assembly:
leaq -0x1(%rcx), %rax
movq %rax, -0x8(%rdx,%r8,8)
addq $-0x2, %rcx
je 0x8dcb
movl 0x8(%rsp), %eax
addq $-0x2, %r8
xorl %edi, %edi
cmpl $0x8, %eax
jne 0x8d62
movq -0x8(%rsi,%rcx,8), %r10
jmp 0x8d68
movzbl -0x1(%rsi,%rcx), %r10d
cmpl $0x8, %eax
jne 0x8d73
movq (%rsi,%rcx,8), %r11
jmp 0x8d78
movzbl (%rsi,%rcx), %r11d
movb $0x1, %r9b
cmpq %r11, %r10
jl 0x8dac
cmpl $0x8, %eax
jne 0x8d8c
movq -0x8(%rsi,%rcx,8), %r9
jmp 0x8d92
movzbl -0x1(%rsi,%rcx), %r9d
cmpl $0x8, %eax
jne 0x8d9d
movq (%rsi,%rcx,8), %r10
jmp 0x8da2
movzbl (%rsi,%rcx), %r10d
cmpq %r10, %r9
sete %r9b
andb %dil, %r9b
movl %r9d, %r10d
xorb $0x1, %r10b
andb %r10b, %dil
cmpb $0x1, %dil
jne 0x8dc3
movq %rcx, (%rdx,%r8,8)
decq %r8
movl %r9d, %edi
decq %rcx
jne 0x8d56
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: getSAlms_DA
void getSAlms_DA(uint_t *SA, int_t* DA,
  int_t *s, 
  uint_t *s1, uint_t n, 
  uint_t n1, int level, int cs, uint_t separator) {
  uint_t i, j, cur_t, succ_t;

/**/
  int_t k=0;
  for(i=n-2; i>0; i--) if(chr(i)==separator)k++;
  DA[n1-1]=k;
/**/
  
  j=n1-1; s1[j--]=n-1;
  succ_t=0; // s[n-2] must be L-type
  for(i=n-2; i>0; i--) {
	  
	if(chr(i)==separator)k--;

    cur_t=(chr(i-1)<chr(i) ||
          (chr(i-1)==chr(i) && succ_t==1))?1:0;
    if(cur_t==0 && succ_t==1){//LMS-suffix
		s1[j]=i;
		DA[j]=k;
		j--;
	}
    succ_t=cur_t;
  }
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x40(%rsp), %rax
movl 0x38(%rsp), %edi
movq %r8, %r10
xorl %r11d, %r11d
addq $-0x2, %r10
je 0x8e0e
movq %r10, %rbx
cmpl $0x8, %edi
jne 0x8df7
movq (%rdx,%rbx,8), %r14
jmp 0x8dfc
movzbl (%rdx,%rbx), %r14d
xorl %r15d, %r15d
cmpq %rax, %r14
sete %r15b
addq %r15, %r11
decq %rbx
jne 0x8dec
movq %r11, -0x8(%rsi,%r9,8)
decq %r8
movq %r8, -0x8(%rcx,%r9,8)
testq %r10, %r10
je 0x8ec6
addq $-0x2, %r9
xorl %r8d, %r8d
cmpl $0x8, %edi
jne 0x8e36
movq (%rdx,%r10,8), %r14
jmp 0x8e3b
movzbl (%rdx,%r10), %r14d
xorl %ebx, %ebx
cmpq %rax, %r14
sete %bpl
cmpl $0x8, %edi
jne 0x8e50
movq -0x8(%rdx,%r10,8), %r15
jmp 0x8e56
movzbl -0x1(%rdx,%r10), %r15d
cmpl $0x8, %edi
jne 0x8e61
movq (%rdx,%r10,8), %r12
jmp 0x8e66
movzbl (%rdx,%r10), %r12d
movb $0x1, %r14b
cmpq %r12, %r15
jl 0x8e9a
cmpl $0x8, %edi
jne 0x8e7a
movq -0x8(%rdx,%r10,8), %r14
jmp 0x8e80
movzbl -0x1(%rdx,%r10), %r14d
cmpl $0x8, %edi
jne 0x8e8b
movq (%rdx,%r10,8), %r15
jmp 0x8e90
movzbl (%rdx,%r10), %r15d
cmpq %r15, %r14
sete %r14b
andb %r8b, %r14b
movb %bpl, %bl
subq %rbx, %r11
movl %r14d, %ebx
xorb $0x1, %bl
andb %bl, %r8b
cmpb $0x1, %r8b
jne 0x8eba
movq %r10, (%rcx,%r9,8)
movq %r11, (%rsi,%r9,8)
decq %r9
movl %r14d, %r8d
decq %r10
jne 0x8e2b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: gsacak
int gsacak(unsigned char *s, uint_t *SA, int_t *LCP, int_t *DA, uint_t n){
  if((s == NULL) || (SA == NULL) || (n < 0)) return -1;

  if((LCP == NULL) && (DA == NULL))
	return gSACA_K((uint_t*)s, SA, n, 256, sizeof(char), 1, 0);
  else if (DA == NULL)
	return gSACA_K_LCP((uint_t*)s, SA, LCP, n, 256, sizeof(char), 1, 0);
  else if (LCP == NULL)
	return gSACA_K_DA((uint_t*)s, SA, DA, n, 256, sizeof(char), 1, 0);
  else
	return gSACA_K_LCP_DA((uint_t*)s, SA, LCP, DA, n, 256, sizeof(char), 1, 0);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %r9b
orb %al, %r9b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x9f02
pushq %rax
movq %rdx, %rax
orq %rcx, %rax
jne 0x9ea0
subq $0x8, %rsp
movl $0x1, %r9d
movq %r8, %rdx
movl $0x100, %ecx            # imm = 0x100
movl $0x1, %r8d
pushq $0x0
callq 0x91ca
jmp 0x9efa
testq %rcx, %rcx
je 0x9ec5
testq %rdx, %rdx
je 0x9edf
subq $0x8, %rsp
movl $0x100, %r9d            # imm = 0x100
pushq $0x0
pushq $0x1
pushq $0x1
callq 0x9a5c
addq $0x20, %rsp
jmp 0x9efe
movq %r8, %rcx
movl $0x100, %r8d            # imm = 0x100
movl $0x1, %r9d
pushq $0x0
pushq $0x1
callq 0x9460
jmp 0x9efa
movq %rcx, %rdx
movq %r8, %rcx
movl $0x100, %r8d            # imm = 0x100
movl $0x1, %r9d
pushq $0x0
pushq $0x1
callq 0x974e
addq $0x10, %rsp
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/felipelouza[P]egap/tools/src/gsacak.c
// Function: gsacak_int
int gsacak_int(uint_t *s, uint_t *SA, int_t *LCP, int_t *DA, uint_t n, uint_t k){
  if((s == NULL) || (SA == NULL) || (n < 0)) return -1;
  
  if((LCP == NULL) && (DA == NULL))
	return gSACA_K((uint_t*)s, SA, n, k, sizeof(int_t), 1, 0);
  else if (DA == NULL)
	return gSACA_K_LCP((uint_t*)s, SA, LCP, n, k, sizeof(int_t), 1, 0);
  else if (LCP == NULL)
	return gSACA_K_DA((uint_t*)s, SA, DA, n, k, sizeof(int_t), 1, 0);
  else
	return gSACA_K_LCP_DA((uint_t*)s, SA, LCP, DA, n, k, sizeof(int_t), 1, 0);
}

// Assembly:
movq %r9, %r10
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %r9b
orb %al, %r9b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x9fa2
pushq %rax
movq %rdx, %rax
orq %rcx, %rax
jne 0x9f49
subq $0x8, %rsp
movl $0x1, %r9d
movq %r8, %rdx
movl %r10d, %ecx
movl $0x8, %r8d
pushq $0x0
callq 0x91ca
jmp 0x9f9a
testq %rcx, %rcx
je 0x9f6b
testq %rdx, %rdx
je 0x9f82
subq $0x8, %rsp
movl %r10d, %r9d
pushq $0x0
pushq $0x1
pushq $0x8
callq 0x9a5c
addq $0x20, %rsp
jmp 0x9f9e
movq %r8, %rcx
movl %r10d, %r8d
movl $0x8, %r9d
pushq $0x0
pushq $0x1
callq 0x9460
jmp 0x9f9a
movq %rcx, %rdx
movq %r8, %rcx
movl %r10d, %r8d
movl $0x8, %r9d
pushq $0x0
pushq $0x1
callq 0x974e
addq $0x10, %rsp
addq $0x8, %rsp
retq
nop