// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movl $0x100, %edi            # imm = 0x100
callq 0x3310
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x14, %rdx
leaq 0x15b6f(%rip), %rsi     # 0x1c30f
leaq 0x15a6b(%rip), %rcx     # 0x1c212
leaq 0x15a5f(%rip), %r8      # 0x1c20d
movb $0x0, %al
callq 0x3400
movq -0x10(%rbp), %rdi
leaq 0x17518(%rip), %rsi     # 0x1dcd8
callq 0x3370
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x67e8
callq 0x3050
movl (%rax), %edi
movq -0x10(%rbp), %rdx
leaq 0x15b37(%rip), %rsi     # 0x1c318
movb $0x0, %al
callq 0x3300
movl $0x0, -0x3c(%rbp)
movl $0x64, -0x40(%rbp)
movl -0x40(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rdi
callq 0x3310
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
movslq -0x3c(%rbp), %rax
shlq $0x8, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x3260
cmpq $0x0, %rax
je 0x68a4
movq -0x48(%rbp), %rax
movslq -0x3c(%rbp), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
movq %rax, -0x158(%rbp)
movq -0x48(%rbp), %rdi
movslq -0x3c(%rbp), %rax
shlq $0x8, %rax
addq %rax, %rdi
leaq 0x18758(%rip), %rsi     # 0x1efaf
callq 0x3230
movq %rax, %rcx
movq -0x158(%rbp), %rax
movb $0x0, (%rax,%rcx)
movl -0x3c(%rbp), %eax
movl -0x40(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x6896
movl -0x40(%rbp), %eax
addl $0x64, %eax
movl %eax, -0x40(%rbp)
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %eax
shll $0x8, %eax
movslq %eax, %rsi
callq 0x3320
movq %rax, -0x48(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x6808
movq -0x20(%rbp), %rdi
callq 0x30e0
movslq -0x3c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x14, %rdx
leaq 0x15a3e(%rip), %rsi     # 0x1c30f
leaq 0x1593a(%rip), %rcx     # 0x1c212
leaq 0x15941(%rip), %r8      # 0x1c220
movb $0x0, %al
callq 0x3400
movq -0x10(%rbp), %rdi
leaq 0x15766(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x6919
callq 0x3050
movl (%rax), %edi
movq -0x10(%rbp), %rdx
leaq 0x15a06(%rip), %rsi     # 0x1c318
movb $0x0, %al
callq 0x3300
movq -0x50(%rbp), %rdi
movslq -0x3c(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl $0x8, %esi
callq 0x30a0
movq -0x38(%rbp), %rdi
callq 0x30e0
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x14, %rdx
leaq 0x159c4(%rip), %rsi     # 0x1c30f
leaq 0x158c0(%rip), %rcx     # 0x1c212
leaq 0x158af(%rip), %r8      # 0x1c208
movb $0x0, %al
callq 0x3400
movq -0x10(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x32b0
movq -0xb0(%rbp), %rax
shrq $0x2, %rax
movl %eax, -0xe4(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x3310
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x156b8(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
jne 0x69c7
callq 0x3050
movl (%rax), %edi
movq -0x10(%rbp), %rdx
leaq 0x15958(%rip), %rsi     # 0x1c318
movb $0x0, %al
callq 0x3300
movq -0xf0(%rbp), %rdi
movslq -0xe4(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl $0x4, %esi
callq 0x30a0
movq -0x28(%rbp), %rdi
callq 0x30e0
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x14, %rdx
leaq 0x15910(%rip), %rsi     # 0x1c30f
leaq 0x1580c(%rip), %rcx     # 0x1c212
leaq 0x157f7(%rip), %r8      # 0x1c204
movb $0x0, %al
callq 0x3400
movq -0x10(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x32b0
movq -0xb0(%rbp), %rdi
callq 0x3310
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x15615(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x6a6a
callq 0x3050
movl (%rax), %edi
movq -0x10(%rbp), %rdx
leaq 0x158b5(%rip), %rsi     # 0x1c318
movb $0x0, %al
callq 0x3300
movq -0xf8(%rbp), %rdi
movq -0xb0(%rbp), %rdx
shrq $0x3, %rdx
movq -0x30(%rbp), %rcx
movl $0x8, %esi
callq 0x30a0
movq -0x30(%rbp), %rdi
callq 0x30e0
movslq -0x3c(%rbp), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, -0x108(%rbp)
movslq -0x3c(%rbp), %rdi
shlq $0x2, %rdi
callq 0x3310
movq %rax, 0x1d9fd(%rip)     # 0x244b8
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x6ad9
movslq -0x3c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x100(%rbp)
movl $0x0, -0x10c(%rbp)
movl -0x10c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x314(%rcx), %eax
jge 0x73d1
movq -0x8(%rbp), %rax
movq 0x318(%rax), %rax
movslq -0x10c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x2e, %esi
callq 0x31b0
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rdi
addq $0x1, %rdi
leaq 0x156ce(%rip), %rsi     # 0x1c200
callq 0x3280
cmpl $0x0, %eax
je 0x6b6b
movl -0x10c(%rbp), %esi
movq -0x8(%rbp), %rax
movq 0x318(%rax), %rax
movslq -0x10c(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x1576d(%rip), %rdi     # 0x1c2cc
movb $0x0, %al
callq 0x3150
jmp 0x73bd
movl $0x0, -0x11c(%rbp)
movq -0x8(%rbp), %rax
movq 0x318(%rax), %rax
movslq -0x10c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x2f, %esi
callq 0x3140
cmpq $0x0, %rax
je 0x6bb7
movq -0x8(%rbp), %rax
movq 0x318(%rax), %rax
movslq -0x10c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x10(%rbp)
jmp 0x6bee
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x14, %rdx
movq -0x8(%rbp), %rax
movq 0x318(%rax), %rax
movslq -0x10c(%rbp), %rcx
movq (%rax,%rcx,8), %r8
leaq 0x15748(%rip), %rsi     # 0x1c328
leaq 0x1562b(%rip), %rcx     # 0x1c212
movb $0x0, %al
callq 0x3400
movq -0x10(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x32b0
movq -0xb0(%rbp), %rax
shrq $0x3, %rax
movl %eax, -0x120(%rbp)
movl -0x120(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3310
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x15421(%rip), %rsi     # 0x1c057
callq 0x3370
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x6c5e
callq 0x3050
movl (%rax), %edi
movq -0x10(%rbp), %rdx
leaq 0x156c1(%rip), %rsi     # 0x1c318
movb $0x0, %al
callq 0x3300
movq -0x128(%rbp), %rdi
movslq -0x120(%rbp), %rdx
movq -0x18(%rbp), %rcx
movl $0x8, %esi
callq 0x30a0
movl $0x0, -0x12c(%rbp)
movl -0x12c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0x6cbb
movq 0x1d822(%rip), %rax     # 0x244b8
movslq -0x12c(%rbp), %rcx
movss 0x15547(%rip), %xmm0    # 0x1c1ec
movss %xmm0, (%rax,%rcx,4)
movl -0x12c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x12c(%rbp)
jmp 0x6c84
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x6cdb
movq -0x100(%rbp), %rdi
movslq -0x3c(%rbp), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x31f0
xorps %xmm0, %xmm0
movss %xmm0, -0x130(%rbp)
movl $0x0, -0x134(%rbp)
movl -0x134(%rbp), %eax
cmpl -0x120(%rbp), %eax
jge 0x7019
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
movl (%rax,%rcx,8), %eax
movl %eax, -0x138(%rbp)
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm2
movss -0x130(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x130(%rbp)
cmpl $0x0, -0x138(%rbp)
jne 0x6d6c
xorl %eax, %eax
movl %eax, -0x15c(%rbp)
jmp 0x6d88
movq -0xf0(%rbp), %rax
movl -0x138(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x15c(%rbp)
movl -0x15c(%rbp), %eax
movl %eax, -0x13c(%rbp)
movl -0x13c(%rbp), %eax
movq -0xf0(%rbp), %rcx
movslq -0x138(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x7003
movq 0x1d700(%rip), %rax     # 0x244b8
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
movss (%rax,%rcx,4), %xmm0
movss 0x15415(%rip), %xmm1    # 0x1c1ec
ucomiss %xmm1, %xmm0
jne 0x6e30
jp 0x6e30
movq 0x1d6d3(%rip), %rax     # 0x244b8
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
xorps %xmm0, %xmm0
movss %xmm0, (%rax,%rcx,4)
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movl (%rax,%rcx,8), %edx
movq -0x108(%rbp), %rax
movslq -0x11c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x11c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x11c(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x6f11
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
subss 0x4(%rax,%rcx,8), %xmm0
cvtss2sd %xmm0, %xmm0
movaps 0x1537f(%rip), %xmm1    # 0x1c1f0
pand %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movq 0x1d638(%rip), %rax     # 0x244b8
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
addss (%rax,%rcx,4), %xmm0
movss %xmm0, (%rax,%rcx,4)
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x100(%rbp), %rax
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
addss (%rax,%rcx,8), %xmm0
movss %xmm0, (%rax,%rcx,8)
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x100(%rbp), %rax
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
addss 0x4(%rax,%rcx,8), %xmm0
movss %xmm0, 0x4(%rax,%rcx,8)
jmp 0x6fed
movq -0x8(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x6f98
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
subss 0x4(%rax,%rcx,8), %xmm0
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm2
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
subss 0x4(%rax,%rcx,8), %xmm2
movq 0x1d546(%rip), %rax     # 0x244b8
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
movss (%rax,%rcx,4), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
jmp 0x6feb
movq -0xf8(%rbp), %rax
movslq -0x13c(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm0
movq -0x128(%rbp), %rax
movslq -0x134(%rbp), %rcx
movss 0x4(%rax,%rcx,8), %xmm2
movq 0x1d4f1(%rip), %rax     # 0x244b8
movq -0xf8(%rbp), %rcx
movslq -0x13c(%rbp), %rdx
movslq (%rcx,%rdx,8), %rcx
movss (%rax,%rcx,4), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax,%rcx,4)
jmp 0x6fed
jmp 0x6fef
movl -0x13c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x13c(%rbp)
jmp 0x6d94
jmp 0x7005
movl -0x134(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x134(%rbp)
jmp 0x6cf0
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x70e0
movl $0x0, -0x140(%rbp)
movl -0x140(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jge 0x70de
movq 0x1d46e(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x140(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x168(%rbp)
movss -0x130(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x3430
movaps %xmm0, %xmm1
movsd -0x168(%rbp), %xmm0
movq -0x50(%rbp), %rax
movq -0x108(%rbp), %rcx
movslq -0x140(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
mulsd (%rax,%rcx,8), %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movq 0x1d405(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x140(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss %xmm0, (%rax,%rcx,4)
movl -0x140(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x140(%rbp)
jmp 0x7031
jmp 0x70e0
leaq 0x1524a(%rip), %rdi     # 0x1c331
movb $0x0, %al
callq 0x3150
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x7238
movl $0x0, -0x144(%rbp)
movl -0x144(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jge 0x7190
movq -0x100(%rbp), %rax
movq -0x108(%rbp), %rcx
movslq -0x144(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss 0x150b3(%rip), %xmm0    # 0x1c1e8
subss (%rax,%rcx,8), %xmm0
movq -0x100(%rbp), %rax
movq -0x108(%rbp), %rcx
movslq -0x144(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
subss 0x4(%rax,%rcx,8), %xmm0
movq 0x1d358(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x144(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
addss (%rax,%rcx,4), %xmm0
movss %xmm0, (%rax,%rcx,4)
movl -0x144(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x144(%rbp)
jmp 0x7106
movq -0x108(%rbp), %rdi
movslq -0x11c(%rbp), %rsi
movl $0x4, %edx
leaq 0x416(%rip), %rcx       # 0x75c0
callq 0x3090
leaq 0x15184(%rip), %rdi     # 0x1c33a
movb $0x0, %al
callq 0x3150
movl $0x0, -0x148(%rbp)
movl -0x148(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jge 0x7233
movq -0x48(%rbp), %rsi
movq -0x108(%rbp), %rax
movslq -0x148(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x8, %rax
addq %rax, %rsi
movq 0x1d2bf(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x148(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x15127(%rip), %rdi     # 0x1c342
movb $0x1, %al
callq 0x3150
movl -0x148(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x148(%rbp)
jmp 0x71c7
jmp 0x73a8
movq -0x8(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x7301
movq -0x108(%rbp), %rdi
movslq -0x11c(%rbp), %rsi
movl $0x4, %edx
leaq 0x360(%rip), %rcx       # 0x75c0
callq 0x3090
leaq 0x150de(%rip), %rdi     # 0x1c34a
movb $0x0, %al
callq 0x3150
movl $0x0, -0x14c(%rbp)
movl -0x14c(%rbp), %eax
cmpl -0x11c(%rbp), %eax
jge 0x72fc
movq -0x48(%rbp), %rax
movq -0x108(%rbp), %rcx
movslq -0x14c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
shlq $0x8, %rcx
addq %rcx, %rax
movq %rax, -0x170(%rbp)
movq 0x1d202(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x14c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x3430
movq -0x170(%rbp), %rsi
leaq 0x1505e(%rip), %rdi     # 0x1c342
movb $0x1, %al
callq 0x3150
movl -0x14c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14c(%rbp)
jmp 0x727d
jmp 0x73a6
movq -0x108(%rbp), %rdi
movslq -0x11c(%rbp), %rsi
movl $0x4, %edx
leaq 0x2a5(%rip), %rcx       # 0x75c0
callq 0x3090
leaq 0x1502b(%rip), %rdi     # 0x1c352
movb $0x0, %al
callq 0x3150
movl -0x11c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x150(%rbp)
cmpl $0x0, -0x150(%rbp)
jl 0x73a4
movq -0x48(%rbp), %rsi
movq -0x108(%rbp), %rax
movslq -0x150(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x8, %rax
addq %rax, %rsi
movq 0x1d14e(%rip), %rax     # 0x244b8
movq -0x108(%rbp), %rcx
movslq -0x150(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x14fb6(%rip), %rdi     # 0x1c342
movb $0x1, %al
callq 0x3150
movl -0x150(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x150(%rbp)
jmp 0x733d
jmp 0x73a6
jmp 0x73a8
movq -0x18(%rbp), %rdi
callq 0x30e0
movq -0x128(%rbp), %rdi
callq 0x3040
movl -0x10c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10c(%rbp)
jmp 0x6ae3
movq 0x1d0e0(%rip), %rdi     # 0x244b8
callq 0x3040
movq -0x48(%rbp), %rdi
callq 0x3040
movq -0xf8(%rbp), %rdi
callq 0x3040
movq -0xf0(%rbp), %rdi
callq 0x3040
movq -0x50(%rbp), %rdi
callq 0x3040
movq -0x8(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x741d
movq -0x100(%rbp), %rdi
callq 0x3040
movl $0x1, %eax
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopl (%rax,%rax)