LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq (,%rdx,8), %rdi
callq 0x92c8
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x5258
xorl %edx, %edx
movq %r12, %rax
xorl %ecx, %ecx
cmpq %r14, %rcx
je 0x5312
movq (%r13,%rcx,8), %rsi
testq %rsi, %rsi
je 0x5306
movq -0x8(%r15,%rsi,8), %r8
addq %r12, %r8
leaq -0x1(%rdx), %rdi
movq %rdx, %r10
movb (%r8,%rdx), %r9b
incq %rdx
incq %rdi
cmpb %r9b, (%rax,%r10)
jne 0x52dc
testb %r9b, %r9b
jne 0x52c4
leaq -0x1(%rdx), %r9
movq %r9, (%rbx,%rsi,8)
cmpb $0x0, -0x1(%rax,%rdx)
jne 0x52f7
cmpb $0x0, -0x1(%r8,%rdx)
jne 0x52f7
movq %rdx, (%rbx,%rsi,8)
subq $0x1, %rdi
movl $0x0, %edx
cmovaeq %rdi, %rdx
jmp 0x530a
andq $0x0, (%rbx)
incq %rcx
incq %rax
jmp 0x52a9
movq %r13, %rdi
callq 0x939e
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, %ebp
movl %r8d, %r12d
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rsi, %r15
movq %rdi, %r13
leaq (,%rcx,8), %rdi
callq 0x92c8
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rbx
je 0x536a
movq (%r15,%rcx,8), %rsi
movq %rdx, (%rax,%rsi,8)
incq %rcx
movq %rsi, %rdx
jmp 0x5355
leaq -0x1(%rbx), %rcx
movzbl %bpl, %edx
xorl %esi, %esi
movq %r13, %rdi
movq %r13, %r8
xorl %r9d, %r9d
cmpq %rcx, %rsi
je 0x53de
movq (%rax,%rsi,8), %r11
leaq (%r11,%r13), %r10
leaq (,%r11,8), %r11
addq %r13, %r11
cmpl $0x8, %r12d
jne 0x53ac
movq (%r8,%r9,8), %r14
cmpq (%r11,%r9,8), %r14
jne 0x53c0
cmpq %rdx, %r14
jne 0x53bb
jmp 0x53c0
movb (%rdi,%r9), %r14b
cmpb (%r10,%r9), %r14b
jne 0x53c0
cmpb %bpl, %r14b
je 0x53c0
incq %r9
jmp 0x5395
movq %r9, (%rax,%rsi,8)
subq $0x1, %r9
movl $0x0, %r10d
cmovbq %r10, %r9
incq %rsi
addq $0x8, %r8
incq %rdi
jmp 0x537d
xorl %ecx, %ecx
movq (%rsp), %rsi
cmpq %rcx, %rbx
je 0x53fa
movq (%r15,%rcx,8), %rdx
movq (%rax,%rdx,8), %rdx
movq %rdx, (%rsi,%rcx,8)
incq %rcx
jmp 0x53e4
movq %rax, %rdi
callq 0x939e
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]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 0x92c8
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rbx
je 0x5450
movq (%r15,%rcx,8), %rsi
movq %rdx, (%rax,%rsi,8)
incq %rcx
movq %rsi, %rdx
jmp 0x543b
leaq -0x1(%rbx), %rcx
xorl %edx, %edx
movq %r12, %rsi
movq %r12, %rdi
xorl %r8d, %r8d
cmpq %rcx, %rdx
je 0x54b9
decq %r8
cmpl $0x8, %ebp
jne 0x5480
movq 0x8(%rdi,%r8,8), %r9
movq (%rax,%rdx,8), %r10
leaq (%r12,%r10,8), %r10
movq 0x8(%r10,%r8,8), %r10
jmp 0x5493
movzbl 0x1(%rsi,%r8), %r9d
movq (%rax,%rdx,8), %r10
addq %r12, %r10
movzbl 0x1(%r8,%r10), %r10d
incq %r8
cmpq %r10, %r9
je 0x5467
movq %r8, (%rax,%rdx,8)
subq $0x1, %r8
movl $0x0, %r9d
cmovbq %r9, %r8
incq %rdx
addq $0x8, %rdi
incq %rsi
jmp 0x545f
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0x54d1
movq (%r15,%rcx,8), %rdx
movq (%rax,%rdx,8), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
jmp 0x54bb
movq %rax, %rdi
callq 0x939e
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]egap/tools/lib/lcp_array.c
// Function: lcp_array_check
int lcp_array_check(unsigned char *T, int_t *SA, int_t *LCP, uint_t n, int cs, unsigned char separator){
  
  uint_t i,j,k;
  uint_t h;
  uint64_t sum=0;
  int_t maximum=0;

  for(i=1;i<n;i++) {
    
    j=SA[i-1]; k=SA[i];
    for(h=0;j+h<n && k+h<n;h++) if(chr(j+h)!=chr(k+h) || (chr(j+h)==separator && chr(k+h)==separator)) break;
    
    if(LCP[i]!=h) {
      fprintf(stdout,"isNotLCP! Incorrect LCP value: LCP[%" PRIdN "]=%" PRIdN "!=%" PRIdN "\t(%" PRIdN ")\n", i, LCP[i],h, SA[i]);
      return 0;
    }
    sum+=LCP[i];
    maximum=max(maximum, LCP[i]);
  }
  printf("LCP[%d]=%" PRIdN "\n",0,LCP[0]);
  printf("LCP_mean = %.2lf\n", (double)sum/(double)n);
  printf("LCP_max = %" PRIdN "\n", maximum);
  
return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rax
movl %r9d, %r12d
pushq $0x1
popq %rdx
xorl %r15d, %r15d
xorl %ebx, %ebx
cmpq %r14, %rdx
jae 0x5574
movq -0x8(%rsi,%rdx,8), %rcx
movq (%rsi,%rdx,8), %r10
movq %r10, %r11
xorl %r13d, %r13d
cmpq %r14, %rcx
jae 0x554f
cmpq %r14, %r11
jae 0x554f
cmpl $0x8, %r8d
jne 0x5535
movq (%rdi,%rcx,8), %rbp
cmpq (%rdi,%r11,8), %rbp
jne 0x554f
cmpq %r12, %rbp
jne 0x5544
jmp 0x554f
movb (%rdi,%rcx), %bpl
cmpb (%rdi,%r11), %bpl
jne 0x554f
cmpb %r9b, %bpl
je 0x554f
decq %r13
incq %r11
incq %rcx
jmp 0x5514
movq (%rax,%rdx,8), %rcx
movq %r13, %r11
negq %r11
movq %rcx, %rbp
addq %r13, %rbp
jne 0x55f1
subq %r13, %r15
cmpq %r11, %rbx
cmovleq %r11, %rbx
incq %rdx
jmp 0x5500
movq (%rax), %rdx
leaq 0x54cd(%rip), %rdi      # 0xaa4b
xorl %esi, %esi
xorl %eax, %eax
callq 0x20f0
movq %r15, %xmm1
movq 0x4a7c(%rip), %xmm2     # 0xa010
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x4a80(%rip), %xmm3     # 0xa020
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r14, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x5484(%rip), %rdi      # 0xaa58
movb $0x1, %al
callq 0x20f0
leaq 0x5488(%rip), %rdi      # 0xaa6a
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20f0
pushq $0x1
popq %rbx
jmp 0x5611
movq 0x89d0(%rip), %rax      # 0xdfc8
movq (%rax), %rdi
leaq 0x5411(%rip), %rsi      # 0xaa13
xorl %ebx, %ebx
movq %r11, %r8
movq %r10, %r9
xorl %eax, %eax
callq 0x2190
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %r8d, %ebx
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorl %r14d, %r14d
cmpq (%rsp), %r14
je 0x58e6
movq (%r12,%r14,8), %rdx
movq (%r15,%r14,8), %rcx
leaq 0x520d(%rip), %rdi      # 0xaa92
movq %r14, %rsi
xorl %eax, %eax
callq 0x20f0
movq (%r12,%r14,8), %rax
movq %rax, %rbp
movq (%r15,%r14,8), %rcx
leaq 0xa(%rcx), %rdx
testq %rcx, %rcx
pushq $0xa
popq %rcx
cmovgq %rcx, %rdx
addq %rax, %rdx
cmpq %rdx, %rbp
jge 0x58d9
cmpl $0x8, %ebx
jne 0x58bc
movq (%r13,%rbp,8), %rsi
jmp 0x58c2
movzbl (%r13,%rbp), %esi
leaq 0x510c(%rip), %rdi      # 0xa9d5
xorl %eax, %eax
callq 0x20f0
incq %rbp
movq (%r12,%r14,8), %rax
jmp 0x5896
pushq $0xa
popq %rdi
callq 0x2040
incq %r14
jmp 0x5870
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]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
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %rbp
movq %rdx, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq %rcx, %rdi
callq 0x20d0
movq %rax, %r15
movq %r12, %rdi
callq 0x20d0
addq %rax, %r15
movq %r15, %rdi
callq 0x92c8
movq %rax, %r13
leaq 0x5074(%rip), %rsi      # 0xa9b3
xorl %r15d, %r15d
movq %rax, %rdi
movq %rbp, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x2260
leaq 0x4ce2(%rip), %rsi      # 0xa63b
movq %r13, 0x10(%rsp)
movq %r13, %rdi
callq 0x3df1
movq %rax, %r12
movq 0x8(%rsp), %rax
testq %rax, %rax
cmovgq %rax, %r15
pushq $0x8
popq %r13
pushq $0x1
popq %rbp
subq $0x1, %r15
jb 0x59ae
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x2280
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x2280
addq $0x8, %r14
addq $0x8, %rbx
jmp 0x597c
movq %r12, %rdi
callq 0x3e24
movq 0x10(%rsp), %rdi
callq 0x939e
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]egap/tools/src/gsacak.c
// Function: compute_lcp_phi_sparse
void compute_lcp_phi_sparse(int_t *s, uint_t *SA1, 
  uint_t *RA, int_t *LCP, int_t *PLCP,
  uint_t n1, int cs, uint_t separator) {

  uint_t i;

  PLCP[SA1[0]]=0;//PLCP* (lms) is stored in PLCP array
  for(i=1; i<n1; i++)
    PLCP[SA1[i]] = LCP[i]; 

  LCP[SA1[0]]=0;//PHI is stored in LCP array
  for(i=1; i<n1; i++)
    LCP[SA1[i]] = SA1[i-1]; //RA[SA1[i-1]];

  int_t l=0; //q=0;
  for(i=0; i<n1-1;i++){
    if(chr(RA[i])==separator) continue;

    l = max(PLCP[i], l);//consider the LCP-value of the lms-substrings

    while(chr(RA[i]+l)==chr(RA[LCP[i]]+l) && !(chr(RA[i]+l) == separator && chr(RA[LCP[i]]+l)==separator) ) ++l;
    PLCP[i]=l;

    if(LCP[i]==n1-1) l -= RA[i+1]-RA[i];
    else l -= max(RA[i+1]-RA[i], RA[LCP[i]+1]-RA[LCP[i]]);//LCP[i] stores the distance of i-th suffix to its successor
  }

  LCP[0]=0;
  for(i=1; i<n1;i++) LCP[i]=PLCP[SA1[i]];

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x40(%rsp), %rax
movl 0x38(%rsp), %r10d
movq (%rsi), %r11
andq $0x0, (%r8,%r11,8)
movabsq $0x1, %r11
cmpq %r9, %r11
jae 0x5a3d
movq (%rcx,%r11,8), %rbx
movq (%rsi,%r11,8), %r14
movq %rbx, (%r8,%r14,8)
incq %r11
jmp 0x5a27
movq (%rsi), %r11
andq $0x0, (%rcx,%r11,8)
movabsq $0x1, %r11
cmpq %r9, %r11
jae 0x5a66
movq -0x8(%rsi,%r11,8), %rbx
movq (%rsi,%r11,8), %r14
movq %rbx, (%rcx,%r14,8)
incq %r11
jmp 0x5a4f
leaq -0x1(%r9), %rbp
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rbp, -0x8(%rsp)
cmpq %rbp, %rbx
je 0x5b2e
movq (%rdx,%rbx,8), %r12
cmpl $0x8, %r10d
jne 0x5a8d
movq (%rdi,%r12,8), %r11
jmp 0x5a92
movzbl (%rdi,%r12), %r11d
cmpq %rax, %r11
je 0x5b26
movq (%r8,%rbx,8), %r11
cmpq %r14, %r11
cmovgq %r11, %r14
leaq (%rdi,%r12), %r15
leaq (%rdi,%r12,8), %r12
movq (%rcx,%rbx,8), %r11
movq (%rdx,%r11,8), %r11
leaq (%rdi,%r11), %r13
leaq (%rdi,%r11,8), %rbp
cmpl $0x8, %r10d
jne 0x5ad7
movq (%r12,%r14,8), %r11
cmpq (%rbp,%r14,8), %r11
jne 0x5aed
cmpq %rax, (%r12,%r14,8)
je 0x5ae3
jmp 0x5ae8
movzbl (%r15,%r14), %r11d
cmpb (%r13,%r14), %r11b
jne 0x5aed
cmpq %rax, %r11
je 0x5aed
incq %r14
jmp 0x5abe
movq %r14, (%r8,%rbx,8)
movq (%rcx,%rbx,8), %r12
movq (%rdx,%rbx,8), %r13
movq 0x8(%rdx,%rbx,8), %r15
movq -0x8(%rsp), %rbp
cmpq %rbp, %r12
jne 0x5b10
subq %r15, %r13
addq %r13, %r14
jmp 0x5b26
subq %r13, %r15
movq 0x8(%rdx,%r12,8), %r11
subq (%rdx,%r12,8), %r11
cmpq %r11, %r15
cmovaq %r15, %r11
subq %r11, %r14
incq %rbx
jmp 0x5a74
andq $0x0, (%rcx)
movabsq $0x1, %rax
cmpq %r9, %rax
jae 0x5b52
movq (%rsi,%rax,8), %rdx
movq (%r8,%rdx,8), %rdx
movq %rdx, (%rcx,%rax,8)
incq %rax
jmp 0x5b3c
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
movl %ecx, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x5b70
andq $0x0, (%rsi,%rcx,8)
incq %rcx
jmp 0x5b61
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x5b91
cmpl $0x8, %r9d
jne 0x5b83
movq (%rdi,%rcx,8), %r10
jmp 0x5b88
movzbl (%rdi,%rcx), %r10d
incq (%rsi,%r10,8)
incq %rcx
jmp 0x5b72
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x5bb6
movq (%rsi,%rcx,8), %rdi
testl %r8d, %r8d
leaq -0x1(%rdi,%rdx), %r9
cmoveq %rdx, %r9
addq %rdi, %rdx
movq %r9, (%rsi,%rcx,8)
incq %rcx
jmp 0x5b95
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r13
movl %r8d, %eax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl 0x40(%rsp), %ebp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5b5d
decq %r13
movq %r13, %rax
subq $0x1, %rax
jb 0x5c29
movq (%r14,%r13,8), %rcx
andq $0x0, (%r14,%r13,8)
cmpl $0x8, %ebp
jne 0x5c0f
movq (%r12,%rcx,8), %rdx
jmp 0x5c14
movzbl (%r12,%rcx), %edx
movq (%r15,%rdx,8), %rsi
leaq -0x1(%rsi), %rdi
movq %rdi, (%r15,%rdx,8)
movq %rcx, (%r14,%rsi,8)
movq %rax, %r13
jmp 0x5bf5
decq %rbx
movq %rbx, (%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]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, %r12
movl %r8d, %eax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0x40(%rsp), %ebp
movq 0x48(%rsp), %r13
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5b5d
movq (%r14,%r13,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r14,%r13,8)
decq %r12
movq %r12, %rcx
subq $0x1, %rcx
jb 0x5cbe
movq (%rbx,%r12,8), %rdx
andq $0x0, (%rbx,%r12,8)
cmpl $0x8, %ebp
jne 0x5ca4
movq (%r15,%rdx,8), %rsi
jmp 0x5ca9
movzbl (%r15,%rdx), %esi
movq (%r14,%rsi,8), %rdi
leaq -0x1(%rdi), %r8
movq %r8, (%r14,%rsi,8)
movq %rdx, (%rbx,%rdi,8)
movq %rcx, %r12
jmp 0x5c8a
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_O2/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 %r8, %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl 0x48(%rsp), %ebp
movq 0x40(%rsp), %r13
pushq $0x1
popq %r8
movq %rdx, %rdi
movq %rcx, %rsi
movq %rax, %rdx
movl %r9d, %ecx
movl %ebp, %r9d
callq 0x5b5d
movq 0x50(%rsp), %rdx
movq (%r14,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r14,%rdx,8)
decq %r13
movq %r13, %rcx
subq $0x1, %rcx
jb 0x5d7f
movq (%rbx,%r13,8), %rsi
orq $-0x1, (%rbx,%r13,8)
movq (%r12,%r13,8), %rdx
andq $0x0, (%r12,%r13,8)
cmpl $0x8, %ebp
jne 0x5d58
movq (%r15,%rsi,8), %rdi
movq (%r14,%rdi,8), %rdi
movq %rsi, (%rbx,%rdi,8)
movq (%r15,%rsi,8), %rsi
jmp 0x5d6a
movzbl (%r15,%rsi), %edi
movq (%r14,%rdi,8), %rdi
movq %rsi, (%rbx,%rdi,8)
movzbl (%r15,%rsi), %esi
movq (%r14,%rsi,8), %rdi
leaq -0x1(%rdi), %r8
movq %r8, (%r14,%rsi,8)
movq %rdx, (%r12,%rdi,8)
movq %rcx, %r13
jmp 0x5d29
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_O2/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 %r8, %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl 0x48(%rsp), %ebp
movq 0x40(%rsp), %r13
pushq $0x1
popq %r8
movq %rdx, %rdi
movq %rcx, %rsi
movq %rax, %rdx
movl %r9d, %ecx
movl %ebp, %r9d
callq 0x5b5d
movq 0x50(%rsp), %rdx
movq (%r15,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%rdx,8)
decq %r13
movq %r13, %rdx
subq $0x1, %rdx
jb 0x5e3b
movq (%r14,%r13,8), %rsi
andq $0x0, (%r14,%r13,8)
cmpl $0x8, %ebp
jne 0x5e10
movq (%r12,%rsi,8), %rdi
movq (%r15,%rdi,8), %rdi
movq %rsi, (%r14,%rdi,8)
movq (%r12,%rsi,8), %rsi
jmp 0x5e22
movzbl (%r12,%rsi), %edi
movq (%r15,%rdi,8), %rdi
movq %rsi, (%r14,%rdi,8)
movzbl (%r12,%rsi), %esi
movq (%rbx,%r13,8), %rdi
movq (%r15,%rsi,8), %r8
leaq -0x1(%r8), %r9
movq %r9, (%r15,%rsi,8)
movq %rdi, (%rbx,%r8,8)
movq %rdx, %r13
jmp 0x5dea
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_O2/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
pushq $0x1
popq %r8
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5b5d
movq 0x58(%rsp), %rdx
movq (%r15,%rdx,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%rdx,8)
decq %rbp
movq %rbp, %rdx
subq $0x1, %rdx
jb 0x5f28
movq (%r14,%rbp,8), %rdi
orq $-0x1, (%r14,%rbp,8)
movq (%r13,%rbp,8), %rsi
andq $0x0, (%r13,%rbp,8)
cmpl $0x8, 0x50(%rsp)
jne 0x5eef
movq (%r12,%rdi,8), %r8
movq (%r15,%r8,8), %r8
movq %rdi, (%r14,%r8,8)
movq (%rbx,%rbp,8), %r8
movq (%r12,%rdi,8), %r9
movq (%r15,%r9,8), %r9
movq %r8, (%rbx,%r9,8)
movq (%r12,%rdi,8), %rdi
jmp 0x5f12
movzbl (%r12,%rdi), %r8d
movq (%r15,%r8,8), %r8
movq %rdi, (%r14,%r8,8)
movq (%rbx,%rbp,8), %r8
movzbl (%r12,%rdi), %r9d
movq (%r15,%r9,8), %r9
movq %r8, (%rbx,%r9,8)
movzbl (%r12,%rdi), %edi
movq (%r15,%rdi,8), %r8
leaq -0x1(%r8), %r9
movq %r9, (%r15,%rdi,8)
movq %rsi, (%r13,%r8,8)
movq %rdx, %rbp
jmp 0x5eac
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_O2/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, (%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x5b5d
movq (%rsp), %rsi
incq (%r15)
cmpq %rbx, %r14
je 0x5ff0
movq (%r13,%rbx,8), %rax
testq %rax, %rax
je 0x5feb
leaq -0x1(%rax), %rcx
cmpl $0x8, %ebp
jne 0x5fb7
movq -0x8(%r12,%rax,8), %rdx
cmpq (%r12,%rax,8), %rdx
jl 0x5feb
movq (%r15,%rdx,8), %rdx
movq %rcx, (%r13,%rdx,8)
movq -0x8(%r12,%rax,8), %rax
jmp 0x5fd1
movzbl -0x1(%r12,%rax), %edx
cmpb (%r12,%rax), %dl
jb 0x5feb
movq (%r15,%rdx,8), %rax
movq %rcx, (%r13,%rax,8)
movzbl (%r12,%rcx), %eax
testq %rsi, %rsi
setne %cl
incq (%r15,%rax,8)
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x5feb
andq $0x0, (%r13,%rbx,8)
incq %rbx
jmp 0x5f84
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]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
movl %r8d, %eax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5b5d
decq %r14
movq %r14, %rax
subq $0x1, %r14
jb 0x60a6
movq (%r13,%rax,8), %rdx
testq %rdx, %rdx
je 0x603a
leaq -0x1(%rdx), %rcx
cmpl $0x8, %ebp
jne 0x6076
movq -0x8(%r12,%rdx,8), %rsi
cmpq (%r12,%rdx,8), %rsi
jg 0x603a
movq (%r15,%rsi,8), %rsi
cmpq %rax, %rsi
jae 0x603a
movq %rcx, (%r13,%rsi,8)
movq -0x8(%r12,%rdx,8), %rcx
jmp 0x6095
movzbl -0x1(%r12,%rdx), %esi
cmpb (%r12,%rdx), %sil
ja 0x603a
movq (%r15,%rsi,8), %rdx
cmpq %rax, %rdx
jae 0x603a
movq %rcx, (%r13,%rdx,8)
movzbl (%r12,%rcx), %ecx
decq (%r15,%rcx,8)
testq %rbx, %rbx
jne 0x603a
andq $0x0, (%r13,%rax,8)
jmp 0x603a
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]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, (%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r8d, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x5b5d
movq 0x48(%rsp), %r8
movq (%rsp), %rdi
incq (%r15)
cmpq %rbx, %r14
je 0x615a
movq (%r13,%rbx,8), %rax
testq %rax, %rax
je 0x6155
cmpl $0x8, %ebp
jne 0x611a
movq -0x8(%r12,%rax,8), %rcx
cmpq (%r12,%rax,8), %rcx
jge 0x6126
jmp 0x6155
movzbl -0x1(%r12,%rax), %ecx
cmpb (%r12,%rax), %cl
jb 0x6155
cmpq %r8, %rcx
je 0x613f
decq %rax
movq (%r15,%rcx,8), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r15,%rcx,8)
movq %rax, (%r13,%rdx,8)
testq %rdi, %rdi
setne %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x6155
andq $0x0, (%r13,%rbx,8)
incq %rbx
jmp 0x60f9
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]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 %r8, %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
movl %ebp, %r9d
callq 0x5b5d
movq 0x48(%rsp), %r8
decq %r14
movq %r14, %rax
subq $0x1, %r14
jb 0x6205
movq (%r13,%rax,8), %rcx
testq %rcx, %rcx
je 0x61a9
cmpl $0x8, %ebp
jne 0x61ce
movq -0x8(%r12,%rcx,8), %rdx
cmpq (%r12,%rcx,8), %rdx
jg 0x61a9
jmp 0x61da
movzbl -0x1(%r12,%rcx), %edx
cmpb (%r12,%rcx), %dl
ja 0x61a9
movq (%r15,%rdx,8), %rsi
cmpq %rax, %rsi
jae 0x61a9
cmpq %r8, %rdx
je 0x61f8
decq %rcx
leaq -0x1(%rsi), %rdi
movq %rdi, (%r15,%rdx,8)
movq %rcx, (%r13,%rsi,8)
testq %rbx, %rbx
jne 0x61a9
andq $0x0, (%r13,%rax,8)
jmp 0x61a9
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]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
movl %r9d, %eax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %r9d
xorl %ebp, %ebp
movq %rdx, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x5b5d
movl 0x40(%rsp), %r9d
movq 0x48(%rsp), %r8
incq (%r14)
cmpq %rbp, %rbx
je 0x6aeb
movq (%r13,%rbp,8), %rcx
testq %rcx, %rcx
je 0x6ae6
leaq -0x1(%rcx), %rax
cmpl $0x8, %r9d
jne 0x6ab3
movq -0x8(%r15,%rcx,8), %rdx
cmpq (%r15,%rcx,8), %rdx
setl %sil
cmpq %r8, %rdx
sete %dil
orb %sil, %dil
jne 0x6ae6
movq (%r14,%rdx,8), %rdx
movq %rax, (%r13,%rdx,8)
movq -0x8(%r15,%rcx,8), %rax
jmp 0x6ad2
movzbl -0x1(%r15,%rcx), %edx
cmpb (%r15,%rcx), %dl
jb 0x6ae6
cmpq %r8, %rdx
je 0x6ae6
movq (%r14,%rdx,8), %rcx
movq %rax, (%r13,%rcx,8)
movzbl (%r15,%rax), %eax
movq (%r12,%rbp,8), %rcx
movq (%r14,%rax,8), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r14,%rax,8)
movq %rcx, (%r12,%rdx,8)
incq %rbp
jmp 0x6a71
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]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
pushq $0x1
popq %r8
movq %rdx, %rdi
movq %rcx, %rsi
movq %rbx, %rdx
movl %r9d, %ecx
movl %ebp, %r9d
callq 0x5b5d
movq 0x48(%rsp), %r9
decq %rbx
movq %rbx, %rax
subq $0x1, %rbx
jb 0x6bcc
movq (%r13,%rax,8), %rdx
testq %rdx, %rdx
je 0x6b38
leaq -0x1(%rdx), %rcx
cmpl $0x8, %ebp
jne 0x6b86
movq -0x8(%r15,%rdx,8), %rdi
cmpq (%r15,%rdx,8), %rdi
jg 0x6b38
movq (%r14,%rdi,8), %rsi
cmpq %rax, %rsi
setae %r8b
cmpq %r9, %rdi
sete %dil
orb %r8b, %dil
jne 0x6b38
movq %rcx, (%r13,%rsi,8)
movq -0x8(%r15,%rdx,8), %rcx
jmp 0x6bb3
movzbl -0x1(%r15,%rdx), %esi
cmpb (%r15,%rdx), %sil
ja 0x6b38
movq (%r14,%rsi,8), %rdx
cmpq %rax, %rdx
setb %dil
cmpq %r9, %rsi
setne %sil
testb %sil, %dil
je 0x6b38
movq %rcx, (%r13,%rdx,8)
movzbl (%r15,%rcx), %ecx
movq (%r12,%rax,8), %rax
movq (%r14,%rcx,8), %rdx
leaq -0x1(%rdx), %rsi
movq %rsi, (%r14,%rcx,8)
movq %rax, (%r12,%rdx,8)
jmp 0x6b38
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]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
movl %r8d, %eax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
callq 0x5b5d
xorl %eax, %eax
cmpq %rax, %rbx
je 0x7492
andq $0x0, (%r14,%rax,8)
incq %rax
jmp 0x7483
leaq -0x2(%rbx), %rax
xorl %esi, %esi
movq %rax, %rcx
subq $0x1, %rax
jb 0x74fc
cmpl $0x8, %ebp
jne 0x74c7
movq (%r12,%rcx,8), %rdi
movb $0x1, %dl
cmpq %rdi, (%r12,%rax,8)
jl 0x74f8
sete %dl
andb %sil, %dl
andb $0x1, %sil
cmpb %dl, %sil
je 0x74f8
movq (%r12,%rcx,8), %rsi
jmp 0x74e8
movb (%r12,%rcx), %dil
movb $0x1, %dl
cmpb %dil, -0x1(%r12,%rcx)
jb 0x74f8
sete %dl
andb %sil, %dl
andb $0x1, %sil
cmpb %dl, %sil
je 0x74f8
movzbl (%r12,%rcx), %esi
movq (%r15,%rsi,8), %rdi
leaq -0x1(%rdi), %r8
movq %r8, (%r15,%rsi,8)
movq %rcx, (%r14,%rdi,8)
movl %edx, %esi
jmp 0x7498
decq %rbx
movq %rbx, (%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %r8d, %eax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq 0x40(%rsp), %rbp
pushq $0x1
popq %r8
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %eax, %ecx
callq 0x5b5d
xorl %eax, %eax
cmpq %rax, %r14
je 0x7553
andq $0x0, (%r13,%rax,8)
incq %rax
jmp 0x7543
movq (%r15,%rbp,8), %rax
leaq -0x1(%rax), %rcx
movq %rcx, (%r15,%rbp,8)
leaq -0x1(%r14), %rcx
movq %rcx, (%r13)
addq $-0x2, %r14
movq %r14, (%r13,%rax,8)
xorl %esi, %esi
movq %r14, %rdx
movq %r14, %rax
subq $0x1, %r14
jb 0x761b
cmpl $0x8, %ebx
jne 0x75ae
movq (%r12,%rax,8), %rdi
movb $0x1, %cl
cmpq %rdi, (%r12,%r14,8)
jl 0x75f6
sete %cl
andb %sil, %cl
andb $0x1, %sil
cmpb %cl, %sil
je 0x75f6
cmpq %rbp, (%r12,%rax,8)
jne 0x75eb
movq (%r12,%rdx,8), %rdx
jmp 0x75d9
movb (%r12,%rax), %dil
movb $0x1, %cl
cmpb %dil, -0x1(%r12,%rax)
jb 0x75f6
sete %cl
andb %sil, %cl
andb $0x1, %sil
cmpb %cl, %sil
je 0x75f6
movzbl (%r12,%rax), %esi
cmpq %rbp, %rsi
jne 0x7600
movzbl (%r12,%rdx), %edx
movq (%r15,%rdx,8), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, (%r15,%rdx,8)
andq $0x0, 0x8(%r13,%rsi,8)
cmpl $0x8, %ebx
jne 0x75fb
movq (%r12,%rax,8), %rsi
jmp 0x7600
movq %rdx, %rax
jmp 0x7611
movzbl (%r12,%rax), %esi
movq (%r15,%rsi,8), %rdx
leaq -0x1(%rdx), %rdi
movq %rdi, (%r15,%rsi,8)
movq %rax, (%r13,%rdx,8)
movl %ecx, %esi
movq %rax, %rdx
jmp 0x7575
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]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:
pushq $-0x1
popq %r9
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rdx, %r8
cmpq $0x2, %r8
jl 0x7671
movq -0x8(%rdi,%r8,8), %r10
movq %rax, -0x8(%rdi,%r8,8)
cmpl $0x8, %ecx
jne 0x7656
movq (%rsi,%r10,8), %r11
jmp 0x765b
movzbl (%rsi,%r10), %r11d
cmpq %r9, %r11
cmovneq %r11, %rdx
movq %r10, (%rdi,%rdx,8)
decq %rdx
decq %r8
movq %r11, %r9
jmp 0x763b
retq
// File: /workspace/github_c_makefile_star2_O2/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:
leaq -0x1(%rsi), %rdx
cmpq %rcx, %rdx
jne 0x7b9a
movabsq $0x1, %rax
retq
pushq %rbx
leaq (%rdi,%rcx,8), %rax
addq $0x8, %rax
leaq (%rcx,%rdi), %r10
incq %r10
xorl %r9d, %r9d
cmpl $0x8, %r8d
jne 0x7bbe
movq -0x8(%rax,%r9,8), %rbx
movq (%rax,%r9,8), %r11
jmp 0x7bc9
movzbl (%r10,%r9), %r11d
movzbl -0x1(%r10,%r9), %ebx
incq %r9
cmpq %rbx, %r11
jge 0x7bad
leaq (%rdi,%rcx,8), %r10
addq %rcx, %rdi
movq %rcx, %r11
notq %r11
addq %rsi, %r11
xorl %eax, %eax
leaq (%rcx,%r9), %rsi
cmpq %rdx, %rsi
ja 0x7c3b
cmpl $0x8, %r8d
jne 0x7bfd
movq -0x8(%r10,%r9,8), %rbx
movq (%r10,%r9,8), %rsi
jmp 0x7c08
movzbl (%rdi,%r9), %esi
movzbl -0x1(%rdi,%r9), %ebx
cmpq %rbx, %rsi
jg 0x7c3b
cmpq %r9, %r11
je 0x7c33
cmpl $0x8, %r8d
jne 0x7c23
movq -0x8(%r10,%r9,8), %rbx
movq (%r10,%r9,8), %rsi
jmp 0x7c2e
movzbl (%rdi,%r9), %esi
movzbl -0x1(%rdi,%r9), %ebx
cmpq %rbx, %rsi
jge 0x7c36
movq %r9, %rax
incq %r9
jmp 0x7be3
incq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbx
movl 0x10(%rsp), %eax
leaq -0x1(%rcx), %rdi
movq %rdi, -0x8(%rdx,%r8,8)
addq $-0x2, %r8
addq $-0x2, %rcx
xorl %edi, %edi
movq %rcx, %r9
subq $0x1, %rcx
jb 0x81dd
cmpl $0x8, %eax
jne 0x81ab
movq (%rsi,%rcx,8), %r11
movq (%rsi,%r9,8), %rbx
movb $0x1, %r10b
cmpq %rbx, %r11
jge 0x81be
jmp 0x81d8
movzbl -0x1(%rsi,%r9), %r11d
movzbl (%rsi,%r9), %ebx
movb $0x1, %r10b
cmpb %bl, %r11b
jb 0x81d8
cmpq %rbx, %r11
sete %r10b
andb %dil, %r10b
andb $0x1, %dil
cmpb %r10b, %dil
je 0x81d8
movq %r9, (%rdx,%r8,8)
decq %r8
movl %r10d, %edi
jmp 0x818b
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
movq 0x38(%rsp), %rax
movl 0x30(%rsp), %edi
leaq -0x2(%r8), %r10
xorl %r11d, %r11d
movq %r10, %r14
movq %r10, %rbx
subq $0x1, %rbx
jb 0x8223
cmpl $0x8, %edi
jne 0x820c
movq (%rdx,%r14,8), %r14
jmp 0x8211
movzbl (%rdx,%r14), %r14d
xorl %r15d, %r15d
cmpq %rax, %r14
sete %r15b
addq %r15, %r11
movq %rbx, %r14
jmp 0x81fb
movq %r11, -0x8(%rsi,%r9,8)
decq %r8
movq %r8, -0x8(%rcx,%r9,8)
addq $-0x2, %r9
xorl %r8d, %r8d
movq %r10, %rbx
subq $0x1, %r10
jb 0x82a7
cmpl $0x8, %edi
jne 0x8264
movq (%rdx,%rbx,8), %r14
xorl %r15d, %r15d
cmpq %rax, %r14
sete %r15b
subq %r15, %r11
movq (%rdx,%r10,8), %r15
movb $0x1, %bpl
cmpq %r14, %r15
jge 0x8284
jmp 0x82a2
movzbl (%rdx,%rbx), %r14d
xorl %r15d, %r15d
cmpq %rax, %r14
sete %r15b
subq %r15, %r11
movzbl -0x1(%rdx,%rbx), %r15d
movb $0x1, %bpl
cmpb %r14b, %r15b
jb 0x82a2
cmpq %r14, %r15
sete %bpl
andb %r8b, %bpl
andb $0x1, %r8b
cmpb %bpl, %r8b
je 0x82a2
movq %rbx, (%rcx,%r9,8)
movq %r11, (%rsi,%r9,8)
decq %r9
movl %ebp, %r8d
jmp 0x8237
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
je 0x9158
pushq $-0x1
popq %rax
retq
pushq %rax
movq %rdx, %rax
orq %rcx, %rax
jne 0x9180
subq $0x8, %rsp
pushq $0x1
popq %rax
pushq $0x1
popq %r9
movq %r8, %rdx
movl $0x100, %ecx            # imm = 0x100
movl %eax, %r8d
pushq $0x0
callq 0x856f
jmp 0x91d6
testq %rcx, %rcx
je 0x91a5
testq %rdx, %rdx
je 0x91bd
subq $0x8, %rsp
movl $0x100, %r9d            # imm = 0x100
pushq $0x0
pushq $0x1
pushq $0x1
callq 0x8d97
addq $0x20, %rsp
jmp 0x91d8
pushq $0x1
popq %r9
movq %r8, %rcx
movl $0x100, %r8d            # imm = 0x100
pushq $0x0
pushq $0x1
callq 0x87e2
jmp 0x91d6
pushq $0x1
popq %r9
movq %rcx, %rdx
movq %r8, %rcx
movl $0x100, %r8d            # imm = 0x100
pushq $0x0
pushq $0x1
callq 0x8aab
popq %rcx
popq %rdx
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %r10b
orb %al, %r10b
je 0x91f3
pushq $-0x1
popq %rax
retq
pushq %rax
movq %rdx, %rax
orq %rcx, %rax
jne 0x921c
subq $0x8, %rsp
pushq $0x8
popq %rax
pushq $0x1
popq %r10
movq %r8, %rdx
movl %r9d, %ecx
movl %eax, %r8d
movq %r10, %r9
pushq $0x0
callq 0x856f
jmp 0x926a
testq %rcx, %rcx
je 0x923b
testq %rdx, %rdx
je 0x9252
subq $0x8, %rsp
pushq $0x0
pushq $0x1
pushq $0x8
callq 0x8d97
addq $0x20, %rsp
jmp 0x926c
pushq $0x8
popq %rax
movq %r8, %rcx
movl %r9d, %r8d
movl %eax, %r9d
pushq $0x0
pushq $0x1
callq 0x87e2
jmp 0x926a
pushq $0x8
popq %rax
movq %rcx, %rdx
movq %r8, %rcx
movl %r9d, %r8d
movl %eax, %r9d
pushq $0x0
pushq $0x1
callq 0x8aab
popq %rcx
popq %rdx
addq $0x8, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]egap/tools/src/malloc_count.c
// Function: malloc
extern void* malloc(size_t size)
{
    void* ret;

    if (size == 0) return NULL;

    if (real_malloc)
    {
        /* call read malloc procedure in libc */
        ret = (*real_malloc)(alignment + size);

        inc_count(size);
        if (log_operations && size >= log_operations_threshold) {
            fprintf(stderr, PPREFIX "malloc(%'lld) = %p   (current %'lld)\n",
                    (long long)size, (char*)ret + alignment, curr);
        }

        /* prepend allocation size and check sentinel */
        *(size_t*)ret = size;
        *(size_t*)((char*)ret + alignment - sizeof(size_t)) = sentinel;

        return (char*)ret + alignment;
    }
    else
    {
        if (init_heap_use + alignment + size > INIT_HEAP_SIZE) {
            fprintf(stderr, PPREFIX "init heap full !!!\n");
            exit(EXIT_FAILURE);
        }

        ret = init_heap + init_heap_use;
        init_heap_use += alignment + size;

        /* prepend allocation size and check sentinel */
        *(size_t*)ret = size;
        *(size_t*)((char*)ret + alignment - sizeof(size_t)) = sentinel;

        if (log_operations_init_heap) {
            fprintf(stderr, PPREFIX "malloc(%'lld) = %p   on init heap\n",
                    (long long)size, (char*)ret + alignment);
        }

        return (char*)ret + alignment;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x92f3
movq %rdi, %rbx
movq 0x4eb5(%rip), %rax      # 0xe190
testq %rax, %rax
je 0x92f8
leaq 0x10(%rbx), %rdi
callq *%rax
movq %rax, %r14
movq %rbx, %rdi
callq 0x9360
jmp 0x9321
xorl %r14d, %r14d
jmp 0x9331
movq 0x4e99(%rip), %rax      # 0xe198
leaq (%rbx,%rax), %rcx
addq $0x10, %rcx
cmpq $0x100001, %rcx         # imm = 0x100001
jae 0x933c
leaq 0x4e89(%rip), %r14      # 0xe1a0
addq %rax, %r14
movq %rcx, 0x4e77(%rip)      # 0xe198
movq %rbx, (%r14)
movl $0xdeadc0de, %eax       # imm = 0xDEADC0DE
movq %rax, 0x8(%r14)
addq $0x10, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x4cb5(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x17a6(%rip), %rdi      # 0xaaf3
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
callq 0x2280
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/felipelouza[P]egap/tools/src/malloc_count.c
// Function: calloc
extern void* calloc(size_t nmemb, size_t size)
{
    void* ret;
    size *= nmemb;
    if (!size) return NULL;
    ret = malloc(size);
    memset(ret, 0, size);
    return ret;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
imulq %rsi, %rbx
testq %rbx, %rbx
je 0x946c
movq %rbx, %rdi
callq 0x92c8
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x2150
xorl %eax, %eax
popq %rbx
retq