// File: /workspace/github_cpp_makefile_star2_O2/lagoproject[P]arti/analysis/analysis.cc
// Function: main
int main(int argc, char *argv[]) {

  char nfi[256]; // filename container
  char *ifiname=NULL; // input
  int block=0;

  // reading arguments from command line
  for (int i=1;i<argc;i++) {
    char *tmparg=argv[i];
    if (*tmparg=='-') {
      switch (*(tmparg+1)) {
        case 'v':
          iverbose=1;
          break;
        case 'p':
          iprim=1;
          break;
        case 'f':
          iforce=1;
          break;
        case 'd':
          idegub=1;
          break;
        case 'i':
          iinclude=1;
          break;
        case 'c':
		  icurve=1;
		  i++;
		  h=(double)(atof(argv[i])*100.); // calculation is in cm...
		  hInM=h*cm2m;
		  break;
        case '?':
        default:
          Usage(argv[0]);
          break;
      }
    }
    else {
      ifiname=argv[i];
    }
  }
  if (!ifiname) {
    cerr << endl << "Error: Missing filename" << endl << endl;
    Usage(argv[0]);
  }
  //open input
  snprintf(nfi,256,"%s",ifiname);
  Open(nfi);
  //open output
  char *ifile2;
  char ifile[256];
  ifile2=ifiname;
  //remove dirs
  if (strrchr(ifile2,'/')!=NULL) {
    ifile2=strrchr(ifile2,'/')+1;
  }
  snprintf(ifile, 256,"%s",ifile2);
  if (strrchr(ifile,'.')!=NULL) {
    if (strncmp(strrchr(ifile,'.'),".bz2",4)==0) { // remove .bz2 if present
      *(strrchr(ifile,'.'))='\0';
    }
  }
  if (strrchr(ifile,'.')!=NULL) {
    if (strncmp(strrchr(ifile,'.'),".dat",4)==0) { // remove .dat if present
      *(strrchr(ifile,'.'))='\0';
    }
  }

  // open output file (.bz2) via popen
  //secondaries
  snprintf(nfi,256,"bzip2 -9z > %s.sec.bz2",ifile);
  if ((sec = popen(nfi,"w"))==NULL) {
    fprintf(stderr,"Failed to open compressed secondaries file. Abort.\n");
    exit(1);
  }
  fprintf(sec, "# # # sec\n");
  fprintf(sec, "# # This is the Secondaries file - ARTI     %s\n", VERSION);
  if (icurve)
	  fprintf(sec, "# # Curve mode was enabled and observation level is %.0lf m a.s.l. XYZ is printed instead of x'y't\n",hInM);
  fprintf(sec, "# # 12 column format is:\n");
  if (icurve)
	  fprintf(sec, "# # CorsikaId px py pz x y z shower_id prm_id prm_energy prm_theta prm_phi\n");
  else
	  fprintf(sec, "# # CorsikaId px py pz x' y' t shower_id prm_id prm_energy prm_theta prm_phi\n");
  if (iforce)
    cerr << "WARNING! Force mode is enabled. Consistency checks will be ignorated\n";
  //primaries
  if (iprim) {
    snprintf(nfi,256,"bzip2 -9z > %s.pri.bz2",ifile);
    if ((pri = popen(nfi,"w"))==NULL) {
      fprintf(stderr,"Failed to open compressed primaries file. Abort.\n");
      exit(1);
    }
    fprintf(pri, "# # # pri\n");
    fprintf(pri, "# # This is the Primaries file - ARTI     %s\n", VERSION);
    fprintf(pri, "# # 10 column format is:\n");
    fprintf(pri, "# # prm_Crk_id prm_energy prm_x0 prm_theta prm_phi ph_obs_lev el_obs_lev hd_obs_lev mu_obs_lev tot_obs_lev\n");
  }

  if (iforce)
    cerr << "WARNING! Force mode is enabled. Consistency checks will be ignorated\n";

  // stop talking, let's work

  for (int i=0; i<block_size; i++)
    data_block[i] = run_header[i] = evt_header[i] = evt_footer[i] = run_footer[i] = 0.;

  // Reading RUN HEADER (273=7x39)
  if (iverbose)
    cerr << "Files opened. Reading run header" << endl;
  if (!ReadBlock(run_header, 1) || bad_block)
    if (!iforce)
      exit(1);
  if (iinclude) {
    fprintf(sec, "# r");
    for (int i=0; i<block_size; i++)
      fprintf(sec, " %+.5E", run_header[i]);
    fprintf(sec, "\n");
  } 
  // Everything ok, continue
  // events
  // event header
  events=true;
  while (events) {
    if (!ReadBlock(evt_header, 2) || bad_block)
      if (!iforce)
        exit(1);
    if (!events)
      break;
    //reading data blocks for this events
    shower_id++;
    if (iverbose)
      cerr << "Reading event " << shower_id << endl;
    block = 1;
    b_data=true;
    if (iinclude) {
      fprintf(sec, "# h");
      for (int i=0; i<block_size; i++)
        fprintf(sec, " %+.5E", evt_header[i]);
      fprintf(sec, "\n");
    }
     
    if (iprim) {
      evt_buffer[0] = evt_header[2];
      evt_buffer[1] = evt_header[3];
      evt_buffer[2] = evt_header[6]/1e5;
      evt_buffer[3] = rad2deg(evt_header[10]);
      evt_buffer[4] = rad2deg(evt_header[11]);
    }
    while (b_data) {
      if (!ReadDataBlock(data_block, block))
        if (!iforce)
          exit(1);
      if (!b_data)
        break;
      for (int i=0; i<block_rows; i++) {
      if (iverbose)
        fprintf(stderr, "Reading block: %08d\r", block);
      if (data_block[i*block_cols]) {
        if (data_block[i*block_cols]>0) {
			x = data_block[i*block_cols+4];
			y = data_block[i*block_cols+5];
			z = data_block[i*block_cols+6];
			if (icurve)
			  curved(data_block[i*block_cols+4], data_block[i*block_cols+5]);
            fprintf (
              sec, "%04d %+.5E %+.5E %+.5E %+.5E %+.5E %+.5E %08ld %04d %+.5E %+07.3lf %+08.3lf\n",
              int(data_block[i*block_cols+0]/1000.),
              data_block[i*block_cols+1], 
              data_block[i*block_cols+2], 
              data_block[i*block_cols+3], 
              x,
			  y,
			  z,
              shower_id,
              int(evt_header[2]),
              evt_header[3],
              rad2deg(evt_header[10]),
              rad2deg(evt_header[11])
            ); 
            fflush(sec);
            counter++;
        }
      }
      else { // no more particles
          if (iverbose)
            fprintf(stderr,"\nNo more particles for this event.\n");
          b_data=false;
          break;
      }
    }
    block++;
    }
    if (!evt_footer[0])
      if (!ReadBlock(evt_footer, 3) || bad_block)
        if (!iforce)
          exit(1);
    if (iinclude) {
      fprintf(sec, "# f");
      for (int i=0; i<block_size; i++)
        fprintf(sec, " %+.5E", evt_footer[i]);
      fprintf(sec, "\n");
    } 
    if (iprim) {
      fprintf (
        pri, "%04d %+.5E %+.5E %+08.3lf %+08.3lf %+.5E %+.5E %+.5E %+.5E %+.5E\n",
        int(evt_buffer[0]),
        evt_buffer[1],
        evt_buffer[2],
        evt_buffer[3],
        evt_buffer[4],
        evt_footer[2],
        evt_footer[3],
        evt_footer[4],
        evt_footer[5],
        evt_footer[6]
      );
      for (int i=0; i<block_size; i++)
        evt_footer[i] = 0.;
    }
    else
      evt_footer[0] = 0.; // force lecture of the new event footer
  }
  fprintf(sec, "# # %ld lines read on %ld secondaries for %ld showers\n", lines, counter, shower_id);
  fprintf(stderr, "%ld lines read on %ld secondaries for %ld showers\nEverything fine. Goodbye\n\n", lines, counter, shower_id);
  pclose(sec);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x1
popq %r15
movsd 0x4709(%rip), %xmm0     # 0x6128
movsd %xmm0, 0x8(%rsp)
xorl %r14d, %r14d
leaq 0x1611(%rip), %r12      # 0x3040
cmpl %ebp, %r15d
jge 0x1ae2
movslq %r15d, %rax
movq (%rbx,%rax,8), %rcx
cmpb $0x2d, (%rcx)
jne 0x1a90
movzbl 0x1(%rcx), %ecx
leal -0x63(%rcx), %edx
cmpl $0x6, %edx
ja 0x1a98
movslq (%r12,%rdx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movl $0x1, 0x7225(%rip)      # 0x8c88
incl %r15d
movq 0x8(%rbx,%rax,8), %rdi
callq 0x1110
mulsd 0x15a8(%rip), %xmm0     # 0x3020
movsd %xmm0, 0x7228(%rip)     # 0x8ca8
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x7222(%rip)     # 0x8cb0
jmp 0x1a93
movq %rcx, %r14
incl %r15d
jmp 0x1a2f
cmpl $0x70, %ecx
je 0x1ad6
cmpl $0x76, %ecx
jne 0x2362
movl $0x1, 0x71c4(%rip)      # 0x8c74
jmp 0x1a93
movl $0x1, 0x71c0(%rip)      # 0x8c7c
jmp 0x1a93
movl $0x1, 0x71bc(%rip)      # 0x8c84
jmp 0x1a93
movl $0x1, 0x71ac(%rip)      # 0x8c80
jmp 0x1a93
movl $0x1, 0x7198(%rip)      # 0x8c78
jmp 0x1a93
testq %r14, %r14
je 0x2337
leaq 0x15a5(%rip), %rbx      # 0x3097
leaq 0x110(%rsp), %r15
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1170
movq %r15, %rdi
callq 0x12dc
pushq $0x2f
popq %rsi
movq %r14, %rdi
callq 0x10d0
leaq 0x1(%rax), %rcx
testq %rax, %rax
cmoveq %r14, %rcx
leaq 0x10(%rsp), %r14
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1170
pushq $0x2e
popq %rsi
movq %r14, %rdi
callq 0x10d0
testq %rax, %rax
je 0x1b70
movq %rax, %rbx
leaq 0x1a95(%rip), %rsi      # 0x35f3
pushq $0x4
popq %rdx
movq %rax, %rdi
callq 0x1070
testl %eax, %eax
jne 0x1b70
movb $0x0, (%rbx)
leaq 0x10(%rsp), %rdi
pushq $0x2e
popq %rsi
callq 0x10d0
testq %rax, %rax
je 0x1b9e
movq %rax, %rbx
leaq 0x1a50(%rip), %rsi      # 0x35dc
pushq $0x4
popq %rdx
movq %rax, %rdi
callq 0x1070
testl %eax, %eax
jne 0x1b9e
movb $0x0, (%rbx)
leaq 0x1a3c(%rip), %rdx      # 0x35e1
leaq 0x110(%rsp), %rbx
leaq 0x10(%rsp), %rcx
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1170
leaq 0x1a30(%rip), %rsi      # 0x35f8
movq %rbx, %rdi
callq 0x1050
movq %rax, 0x4579(%rip)      # 0x6150
testq %rax, %rax
je 0x236a
leaq 0x1a47(%rip), %rdi      # 0x362e
pushq $0xa
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x11a0
movq 0x4554(%rip), %rdi      # 0x6150
leaq 0x1a36(%rip), %rsi      # 0x3639
leaq 0x1620(%rip), %rdx      # 0x322a
xorl %eax, %eax
callq 0x1140
cmpl $0x0, 0x7070(%rip)      # 0x8c88
je 0x1c37
movq 0x452f(%rip), %rdi      # 0x6150
movsd 0x7087(%rip), %xmm0     # 0x8cb0
leaq 0x1a39(%rip), %rsi      # 0x3669
movb $0x1, %al
callq 0x1140
movq 0x4512(%rip), %rcx      # 0x6150
leaq 0x1a88(%rip), %rdi      # 0x36cd
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
cmpl $0x0, 0x7031(%rip)      # 0x8c88
movq 0x44f2(%rip), %rcx      # 0x6150
jne 0x1c6b
leaq 0x1acc(%rip), %rdi      # 0x3733
pushq $0x4d
jmp 0x1c74
leaq 0x1a75(%rip), %rdi      # 0x36e7
pushq $0x4b
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
cmpl $0x0, 0x7000(%rip)      # 0x8c84
je 0x1c99
movq 0x4363(%rip), %rdi      # 0x5ff0
leaq 0x1aed(%rip), %rsi      # 0x3781
callq 0x10c0
cmpl $0x0, 0x6fd8(%rip)      # 0x8c78
je 0x1d4e
leaq 0x1b1a(%rip), %rdx      # 0x37c7
leaq 0x110(%rsp), %rbx
leaq 0x10(%rsp), %rcx
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1170
leaq 0x1928(%rip), %rsi      # 0x35f8
movq %rbx, %rdi
callq 0x1050
movq %rax, 0x4479(%rip)      # 0x6158
testq %rax, %rax
je 0x237f
leaq 0x1b21(%rip), %rdi      # 0x3810
pushq $0xa
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
movq %rax, %rcx
callq 0x11a0
movq 0x4451(%rip), %rdi      # 0x6158
leaq 0x1b0d(%rip), %rsi      # 0x381b
leaq 0x1515(%rip), %rdx      # 0x322a
xorl %eax, %eax
callq 0x1140
movq 0x4435(%rip), %rcx      # 0x6158
leaq 0x1b1f(%rip), %rdi      # 0x3849
pushq $0x19
popq %rsi
movq %rbx, %rdx
callq 0x11a0
movq 0x441c(%rip), %rcx      # 0x6158
leaq 0x1b20(%rip), %rdi      # 0x3863
pushq $0x6b
popq %rsi
movq %rbx, %rdx
callq 0x11a0
cmpl $0x0, 0x6f2f(%rip)      # 0x8c84
je 0x1d6a
movq 0x4292(%rip), %rdi      # 0x5ff0
leaq 0x1a1c(%rip), %rsi      # 0x3781
callq 0x10c0
xorl %eax, %eax
leaq 0x662d(%rip), %rcx      # 0x83a0
leaq 0x5d96(%rip), %rbx      # 0x7b10
leaq 0x54ff(%rip), %rsi      # 0x7280
leaq 0x4c68(%rip), %rdx      # 0x69f0
leaq 0x43d1(%rip), %r15      # 0x6160
cmpq $0x888, %rax            # imm = 0x888
je 0x1db6
andq $0x0, (%rax,%rcx)
andq $0x0, (%rax,%rbx)
andq $0x0, (%rax,%rsi)
andq $0x0, (%rax,%rdx)
andq $0x0, (%rax,%r15)
addq $0x8, %rax
jmp 0x1d8f
cmpl $0x0, 0x6eb7(%rip)      # 0x8c74
je 0x1dda
movq 0x422a(%rip), %rdi      # 0x5ff0
leaq 0x1b02(%rip), %rsi      # 0x38cf
callq 0x10c0
movq %rax, %rdi
callq 0x1080
leaq 0x4c0f(%rip), %r12      # 0x69f0
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x13bf
cmpl $0x0, 0x6e7d(%rip)      # 0x8c70
sete %cl
testb %cl, %al
jne 0x1e07
cmpl $0x0, 0x6e83(%rip)      # 0x8c84
je 0x239b
cmpl $0x0, 0x6e72(%rip)      # 0x8c80
je 0x1e64
movq 0x4339(%rip), %rcx      # 0x6150
leaq 0x1ad2(%rip), %rdi      # 0x38f0
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
xorl %r14d, %r14d
leaq 0x1ac1(%rip), %r13      # 0x38f4
movq 0x4316(%rip), %rsi      # 0x6150
cmpq $0x888, %r14            # imm = 0x888
je 0x1e5c
movsd (%r14,%r12), %xmm0
movq %rsi, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x1140
addq $0x8, %r14
jmp 0x1e33
pushq $0xa
popq %rdi
callq 0x1120
movb $0x1, 0x42ad(%rip)      # 0x6118
movb $0x1, %al
leaq 0x1aaf(%rip), %r13      # 0x3923
leaq 0x1a79(%rip), %rbp      # 0x38f4
leaq 0x53fe(%rip), %r12      # 0x7280
testb $0x1, %al
je 0x22c0
movq %r12, %rdi
pushq $0x2
popq %rsi
callq 0x13bf
cmpl $0x0, 0x6dd4(%rip)      # 0x8c70
sete %cl
testb %cl, %al
jne 0x1eb0
cmpl $0x0, 0x6dda(%rip)      # 0x8c84
je 0x239b
movq 0x6da9(%rip), %r8       # 0x8c60
cmpb $0x1, 0x425a(%rip)      # 0x6118
jne 0x22c7
incq %r8
movq %r8, 0x6d92(%rip)       # 0x8c60
cmpl $0x0, 0x6d9f(%rip)      # 0x8c74
je 0x1f01
movq 0x4112(%rip), %rdi      # 0x5ff0
leaq 0x1a16(%rip), %rsi      # 0x38fb
callq 0x10c0
movq 0x6d6f(%rip), %rsi      # 0x8c60
movq %rax, %rdi
callq 0x10a0
movq %rax, %rdi
callq 0x1080
movb $0x1, 0x4211(%rip)      # 0x6119
cmpl $0x0, 0x6d71(%rip)      # 0x8c80
je 0x1f5e
movq 0x4238(%rip), %rcx      # 0x6150
leaq 0x19eb(%rip), %rdi      # 0x390a
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
xorl %r14d, %r14d
movq 0x421c(%rip), %rsi      # 0x6150
cmpq $0x888, %r14            # imm = 0x888
je 0x1f56
movsd (%r14,%r12), %xmm0
movq %rsi, %rdi
movq %rbp, %rsi
movb $0x1, %al
callq 0x1140
addq $0x8, %r14
jmp 0x1f2d
pushq $0xa
popq %rdi
callq 0x1120
cmpl $0x0, 0x6d13(%rip)      # 0x8c78
je 0x1fc1
movaps 0x5322(%rip), %xmm0     # 0x7290
movaps %xmm0, 0x6cbb(%rip)     # 0x8c30
movapd 0x5333(%rip), %xmm0     # 0x72b0
movsd 0x534b(%rip), %xmm1     # 0x72d0
movsd 0x107b(%rip), %xmm2     # 0x3008
mulsd %xmm2, %xmm1
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
divpd 0x1093(%rip), %xmm0     # 0x3030
movapd %xmm0, 0x6c9b(%rip)     # 0x8c40
movsd 0x532b(%rip), %xmm0     # 0x72d8
mulsd %xmm2, %xmm0
divsd 0x1057(%rip), %xmm0     # 0x3010
movsd %xmm0, 0x6c8f(%rip)     # 0x8c50
pushq $0x1
popq %r12
cmpb $0x1, 0x414d(%rip)      # 0x6119
jne 0x2188
movq %r15, %rdi
movl %r12d, %esi
callq 0x168a
orl 0x6ca1(%rip), %eax      # 0x8c84
je 0x239b
cmpb $0x1, 0x4129(%rip)      # 0x6119
jne 0x2188
xorl %r14d, %r14d
cmpq $0x888, %r14            # imm = 0x888
je 0x2162
cmpl $0x0, 0x6c67(%rip)      # 0x8c74
jne 0x2132
movsd (%r14,%r15), %xmm0
ucomisd 0x1007(%rip), %xmm0     # 0x3028
jne 0x2029
jnp 0x2152
jbe 0x2129
movsd 0x20(%r14,%r15), %xmm3
movsd 0x28(%r14,%r15), %xmm4
movsd %xmm3, 0x6c4b(%rip)     # 0x8c90
movsd %xmm4, 0x6c4b(%rip)     # 0x8c98
movsd 0x30(%r14,%r15), %xmm5
movsd %xmm5, 0x6c44(%rip)     # 0x8ca0
cmpl $0x0, 0x6c25(%rip)      # 0x8c88
je 0x208f
movaps %xmm3, %xmm0
movapd %xmm4, %xmm1
callq 0x15b6
movsd (%r14,%r15), %xmm0
movsd 0x6c11(%rip), %xmm3     # 0x8c90
movsd 0x6c11(%rip), %xmm4     # 0x8c98
movsd 0x6c11(%rip), %xmm5     # 0x8ca0
movq 0x40ba(%rip), %rdi      # 0x6150
divsd 0xf7a(%rip), %xmm0      # 0x3018
cvttsd2si %xmm0, %edx
movsd 0x8(%r14,%r15), %xmm0
movsd 0x10(%r14,%r15), %xmm1
movsd 0x18(%r14,%r15), %xmm2
cvttsd2si 0x51d0(%rip), %r8d # 0x7290
movq 0x6b99(%rip), %rcx      # 0x8c60
movsd 0x51c9(%rip), %xmm6     # 0x7298
movsd 0x51f9(%rip), %xmm7     # 0x72d0
movsd 0xf28(%rip), %xmm9      # 0x3008
mulsd %xmm9, %xmm7
movsd 0xf22(%rip), %xmm10     # 0x3010
divsd %xmm10, %xmm7
movsd 0x51dc(%rip), %xmm8     # 0x72d8
mulsd %xmm9, %xmm8
divsd %xmm10, %xmm8
movsd %xmm8, (%rsp)
movq %r13, %rsi
movb $0x8, %al
callq 0x1140
movq 0x4033(%rip), %rdi      # 0x6150
callq 0x10f0
incq 0x6b3f(%rip)            # 0x8c68
addq $0x38, %r14
jmp 0x1ff9
movq 0x3e97(%rip), %rax      # 0x5fd0
movq (%rax), %rdi
leaq 0x17cb(%rip), %rsi      # 0x390e
movl %r12d, %edx
xorl %eax, %eax
callq 0x1140
jmp 0x2013
cmpl $0x0, 0x6b1b(%rip)      # 0x8c74
jne 0x216a
movb $0x0, 0x3fb7(%rip)      # 0x6119
incl %r12d
jmp 0x1fc5
movq 0x3e5f(%rip), %rax      # 0x5fd0
movq (%rax), %rcx
leaq 0x17f5(%rip), %rdi      # 0x3970
pushq $0x23
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
jmp 0x215b
movsd 0x5980(%rip), %xmm0     # 0x7b10
ucomisd 0xe90(%rip), %xmm0      # 0x3028
jne 0x21c2
jp 0x21c2
movq %rbx, %rdi
pushq $0x3
popq %rsi
callq 0x13bf
cmpl $0x0, 0x6ac2(%rip)      # 0x8c70
sete %cl
testb %cl, %al
jne 0x21c2
cmpl $0x0, 0x6ac8(%rip)      # 0x8c84
je 0x239b
cmpl $0x0, 0x6ab7(%rip)      # 0x8c80
leaq 0x50b0(%rip), %r12      # 0x7280
je 0x221f
movq 0x3f77(%rip), %rcx      # 0x6150
leaq 0x17b4(%rip), %rdi      # 0x3994
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
xorl %r14d, %r14d
movq 0x3f5b(%rip), %rsi      # 0x6150
cmpq $0x888, %r14            # imm = 0x888
je 0x2217
movsd (%r14,%rbx), %xmm0
movq %rsi, %rdi
movq %rbp, %rsi
movb $0x1, %al
callq 0x1140
addq $0x8, %r14
jmp 0x21ee
pushq $0xa
popq %rdi
callq 0x1120
cmpl $0x0, 0x6a52(%rip)      # 0x8c78
je 0x22ad
movq 0x3f25(%rip), %rdi      # 0x6158
cvttsd2si 0x69f5(%rip), %edx # 0x8c30
movsd 0x69f5(%rip), %xmm0     # 0x8c38
movsd 0x69f5(%rip), %xmm1     # 0x8c40
movsd 0x69f5(%rip), %xmm2     # 0x8c48
movsd 0x69f5(%rip), %xmm3     # 0x8c50
movsd 0x58bd(%rip), %xmm4     # 0x7b20
movsd 0x58bd(%rip), %xmm5     # 0x7b28
movsd 0x58bd(%rip), %xmm6     # 0x7b30
movsd 0x58bd(%rip), %xmm7     # 0x7b38
movsd 0x58bc(%rip), %xmm8     # 0x7b40
movsd %xmm8, (%rsp)
leaq 0x1707(%rip), %rsi      # 0x3998
movb $0x8, %al
callq 0x1140
xorl %eax, %eax
cmpq $0x888, %rax            # imm = 0x888
je 0x22b5
andq $0x0, (%rax,%rbx)
addq $0x8, %rax
jmp 0x229a
andq $0x0, 0x585b(%rip)      # 0x7b10
movb 0x3e5d(%rip), %al       # 0x6118
jmp 0x1e82
movq 0x6999(%rip), %r8       # 0x8c60
movq 0x3e82(%rip), %rdi      # 0x6150
movq 0x6983(%rip), %rdx      # 0x8c58
movq 0x698c(%rip), %rcx      # 0x8c68
leaq 0x16f7(%rip), %rsi      # 0x39da
xorl %eax, %eax
callq 0x1140
movq 0x3cdf(%rip), %rax      # 0x5fd0
movq (%rax), %rdi
movq 0x695d(%rip), %rdx      # 0x8c58
movq 0x6966(%rip), %rcx      # 0x8c68
movq 0x6957(%rip), %r8       # 0x8c60
leaq 0x1701(%rip), %rsi      # 0x3a11
xorl %eax, %eax
callq 0x1140
movq 0x3e32(%rip), %rdi      # 0x6150
callq 0x1130
xorl %eax, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3cb2(%rip), %rdi      # 0x5ff0
callq 0x1080
leaq 0x127a(%rip), %rsi      # 0x35c4
movq %rax, %rdi
callq 0x10c0
movq %rax, %rdi
callq 0x1080
movq %rax, %rdi
callq 0x1080
movq (%rbx), %rdi
callq 0x1836
movq 0x3c5f(%rip), %rax      # 0x5fd0
movq (%rax), %rcx
leaq 0x127f(%rip), %rdi      # 0x35fa
pushq $0x33
jmp 0x2392
movq 0x3c4a(%rip), %rax      # 0x5fd0
movq (%rax), %rcx
leaq 0x144e(%rip), %rdi      # 0x37de
pushq $0x31
popq %rsi
pushq $0x1
popq %rdx
callq 0x11a0
pushq $0x1
popq %rdi
callq 0x1100