// File: /workspace/github_c_makefile_star2_O3/yhg926[P]public_kssd/command_composite.c
// Function: abv_search
int abv_search (composite_opt_t *composite_opt){
 char* abv_fpath = malloc(PATHLEN);
 FILE *abvfh,*namefh,*abunMtx_idxfh,*abunMtx_fh,*y_l2n_fh;
 sprintf(abv_fpath,"%s/%s.%s",composite_opt->refdir,binVec_dirname,abunMtx_name_suffix);
 if(( namefh = fopen(abv_fpath,"r") ) == NULL) err(errno, "abv_search():%s",abv_fpath);
 int abv_fn = 0; int size = 100;
 char (*tmpfname)[PATHLEN] = malloc(size * PATHLEN);
 while( fgets(tmpfname[abv_fn],PATHLEN,namefh) != NULL) {
  tmpfname[abv_fn][strcspn(tmpfname[abv_fn], "\n")] = 0;
  if (abv_fn == size -1){
   size+=100;
    tmpfname = realloc( tmpfname, size * PATHLEN);
  }
  abv_fn++;
 }
 fclose(namefh);
 double *y_l2n = malloc(sizeof(double) * abv_fn);
 sprintf(abv_fpath,"%s/%s.%s",composite_opt->refdir,binVec_dirname,y_l2n_suffix);
 if((y_l2n_fh = fopen(abv_fpath,"rb") ) == NULL) err(errno, "abv_search():%s",abv_fpath);
 fread(y_l2n,sizeof(double),abv_fn,y_l2n_fh);
 fclose(y_l2n_fh);
 struct stat st;
 sprintf(abv_fpath,"%s/%s.%s",composite_opt->refdir,binVec_dirname,abunMtx_idx_suffix);
 stat(abv_fpath, &st);
 int num_otu = st.st_size / sizeof(int);
 int *abunMtx_idx= malloc(st.st_size);
 if((abunMtx_idxfh = fopen(abv_fpath,"rb") ) == NULL) err(errno, "abv_search():%s",abv_fpath);
 fread(abunMtx_idx,sizeof(int),num_otu,abunMtx_idxfh);
 fclose(abunMtx_idxfh);
  sprintf(abv_fpath,"%s/%s.%s",composite_opt->refdir,binVec_dirname,abunMtx_suffix);
  stat(abv_fpath, &st);
 binVec_t *abunMtx = malloc(st.st_size);
 if((abunMtx_fh = fopen(abv_fpath,"rb") ) == NULL) err(errno, "abv_search():%s",abv_fpath);
 fread(abunMtx,sizeof(binVec_t),st.st_size/sizeof(binVec_t),abunMtx_fh);
 fclose(abunMtx_fh);
 xny_pct_t *xny_pct ;
 int *abv_ids = malloc(sizeof(int) * abv_fn);
#define DFLT (-2)
 tmp_measure = malloc(sizeof(float) * abv_fn);
 if(composite_opt->s == 1) xny_pct = malloc(sizeof(xny_pct_t) *abv_fn);
 for(int i =0; i<composite_opt->num_remaining_args;i++){
  const char *ext = strrchr(composite_opt->remaining_args[i],'.');
  if(strcmp(ext + 1, binVec_suffix) != 0){
   printf("%dth argument %s is not a .abv file, skipped\n",i,composite_opt->remaining_args[i]);
   continue;
  }
  int n_abv_match = 0;
  if( strchr(composite_opt->remaining_args[i],'/') != NULL )
   abv_fpath = composite_opt->remaining_args[i];
  else sprintf(abv_fpath,"%s/%s/%s", composite_opt->refdir,binVec_dirname,composite_opt->remaining_args[i]);
  stat(abv_fpath, &st);
  int abv_len = st.st_size / sizeof(binVec_t);
  binVec_t *tmp_abv = malloc(sizeof(binVec_t)*(abv_len+1));
  if(( abvfh = fopen(abv_fpath,"rb") ) == NULL) err(errno, "abv_search():%s",abv_fpath);
  fread(tmp_abv,sizeof(binVec_t),abv_len,abvfh);
  for(int i = 0; i<abv_fn ; i++) tmp_measure[i] = DFLT;
  if(composite_opt->s == 1) memset(xny_pct,0, sizeof(xny_pct_t) *abv_fn );
  float xl2n = 0;
  for(int d = 0; d< abv_len; d++){
   int ref_idx = tmp_abv[d].ref_idx;
   xl2n += tmp_abv[d].pct*tmp_abv[d].pct;
   for(int j = ref_idx==0?0:abunMtx_idx[ref_idx-1]; j< abunMtx_idx[ref_idx]; j++){
    if(tmp_measure[abunMtx[j].ref_idx] == DFLT) {
     tmp_measure[abunMtx[j].ref_idx] = 0;
     abv_ids[n_abv_match] = abunMtx[j].ref_idx;
     n_abv_match++;
    }
    if(composite_opt->s == 1){
     tmp_measure[abunMtx[j].ref_idx] += (float)fabs(abunMtx[j].pct - tmp_abv[d].pct);
     xny_pct[abunMtx[j].ref_idx].x += tmp_abv[d].pct;
     xny_pct[abunMtx[j].ref_idx].y += abunMtx[j].pct;
    }
    else if (composite_opt->s == 2)
     tmp_measure[abunMtx[j].ref_idx] += (abunMtx[j].pct - tmp_abv[d].pct) * (abunMtx[j].pct - tmp_abv[d].pct);
    else
     tmp_measure[abunMtx[j].ref_idx] += abunMtx[j].pct * tmp_abv[d].pct;
   }
  }
  if(composite_opt->s == 0) {
   for(int n = 0; n < n_abv_match; n++)
    tmp_measure[abv_ids[n]] = tmp_measure[abv_ids[n]] / (sqrt(xl2n)*y_l2n[abv_ids[n]]) ;
  }
  printf("#Sample\t");
  if(composite_opt->s == 1) {
   for(int n = 0; n < n_abv_match; n++)
    tmp_measure[abv_ids[n]] += (2*100 - xny_pct[abv_ids[n]].x - xny_pct[abv_ids[n]].y);
   qsort(abv_ids,n_abv_match,sizeof(int),comparator_measure);
   printf("L1norm\n");
   for(int n = 0; n < n_abv_match; n++) printf("%s\t%lf\n",tmpfname[abv_ids[n]],tmp_measure[abv_ids[n]]);
  }
  else if(composite_opt->s == 2){
   qsort(abv_ids,n_abv_match,sizeof(int),comparator_measure);
   printf("L2norm\n");
   for(int n = 0; n < n_abv_match; n++) printf("%s\t%lf\n",tmpfname[abv_ids[n]],sqrt(tmp_measure[abv_ids[n]]));
  }
  else{
   qsort(abv_ids,n_abv_match,sizeof(int),comparator_measure);
   printf("CosineXY\n");
   for(int n = n_abv_match -1 ; n >= 0; n--) printf("%s\t%lf\n",tmpfname[abv_ids[n]],tmp_measure[abv_ids[n]]);
  }
  fclose(abvfh);
  free(tmp_abv);
 }
 free(tmp_measure);
 free(tmpfname);
 free(abunMtx);
 free(abunMtx_idx);
 free(y_l2n);
 if(composite_opt->s == 1) free(xny_pct);
 return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
movl $0x100, %edi            # imm = 0x100
callq 0x3340
movq %rax, %r12
leaq 0x14(%rbx), %r15
leaq 0xf90c(%rip), %rsi      # 0x153c7
leaq 0xf808(%rip), %rcx      # 0x152ca
leaq 0xf7fc(%rip), %r8       # 0x152c5
movq $0x0, 0x18(%rsp)
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0x11328(%rip), %rsi     # 0x16e0e
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x641c
movq %rax, %r14
movl $0x6400, %edi           # imm = 0x6400
callq 0x3340
movq %rax, %r13
movq %rax, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x3290
testq %rax, %rax
movq %rbx, (%rsp)
movq %r12, 0x10(%rsp)
movq %r15, 0x40(%rsp)
je 0x5bb7
movq %r13, %rdi
movl $0x64, %r13d
movl $0x100, %ebp            # imm = 0x100
xorl %ebx, %ebx
movq %rdi, %r12
leaq 0x12597(%rip), %rsi     # 0x180df
callq 0x3260
addq %r12, %rax
movb $0x0, -0x100(%rbp,%rax)
leal -0x1(%r13), %eax
cmpq %rax, %rbx
jne 0x5b79
addl $0x64, %r13d
movl %r13d, %eax
shll $0x8, %eax
movslq %eax, %rsi
movq %r12, %rdi
callq 0x3350
movq %rax, %r12
incq %rbx
leaq (%r12,%rbp), %r15
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdx
callq 0x3290
movq %r15, %rdi
addq $0x100, %rbp            # imm = 0x100
testq %rax, %rax
jne 0x5b41
movq %r12, 0x8(%rsp)
movl %ebx, %eax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %r12
movq 0x40(%rsp), %r15
jmp 0x5bbe
movq %r13, 0x8(%rsp)
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x3100
leaq (,%rbx,8), %rdi
movq %rdi, 0x48(%rsp)
callq 0x3340
movq %rax, %rbp
leaq 0xf7e5(%rip), %rsi      # 0x153c7
leaq 0xf6e1(%rip), %rcx      # 0x152ca
leaq 0xf6e8(%rip), %r8       # 0x152d8
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0xf463(%rip), %rsi      # 0x15067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x641c
movq %rax, %r14
movl $0x8, %esi
movq %rbp, 0x28(%rsp)
movq %rbp, %rdi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x30c0
movq %r14, %rdi
callq 0x3100
leaq 0xf788(%rip), %rsi      # 0x153c7
leaq 0xf684(%rip), %rcx      # 0x152ca
leaq 0xf673(%rip), %r8       # 0x152c0
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0x98(%rsp), %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x32e0
movq 0x30(%r14), %r14
movq %r14, %rdi
callq 0x3340
movq %rax, %rbp
leaq 0xf3e4(%rip), %rsi      # 0x15067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x641c
movq %r15, %r13
movq %rax, %r15
shrq $0x2, %r14
movslq %r14d, %rdx
movl $0x4, %esi
movq %rbp, 0x20(%rsp)
movq %rbp, %rdi
movq %rax, %rcx
callq 0x30c0
movq %r15, %rdi
callq 0x3100
leaq 0xf702(%rip), %rsi      # 0x153c7
leaq 0xf5fe(%rip), %rcx      # 0x152ca
leaq 0xf5e9(%rip), %r8       # 0x152bc
movq %r12, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3430
leaq 0x98(%rsp), %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x32e0
movq 0x30(%r14), %r14
movq %r14, %rdi
callq 0x3340
movq %rax, %r15
leaq 0xf35e(%rip), %rsi      # 0x15067
movq %r12, %rdi
callq 0x33a0
testq %rax, %rax
je 0x6407
movq %rax, %r12
shrq $0x3, %r14
movl $0x8, %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rax, %rcx
callq 0x30c0
movq %r12, %rdi
callq 0x3100
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x3340
movq %rax, %r14
movq %rbx, %rdi
callq 0x3340
movq %rax, %r12
movq %rax, 0x1876b(%rip)     # 0x1e4c8
movq (%rsp), %rdx
cmpl $0x1, 0x8(%rdx)
jne 0x5d78
movq 0x48(%rsp), %rdi
callq 0x3340
movq (%rsp), %rdx
movq %rax, %rbx
cmpl $0x0, 0x314(%rdx)
jle 0x63b0
movl 0x18(%rsp), %eax
leaq -0x1(%rax), %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, 0x80(%rsp)
leaq 0xc(,%rax,4), %rax
andq $-0x10, %rax
movq %rax, 0x58(%rsp)
xorl %r13d, %r13d
movq %rdx, %rbp
movq 0x318(%rdx), %rax
movq (%rax,%r13,8), %r12
movq %r12, %rdi
movl $0x2e, %esi
callq 0x31d0
leaq 0x1(%rax), %rdi
leaq 0xf4de(%rip), %rsi      # 0x152b8
callq 0x32b0
testl %eax, %eax
je 0x5dff
leaq 0xf59a(%rip), %rdi      # 0x15384
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3170
movq %rbp, %rdx
jmp 0x6396
movq %r13, 0x68(%rsp)
movq %r12, %rdi
movl $0x2f, %esi
callq 0x3160
testq %rax, %rax
jne 0x5e3b
movq 0x10(%rsp), %rdi
leaq 0xf5be(%rip), %rsi      # 0x153e0
movq 0x40(%rsp), %rdx
leaq 0xf49c(%rip), %rcx      # 0x152ca
movq %r12, %r8
movq %rdi, %r12
xorl %eax, %eax
callq 0x3430
movq %r12, %rdi
leaq 0x98(%rsp), %rsi
callq 0x32e0
movq 0xc8(%rsp), %rbp
shrq $0x3, %rbp
movq %rbp, %r13
shlq $0x20, %r13
movabsq $0x100000000, %rax      # imm = 0x100000000
leaq (%rax,%r13), %rdi
sarq $0x1d, %rdi
callq 0x3340
movq %r12, %rdi
movq %rax, %r12
movq %rdi, 0x10(%rsp)
leaq 0xf1e0(%rip), %rsi      # 0x15067
callq 0x33a0
testq %rax, %rax
je 0x6407
sarq $0x20, %r13
movl $0x8, %esi
movq %r12, 0x50(%rsp)
movq %r12, %rdi
movq %r13, %rdx
movq %rax, 0x60(%rsp)
movq %rax, %rcx
callq 0x30c0
cmpl $0x0, 0x18(%rsp)
movq 0x20(%rsp), %r9
movdqa 0x80(%rsp), %xmm6
movq 0x58(%rsp), %rsi
movdqa 0xf31a(%rip), %xmm7     # 0x151f0
pcmpeqd %xmm8, %xmm8
movdqa 0xf33c(%rip), %xmm9     # 0x15220
je 0x5fc0
movq 0x185d7(%rip), %rax     # 0x1e4c8
xorl %ecx, %ecx
movdqa 0xf2e5(%rip), %xmm0     # 0x151e0
movdqa 0xf30d(%rip), %xmm1     # 0x15210
movdqa %xmm6, %xmm2
pxor %xmm7, %xmm2
movdqa %xmm0, %xmm3
pxor %xmm7, %xmm3
movdqa %xmm3, %xmm4
pcmpgtd %xmm2, %xmm4
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm5     # xmm5 = xmm3[1,1,3,3]
pand %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm3     # xmm3 = xmm4[1,1,3,3]
por %xmm5, %xmm3
movd %xmm3, %edx
notl %edx
testb $0x1, %dl
je 0x5f43
movl $0xc0000000, (%rax,%rcx) # imm = 0xC0000000
pxor %xmm8, %xmm3
pextrw $0x4, %xmm3, %edx
testb $0x1, %dl
je 0x5f5a
movl $0xc0000000, 0x4(%rax,%rcx) # imm = 0xC0000000
movdqa %xmm1, %xmm3
pxor %xmm7, %xmm3
movdqa %xmm3, %xmm4
pcmpgtd %xmm2, %xmm4
pcmpeqd %xmm2, %xmm3
pshufd $0xf5, %xmm3, %xmm3     # xmm3 = xmm3[1,1,3,3]
pand %xmm4, %xmm3
pshufd $0xf5, %xmm4, %xmm2     # xmm2 = xmm4[1,1,3,3]
por %xmm3, %xmm2
pxor %xmm8, %xmm2
pextrw $0x0, %xmm2, %edx
testb $0x1, %dl
je 0x5f97
movl $0xc0000000, 0x8(%rax,%rcx) # imm = 0xC0000000
pextrw $0x4, %xmm2, %edx
testb $0x1, %dl
je 0x5fa9
movl $0xc0000000, 0xc(%rax,%rcx) # imm = 0xC0000000
paddq %xmm9, %xmm0
paddq %xmm9, %xmm1
addq $0x10, %rcx
cmpq %rcx, %rsi
jne 0x5f03
movq (%rsp), %rax
movl 0x8(%rax), %r12d
cmpl $0x1, %r12d
jne 0x5fe2
movq %rbx, %rdi
xorl %esi, %esi
movq 0x48(%rsp), %rdx
callq 0x3210
movq 0x20(%rsp), %r9
testl %ebp, %ebp
jle 0x6179
movq 0x184d7(%rip), %rax     # 0x1e4c8
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
pxor %xmm0, %xmm0
xorl %r13d, %r13d
movss 0xf260(%rip), %xmm5     # 0x15268
movaps 0xf221(%rip), %xmm6     # 0x15230
movq 0x50(%rsp), %r10
movslq (%r10,%rcx,8), %rdx
testq %rdx, %rdx
je 0x6024
movl -0x4(%r9,%rdx,4), %esi
jmp 0x6028
xorl %edx, %edx
xorl %esi, %esi
movss 0x4(%r10,%rcx,8), %xmm1
movslq (%r9,%rdx,4), %rdx
cmpl %edx, %esi
jge 0x60b0
movslq %esi, %rsi
movl (%r15,%rsi,8), %r8d
movslq %r8d, %rdi
movss (%rax,%rdi,4), %xmm2
ucomiss %xmm5, %xmm2
jne 0x605a
jp 0x605a
movslq %r13d, %r13
movl %r8d, (%r14,%r13,4)
incl %r13d
xorps %xmm2, %xmm2
movss 0x4(%r15,%rsi,8), %xmm3
cmpl $0x2, %r12d
je 0x6091
cmpl $0x1, %r12d
jne 0x609b
movaps %xmm1, %xmm4
unpcklps %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0],xmm4[1],xmm3[1]
subss %xmm1, %xmm3
andps %xmm6, %xmm3
addss %xmm3, %xmm2
movss %xmm2, (%rax,%rdi,4)
movsd (%rbx,%rdi,8), %xmm2
addps %xmm4, %xmm2
movlps %xmm2, (%rbx,%rdi,8)
jmp 0x60a8
subss %xmm1, %xmm3
mulss %xmm3, %xmm3
jmp 0x609f
mulss %xmm1, %xmm3
addss %xmm2, %xmm3
movss %xmm3, (%rax,%rdi,4)
incq %rsi
cmpq %rsi, %rdx
jne 0x603a
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rcx
cmpq %rbp, %rcx
jne 0x6014
testl %r12d, %r12d
sete %al
testl %r13d, %r13d
setg %bpl
andb %bpl, %al
cmpb $0x1, %al
jne 0x617e
movl %ebp, 0x3c(%rsp)
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
movl %r13d, %r12d
xorps %xmm2, %xmm2
sqrtsd %xmm1, %xmm2
xorl %ebp, %ebp
movq 0x28(%rsp), %rdx
movsd %xmm1, 0x78(%rsp)
movsd %xmm2, 0x70(%rsp)
movq 0x183bd(%rip), %rax     # 0x1e4c8
movslq (%r14,%rbp,4), %rcx
xorps %xmm3, %xmm3
cvtss2sd (%rax,%rcx,4), %xmm3
ucomisd 0xf139(%rip), %xmm1     # 0x15258
movapd %xmm2, %xmm0
jae 0x614b
movapd %xmm1, %xmm0
movsd %xmm3, 0x30(%rsp)
callq 0x3460
movsd 0x30(%rsp), %xmm3
movsd 0x70(%rsp), %xmm2
movsd 0x78(%rsp), %xmm1
movq 0x28(%rsp), %rdx
movslq (%r14,%rbp,4), %rax
mulsd (%rdx,%rax,8), %xmm0
divsd %xmm0, %xmm3
xorps %xmm0, %xmm0
cvtsd2ss %xmm3, %xmm0
movq 0x18362(%rip), %rcx     # 0x1e4c8
movss %xmm0, (%rcx,%rax,4)
incq %rbp
cmpq %rbp, %r12
jne 0x6104
movl 0x3c(%rsp), %ebp
jmp 0x617e
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq 0xf264(%rip), %rdi      # 0x153e9
xorl %eax, %eax
callq 0x3170
movq (%rsp), %rax
movl 0x8(%rax), %eax
cmpl $0x2, %eax
je 0x6262
cmpl $0x1, %eax
jne 0x62e6
testb %bpl, %bpl
je 0x6356
movq 0x18313(%rip), %rax     # 0x1e4c8
movl %r13d, %r12d
xorl %ecx, %ecx
movss 0xf0aa(%rip), %xmm1     # 0x1526c
movslq (%r14,%rcx,4), %rdx
movaps %xmm1, %xmm0
subss (%rbx,%rdx,8), %xmm0
subss 0x4(%rbx,%rdx,8), %xmm0
addss (%rax,%rdx,4), %xmm0
movss %xmm0, (%rax,%rdx,4)
incq %rcx
cmpq %rcx, %r12
jne 0x61c2
movslq %r13d, %rsi
movl $0x4, %edx
movq %r14, %rdi
leaq 0x3ad(%rip), %rcx       # 0x65a5
callq 0x30b0
leaq 0xf535(%rip), %rdi      # 0x15739
callq 0x30a0
testb %bpl, %bpl
movq 0x8(%rsp), %rcx
leaq 0xf1da(%rip), %rbp      # 0x153f2
je 0x6379
xorl %r13d, %r13d
movq %r12, 0x30(%rsp)
movslq (%r14,%r13,4), %rsi
movq 0x18297(%rip), %rax     # 0x1e4c8
xorps %xmm0, %xmm0
cvtss2sd (%rax,%rsi,4), %xmm0
shlq $0x8, %rsi
addq %rcx, %rsi
movq %rbp, %rdi
movb $0x1, %al
movq %rcx, %r12
callq 0x3170
movq %r12, %rcx
movq 0x30(%rsp), %r12
incq %r13
cmpq %r13, %r12
jne 0x6226
jmp 0x6379
movslq %r13d, %rsi
movl $0x4, %edx
movq %r14, %rdi
leaq 0x331(%rip), %rcx       # 0x65a5
callq 0x30b0
leaq 0xf4b2(%rip), %rdi      # 0x15732
callq 0x30a0
testb %bpl, %bpl
je 0x6379
movl %r13d, %r12d
xorl %ebp, %ebp
movslq (%r14,%rbp,4), %r13
movq 0x1822a(%rip), %rax     # 0x1e4c8
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r13,4), %xmm0
ucomisd 0xefa9(%rip), %xmm0     # 0x15258
jb 0x62b7
sqrtsd %xmm0, %xmm0
jmp 0x62bc
callq 0x3460
movq 0x8(%rsp), %rax
leaq 0xf12a(%rip), %rdi      # 0x153f2
shlq $0x8, %r13
addq %rax, %r13
movq %r13, %rsi
movb $0x1, %al
callq 0x3170
incq %rbp
cmpq %rbp, %r12
jne 0x6293
jmp 0x6379
movslq %r13d, %rsi
movl $0x4, %edx
movq %r14, %rdi
leaq 0x2ad(%rip), %rcx       # 0x65a5
callq 0x30b0
leaq 0xf425(%rip), %rdi      # 0x15729
callq 0x30a0
testb %bpl, %bpl
movq 0x8(%rsp), %rbp
leaq 0xf0da(%rip), %rcx      # 0x153f2
je 0x6379
movl %r13d, %r12d
incq %r12
movslq -0x8(%r14,%r12,4), %rsi
movq 0x1819c(%rip), %rax     # 0x1e4c8
xorps %xmm0, %xmm0
cvtss2sd (%rax,%rsi,4), %xmm0
shlq $0x8, %rsi
addq %rbp, %rsi
movq %rcx, %r13
movq %rcx, %rdi
movb $0x1, %al
callq 0x3170
movq %r13, %rcx
decq %r12
cmpq $0x1, %r12
ja 0x6320
jmp 0x6379
movslq %r13d, %rsi
movl $0x4, %edx
movq %r14, %rdi
leaq 0x23d(%rip), %rcx       # 0x65a5
callq 0x30b0
leaq 0xf3c5(%rip), %rdi      # 0x15739
callq 0x30a0
movq 0x60(%rsp), %rdi
callq 0x3100
movq 0x50(%rsp), %rdi
callq 0x3040
movq (%rsp), %rdx
movq 0x68(%rsp), %r13
incq %r13
movslq 0x314(%rdx), %rax
cmpq %rax, %r13
jl 0x5db4
movq 0x18118(%rip), %r12     # 0x1e4c8
movq %r12, %rdi
callq 0x3040
movq 0x8(%rsp), %rdi
callq 0x3040
movq %r15, %rdi
callq 0x3040
movq 0x20(%rsp), %rdi
callq 0x3040
movq 0x28(%rsp), %rdi
callq 0x3040
movq (%rsp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x63f0
movq %rbx, %rdi
callq 0x3040
movl $0x1, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3060
movl (%rax), %edi
leaq 0xefbb(%rip), %rsi      # 0x153d0
movq 0x10(%rsp), %rdx
jmp 0x642d
callq 0x3060
movl (%rax), %edi
leaq 0xefa6(%rip), %rsi      # 0x153d0
movq %r12, %rdx
xorl %eax, %eax
callq 0x3330