// File: /workspace/github_c_makefile_star2_O1/zhou-lab[P]tbmate/view.c
// Function: main_view
int main_view(int argc, char *argv[]) {

  view_conf_t conf = {0};
  conf.precision = 3;
  conf.print_all = 0;
  conf.print_all_units = 0;
  conf.column_name = 0;
  conf.na_for_negative = 0;
  conf.show_unaddressed = 0;
  conf.chunk_read = 0;
  conf.n_chunk_index = 1000000;
  conf.n_chunk_data = 1000000;
  conf.max_pval = -1.0;
  conf.min_coverage = -1;
  conf.full_path_as_colname = 0;
  conf.na_token = strdup("NA");
  
  int c;
  if (argc<2) return usage(&conf);

  char *regions_fname = NULL;
  char *region = NULL;
  FILE *out_fh = stdout;
  char *idx_fname = NULL;
  char *tbk_fname_list = NULL;
  while ((c = getopt(argc, argv, "i:l:o:R:N:m:n:p:g:s:t:ckabduFh"))>=0) {
    switch (c) {
    case 'i': idx_fname = strdup(optarg); break;
    case 'l': tbk_fname_list = strdup(optarg); break;
    case 'o': out_fh = fopen(optarg, "w"); break;
    case 'R': regions_fname = optarg; break;
    case 'N': conf.na_token = strdup(optarg); break;
    case 'm': conf.n_chunk_index = atoi(optarg); break;
    case 'n': conf.n_chunk_data = atoi(optarg); break;
    case 'g': region = strdup(optarg); break;
    case 's': conf.min_coverage = atoi(optarg); break;
    case 't': conf.max_pval = atof(optarg); break;
    case 'p': conf.precision = atoi(optarg); break;
    case 'c': conf.column_name = 1; break;
    case 'k': conf.chunk_read = 1; break;
    case 'a': conf.print_all = 1; break;
    case 'b': conf.print_all_units = 1; break;
    case 'd': conf.na_for_negative = 1; break;
    case 'u': conf.show_unaddressed = 1; break;
    case 'F': conf.full_path_as_colname = 1; break;
    case 'h': return usage(&conf); break;
    default: usage(&conf); wzfatal("Unrecognized option: %c.\n", c);
    }
  }

  if (optind > argc && !tbk_fname_list) {
    usage(&conf); 
    wzfatal("Please supply tbk file.\n"); 
  }

  int nregs = 0;
  char **regs = NULL;

  int n_tbks = 0; tbk_t *tbks = NULL;
  int n_tbfs = 0; tbf_t *tbfs = NULL;
  parse_tbf_from_argument(argc, argv, optind, &tbfs, &n_tbfs);
  parse_tbf_fname_list(tbk_fname_list, &tbfs, &n_tbfs);
  int i;
  for (i=0; i<n_tbfs; ++i) {
    parse_tbk_from_tbf(&tbfs[i], &tbks, &n_tbks);
  }
  
  infer_idx(tbks, n_tbks, &idx_fname);
  
  regs = parse_regions(regions_fname, region, &nregs);
  int ret;
  if (conf.chunk_read)
    ret = chunk_query_region(idx_fname, regs, nregs, tbks, n_tbks, &conf, out_fh);
  else
    ret = query_regions(idx_fname, regs, nregs, tbks, n_tbks, &conf, out_fh);

  if (n_tbfs > 0) {for (i=0; i<n_tbfs; ++i) tbf_close(&tbfs[i]); free(tbfs);}
  if (n_tbks > 0) {for (i=0; i<n_tbks; ++i) free(tbks[i].sname); free(tbks);}
  if (idx_fname) free(idx_fname);
  free(conf.na_token);
  if (region) free(region);
  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1128, %rsp           # imm = 0x1128
movq %rsi, %rbp
movl %edi, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movl $0x3, 0xa0(%rsp)
movq $0x0, 0xc0(%rsp)
movups %xmm0, 0xa4(%rsp)
movabsq $0xf4240000f4240, %rax  # imm = 0xF4240000F4240
movq %rax, 0xc8(%rsp)
movq $-0x40800000, 0xd0(%rsp) # imm = 0xBF800000
movl $0x0, 0xd8(%rsp)
leaq 0x46df4(%rip), %rdi     # 0x4d359
callq 0x35f0
movq %rax, 0xb8(%rsp)
cmpl $0x1, %ebx
jle 0x7729
movq 0x57a76(%rip), %rax     # 0x5dff8
movq (%rax), %rax
movq %rax, 0x20(%rsp)
leaq 0x46dcb(%rip), %rdx     # 0x4d35c
movl %ebx, 0x28(%rsp)
movl %ebx, %edi
movq %rbp, %rsi
callq 0x3200
testl %eax, %eax
js 0x674c
movl %eax, %r14d
movq $0x0, 0x50(%rsp)
leaq 0x46da2(%rip), %r12     # 0x4d35c
leaq 0x46c9b(%rip), %rbx     # 0x4d25c
movq 0x57a18(%rip), %r13     # 0x5dfe0
movq $0x0, 0x60(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x30(%rsp)
leal -0x4e(%r14), %eax
cmpl $0x27, %eax
ja 0x6605
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq (%r13), %rdi
callq 0x35f0
movq %rax, 0xb8(%rsp)
jmp 0x6730
cmpl $0x46, %r14d
jne 0x7794
movl $0x1, 0xd8(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x3550
movl %eax, 0xd4(%rsp)
jmp 0x6730
movl $0x1, 0xb0(%rsp)
jmp 0x6730
movl $0x1, 0xa4(%rsp)
jmp 0x6730
movq (%r13), %rdi
leaq 0x46a59(%rip), %rsi     # 0x4d0b8
callq 0x3250
movq %rax, 0x20(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x35f0
movq %rax, 0x30(%rsp)
jmp 0x6730
movl $0x1, 0xc4(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x3550
movl %eax, 0xc8(%rsp)
jmp 0x6730
movq (%r13), %r15
jmp 0x6730
movq (%r13), %rdi
callq 0x35f0
movq %rax, 0x50(%rsp)
jmp 0x6730
movl $0x1, 0xa8(%rsp)
jmp 0x6730
movl $0x1, 0xc0(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x35f0
movq %rax, 0x60(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x3550
movl %eax, 0xcc(%rsp)
jmp 0x6730
movl $0x1, 0xac(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x3550
movl %eax, 0xa0(%rsp)
jmp 0x6730
movq (%r13), %rdi
callq 0x32f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xd0(%rsp)
movl 0x28(%rsp), %edi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x3200
movl %eax, %r14d
testl %eax, %eax
jns 0x65dd
jmp 0x676a
movq $0x0, 0x30(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x60(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x5784f(%rip), %rax     # 0x5dfc0
movl 0x28(%rsp), %r12d
cmpl %r12d, (%rax)
setle %cl
cmpq $0x0, 0x50(%rsp)
setne %dl
orb %cl, %dl
je 0x77b2
movq %r15, 0x18(%rsp)
movl $0x0, 0x3c(%rsp)
movq $0x0, 0x70(%rsp)
movslq (%rax), %r13
cmpl %r12d, %r13d
jge 0x6951
movq %rbp, 0x8(%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0x8(%rsp), %rbx
movq (%rbx,%r13,8), %rdi
callq 0x33c0
testq %rax, %rax
je 0x68f0
movq %rax, %r14
movq %r13, 0x10(%rsp)
movq %rbp, %r13
movq %rax, %rdi
callq 0x3450
testq %rax, %rax
je 0x68d9
movq %rax, %rbp
addq $0x13, %rbp
movq %rbp, %rdi
callq 0x3380
cmpq $0x5, %rax
jb 0x68c5
movq %rax, %r12
leaq (%rax,%rbp), %rdi
addq $-0x4, %rdi
leaq 0x46fe2(%rip), %rsi     # 0x4d7f9
callq 0x3620
testl %eax, %eax
jne 0x68c5
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
movq %rbx, %rdi
callq 0x3380
leaq (%r12,%rax), %rdi
addq $0x5, %rdi
callq 0x3240
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3650
movq %r12, %rdi
callq 0x3380
movw $0x2f, (%r12,%rax)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x3500
movslq %r13d, %rbx
shlq $0x5, %rbx
leaq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x37b0
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rbx)
movups %xmm0, 0x10(%rax,%rbx)
movq %r12, %rdi
callq 0x35f0
movq %rax, 0x10(%r15,%rbx)
movq %r12, %rdi
leaq 0x46f56(%rip), %rsi     # 0x4d7fe
callq 0x3250
movq %rax, (%r15,%rbx)
testq %rax, %rax
je 0x776a
incl %r13d
movq %r12, %rdi
callq 0x3370
movq %r14, %rdi
callq 0x3450
movq %rax, %rbp
testq %rax, %rax
jne 0x67ef
movq %r14, %rdi
callq 0x3720
movq %r13, %rbp
movl 0x28(%rsp), %r12d
movq 0x10(%rsp), %r13
jmp 0x6943
movslq %ebp, %r14
shlq $0x5, %r14
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x37b0
movq %rax, %r15
movq (%rbx,%r13,8), %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%r14)
movups %xmm0, 0x10(%rax,%r14)
movq %rbx, %rdi
callq 0x35f0
movq %rax, 0x10(%r15,%r14)
movq %rbx, %rdi
leaq 0x46ecf(%rip), %rsi     # 0x4d7fe
callq 0x3250
movq %rax, (%r15,%r14)
testq %rax, %rax
je 0x778a
incl %ebp
incq %r13
cmpl %r12d, %r13d
jne 0x67b9
jmp 0x6956
xorl %ebp, %ebp
xorl %r15d, %r15d
movq 0x50(%rsp), %r14
testq %r14, %r14
movq %r15, 0x68(%rsp)
je 0x6997
leaq 0x46ece(%rip), %rsi     # 0x4d83a
movq %r14, %rdi
callq 0x3620
testl %eax, %eax
je 0x69a1
leaq 0x4a6de(%rip), %rsi     # 0x5105d
movq %r14, %rdi
callq 0x3160
movq %rax, %rbx
testq %rax, %rax
jne 0x69c1
movq %r14, %rdi
callq 0x3c47
movq 0x20(%rsp), %r13
jmp 0x6b99
movq 0x57630(%rip), %rax     # 0x5dfd8
movq (%rax), %rdi
callq 0x3040
leaq 0x4a6a6(%rip), %rsi     # 0x5105d
movl %eax, %edi
callq 0x3420
movq %rax, %rbx
movq %rbp, 0x48(%rsp)
testq %rbx, %rbx
je 0x77d1
xorl %ebp, %ebp
movl $0xa, %esi
movq %rbp, %rdi
callq 0x37b0
movq %rax, %rbp
movl $0xa, %r12d
xorl %r13d, %r13d
movl (%rbx), %eax
testl %eax, %eax
je 0x6a0a
decl %eax
movl %eax, (%rbx)
incq 0x10(%rbx)
movq 0x8(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbx)
movzbl (%rax), %r14d
jmp 0x6a15
movq %rbx, %rdi
callq 0x3730
movl %eax, %r14d
leal -0x2(%r12), %eax
cmpl %eax, %r13d
jle 0x6a30
addl %r12d, %r12d
movslq %r12d, %rsi
movq %rbp, %rdi
callq 0x37b0
movq %rax, %rbp
cmpl $0xa, %r14d
je 0x6a47
cmpl $-0x1, %r14d
jne 0x6a57
xorl %r14d, %r14d
movl %r13d, %eax
xorl %r15d, %r15d
jmp 0x6a53
movl $0x1, %r15d
xorl %r14d, %r14d
movl %r13d, %eax
xorl %ecx, %ecx
jmp 0x6a5d
leal 0x1(%r13), %eax
movb $0x1, %cl
movslq %r13d, %rdx
movb %r14b, (%rbp,%rdx)
movl %eax, %r13d
testb %cl, %cl
jne 0x69ea
testl %r15d, %r15d
je 0x6b87
movq %rbp, %rdi
leaq 0x48ee5(%rip), %rsi     # 0x4f968
leaq 0x120(%rsp), %rdx
leaq 0x80(%rsp), %rcx
callq 0x780e
movslq 0x80(%rsp), %r12
testq %r12, %r12
jle 0x6b59
movslq 0x48(%rsp), %r14
incq %r14
shlq $0x5, %r14
movq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0x37b0
movq %rax, %r15
cmpl $0x1, %r12d
jne 0x6ad6
movq $0x0, 0x8(%rsp)
jmp 0x6ae7
movq 0x120(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rsp)
movq 0x120(%rsp), %rcx
movq (%rcx), %rdi
movq %rdi, 0x10(%rsp)
movq %r15, %r13
addq %r14, %r13
xorps %xmm0, %xmm0
movups %xmm0, -0x10(%r15,%r14)
movups %xmm0, -0x20(%r15,%r14)
callq 0x35f0
movq %rax, -0x10(%r15,%r14)
movq 0x10(%rsp), %rdi
leaq 0x46cdc(%rip), %rsi     # 0x4d7fe
callq 0x3250
movq %r15, 0x68(%rsp)
movq %rax, -0x20(%r15,%r14)
testq %rax, %rax
je 0x7778
movq 0x48(%rsp), %rax
incl %eax
movq %rax, 0x48(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6b59
callq 0x35f0
movq %rax, -0x8(%r13)
movq 0x120(%rsp), %r14
testl %r12d, %r12d
jle 0x6b7a
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
callq 0x3370
incq %r15
cmpq %r15, %r12
jne 0x6b69
movq %r14, %rdi
callq 0x3370
jmp 0x69d1
movq %rbp, %rdi
callq 0x3370
movq 0x20(%rsp), %r13
movq 0x48(%rsp), %rbp
movl %ebp, %eax
movq %rax, 0xe0(%rsp)
testl %ebp, %ebp
jle 0x6bd5
leaq 0x70(%rsp), %rbx
leaq 0x3c(%rsp), %r14
movq 0xe0(%rsp), %r15
movq 0x68(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x620c
addq $0x20, %r12
decq %r15
jne 0x6bbe
movq 0x30(%rsp), %r12
testq %r12, %r12
movq %rbp, 0x48(%rsp)
je 0x6bee
movq 0x18(%rsp), %rbp
jmp 0x6dca
movq 0x70(%rsp), %rdx
movl 0x3c(%rsp), %eax
movl $0x1f4, %r12d           # imm = 0x1F4
cmpl %r12d, %eax
cmovll %eax, %r12d
testl %eax, %eax
movq 0x18(%rsp), %rbp
jle 0x6d63
leaq 0x28(%rdx), %rcx
xorl %ebx, %ebx
leaq 0x120(%rsp), %r14
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl %ebx, %eax
imulq $0x2028, %rax, %r13     # imm = 0x2028
addq %rcx, %r13
movq -0x20(%r13), %rax
movq 0x10(%rax), %rbp
movq %r13, %rdi
leaq 0x80(%rsp), %r15
movq %r15, %rsi
xorl %edx, %edx
callq 0x3470
movq 0x88(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x3650
movq %r15, %rdi
callq 0x3790
cmpb $0x2f, (%r13)
jne 0x6c81
movq %r14, %rdi
movq %r13, %rsi
callq 0x3650
jmp 0x6cc4
movq %rbp, %rdi
callq 0x35f0
movq %rax, %rbp
movq %rax, %rdi
callq 0x3060
movq %r14, %rdi
movq %rax, %rsi
callq 0x3650
movq %rbp, %rdi
callq 0x3370
movq %r14, %rdi
callq 0x3380
movw $0x2f, 0x120(%rsp,%rax)
movq %r14, %rdi
movq %r13, %rsi
callq 0x3500
movq %r14, %rdi
xorl %esi, %esi
callq 0x3430
testq %rax, %rax
jne 0x6ce7
incl %ebx
addq $0x2028, %r13           # imm = 0x2028
cmpl %r12d, %ebx
jl 0x6c35
jmp 0x6d54
movq %rax, %rbp
movq %rax, %rdi
callq 0x33c0
testq %rax, %rax
je 0x6d09
movq %rax, %rdi
callq 0x3720
movb $0x1, %r15b
movq 0x20(%rsp), %r13
jmp 0x6d33
movq %rbp, %rdi
leaq 0x4a34a(%rip), %rsi     # 0x5105d
callq 0xd846
testq %rax, %rax
sete %r15b
movq 0x20(%rsp), %r13
je 0x6d33
movq %rax, %rdi
callq 0xdf1c
movq %rbp, 0x30(%rsp)
movq 0x18(%rsp), %rbp
testb %r15b, %r15b
movq 0x8(%rsp), %rcx
je 0x6d5e
incl %ebx
cmpl %r12d, %ebx
movq 0x10(%rsp), %rdx
jl 0x6c29
jmp 0x6d63
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %r12
testq %r12, %r12
jne 0x6dca
movq 0x8(%rdx), %rax
movq 0x10(%rax), %rdi
callq 0x35f0
movq %rax, %rbx
movq %rax, %rdi
callq 0x3060
movq %rax, %r14
movq %rax, %rdi
callq 0x3380
leaq 0xa(%rax), %rdi
movl $0x1, %esi
callq 0x36a0
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x3650
movq %r12, %rdi
callq 0x3380
movabsq $0x7a672e7864692f, %rcx # imm = 0x7A672E7864692F
movq %rcx, (%r12,%rax)
movq %rbx, %rdi
callq 0x3370
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movq $0x0, 0x130(%rsp)
testq %rbp, %rbp
movq 0x60(%rsp), %r15
movq %r12, 0x30(%rsp)
je 0x6f34
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x12a62
testq %rax, %rax
je 0x77df
movq %rax, %r14
movq %rax, %rdi
callq 0x122ad
movq %rax, 0x8(%rsp)
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3240
movq %rax, 0x40(%rsp)
leaq 0x7c(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x122d6
cmpl $0x0, (%rbx)
jle 0x6f16
movq %rax, %r12
leaq 0x46a3c(%rip), %rbp     # 0x4d88e
leaq 0x120(%rsp), %rbx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq %r14, 0x10(%rsp)
movq (%r12,%r15,8), %rsi
movq %r14, %rdi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0x80(%rsp), %r8
callq 0x13004
movl 0x80(%rsp), %eax
cmpl 0x84(%rsp), %eax
jge 0x6f00
movslq %r13d, %rcx
movq 0x40(%rsp), %rdx
leaq (%rdx,%rcx,8), %r14
movq $0x0, 0x120(%rsp)
movq (%r12,%r15,8), %rdx
movq 0x88(%rsp), %rsi
cltq
movl (%rsi,%rax,8), %ecx
movl 0x4(%rsi,%rax,8), %r8d
incl %ecx
incl %r8d
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0xb4fc
movq 0x130(%rsp), %rdi
callq 0x35f0
movq %rax, (%r14)
movl 0x80(%rsp), %eax
incl %eax
movl %eax, 0x80(%rsp)
addq $0x8, %r14
incl %r13d
cmpl 0x84(%rsp), %eax
jl 0x6e9c
incq %r15
movslq 0x7c(%rsp), %rax
cmpq %rax, %r15
movq 0x10(%rsp), %r14
jl 0x6e65
movq %r14, %rdi
callq 0x12ef0
movq 0x60(%rsp), %r15
movq 0x30(%rsp), %r12
movq 0x20(%rsp), %r13
movq 0x8(%rsp), %r14
jmp 0x6f40
xorl %r14d, %r14d
movq $0x0, 0x40(%rsp)
movq 0x130(%rsp), %rdi
callq 0x3370
testq %r15, %r15
je 0x6fc3
leaq 0x4693e(%rip), %rsi     # 0x4d897
leaq 0x80(%rsp), %rdx
leaq 0x7c(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x780e
movslq (%rbx), %rbx
leal (%rbx,%r14), %ebp
movslq %ebp, %rsi
shlq $0x3, %rsi
movq 0x40(%rsp), %rdi
callq 0x37b0
movq %r14, %rcx
movq %rax, %r14
testq %rbx, %rbx
jle 0x6faf
movq 0x80(%rsp), %rsi
movslq %ecx, %rax
leaq (%r14,%rax,8), %rdi
shlq $0x3, %rbx
movq %rbx, %rdx
callq 0x3850
movq %r14, 0x40(%rsp)
movq 0x80(%rsp), %rdi
callq 0x3370
jmp 0x6fc6
movl %r14d, %ebp
testl %ebp, %ebp
jne 0x7002
movl $0x8, %edi
callq 0x3240
testq %rax, %rax
je 0x77c8
movq %rax, %rbx
leaq 0x46bd3(%rip), %rdi     # 0x4dbba
callq 0x35f0
movq %rbx, 0x40(%rsp)
movq %rax, (%rbx)
movl $0x1, %ebp
testq %rax, %rax
je 0x77c8
movl %ebp, 0x5c(%rsp)
cmpl $0x0, 0xc4(%rsp)
movq 0x70(%rsp), %rbp
movl 0x3c(%rsp), %r8d
je 0x704e
movq %r13, (%rsp)
leaq 0xa0(%rsp), %r9
movq %r12, %rdi
movq 0x40(%rsp), %rsi
movl 0x5c(%rsp), %edx
movq %rbp, %rcx
callq 0x8709
movl %eax, %ebx
movq 0x48(%rsp), %r14
movq 0xe0(%rsp), %rbp
jmp 0x7662
movq %r8, 0x98(%rsp)
leaq 0x4a000(%rip), %rsi     # 0x5105d
movq %r12, %rdi
callq 0xd846
movq %rax, 0xf0(%rsp)
testq %rax, %rax
je 0x77eb
movq %r12, %rdi
callq 0x13f4f
testq %rax, %rax
movq 0x40(%rsp), %r13
je 0x77f4
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
xorl %eax, %eax
movq %rax, 0x130(%rsp)
movq %rax, 0x80(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, %edx
testl %eax, %eax
movq %rdx, 0xe8(%rsp)
movq %r14, 0x108(%rsp)
jle 0x7591
imulq $0x2028, 0x98(%rsp), %rax # imm = 0x2028
movq %rax, 0x10(%rsp)
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0x4887e(%rip), %r15     # 0x4f968
xorl %eax, %eax
xorl %r12d, %r12d
movq $0x0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
movq %rbp, 0x100(%rsp)
movq 0x18(%r14), %rdi
movq %rax, 0x110(%rsp)
movq (%r13,%rax,8), %rsi
leaq 0xc3f3(%rip), %rdx      # 0x13514
movq %r14, %rcx
leaq 0x9476(%rip), %r8       # 0x105a1
leaq 0xc6fb(%rip), %r9       # 0x1382d
callq 0x110e5
testq %rax, %rax
je 0x7573
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
callq 0xe0b4
movq %rax, %rdi
movq %rbx, %rsi
leaq 0x120(%rsp), %rdx
movq %r14, %rcx
callq 0x11205
testl %eax, %eax
js 0x7566
movq %rbx, 0x118(%rsp)
movq 0x130(%rsp), %rbx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x3580
movl $0x1, %r13d
testq %rax, %rax
je 0x71b5
movl 0x8(%rsp), %r14d
incl %r13d
incq %rax
movq %rax, %rdi
movl $0x9, %esi
callq 0x3580
testq %rax, %rax
jne 0x719b
jmp 0x71ba
movl 0x8(%rsp), %r14d
testl %r14d, %r14d
movl %r12d, 0x50(%rsp)
js 0x71ce
cmpl %r13d, %r14d
je 0x71e3
jmp 0x775f
movl %r13d, %edi
movl $0x8, %esi
callq 0x36a0
movq %rax, 0x28(%rsp)
movl %r13d, %r14d
movq %rbx, %rdi
callq 0x3380
leaq 0x1(%rax), %rsi
movq 0x18(%rsp), %rdi
callq 0x37b0
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3650
movq %r12, 0x18(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x3660
testq %rax, %rax
je 0x7262
movq %rax, %rbx
movq %r15, %r12
movq 0x28(%rsp), %r15
movq (%r15), %r13
movq %rbx, %rdi
callq 0x3380
leaq 0x1(%rax), %rsi
movq %r13, %rdi
callq 0x37b0
movq %rax, (%r15)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3650
xorl %edi, %edi
movq %r12, %rsi
callq 0x3660
movq %rax, %rbx
addq $0x8, %r15
testq %rax, %rax
jne 0x7227
cmpl $0x2, %r14d
jle 0x7745
movl %r14d, 0x8(%rsp)
movl 0x50(%rsp), %r12d
testl %r12d, %r12d
jne 0x73a6
cmpl $0x0, 0xa4(%rsp)
je 0x73a6
leaq 0x466cb(%rip), %rdi     # 0x4d95f
movq 0x20(%rsp), %r13
movq %r13, %rsi
callq 0x3520
cmpl $0x0, 0xa8(%rsp)
leaq 0x466c9(%rip), %r15     # 0x4d979
je 0x72f7
leaq 0x466b8(%rip), %rdi     # 0x4d971
movq %r13, %rsi
callq 0x3520
cmpl $0x5, 0x8(%rsp)
jl 0x72f7
movl 0x8(%rsp), %eax
movl %eax, %r14d
negl %r14d
movl $0x5, %ebx
movq %r13, %rdi
movq %r15, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x37e0
leal (%r14,%rbx), %eax
incl %eax
movl %ebx, %ecx
incl %ecx
movl %ecx, %ebx
cmpl $0x1, %eax
jne 0x72d7
cmpl $0x0, 0x98(%rsp)
leaq 0x46606(%rip), %r14     # 0x4d90c
jle 0x7399
xorl %r15d, %r15d
movq (%rbp,%r15), %rdx
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x37e0
cmpl $0x0, 0xac(%rsp)
je 0x7387
movq (%rbp,%r15), %rbx
movq %rbx, %rdi
callq 0x3380
leaq 0x5(%rax), %rdi
callq 0x3240
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3650
movq %r13, %rdi
callq 0x3380
movl $0x6769735f, (%r13,%rax) # imm = 0x6769735F
movw $0x32, 0x4(%r13,%rax)
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x37e0
movq %r13, %rdi
movq 0x20(%rsp), %r13
callq 0x3370
addq $0x2028, %r15           # imm = 0x2028
cmpq %r15, 0x10(%rsp)
jne 0x730f
movl $0xa, %edi
movq %r13, %rsi
callq 0x3350
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rbx
movb (%rbx), %r14b
testb %r14b, %r14b
je 0x73ff
movl $0x1, %r13d
movl %r14d, %r15d
cmpb $0x2d, %r14b
sete %al
cmpq $0x1, %r13
sete %cl
testb %cl, %al
jne 0x73f3
callq 0x3410
cmpb $0x2e, %r15b
je 0x73f3
movq (%rax), %rax
movsbq %r15b, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
je 0x773d
movb (%rbx,%r13), %r15b
incq %r13
testb %r15b, %r15b
jne 0x73c0
movq %rbx, %rdi
callq 0x3550
testl %eax, %eax
movq 0x20(%rsp), %r13
jns 0x741e
cmpl $0x0, 0xc0(%rsp)
je 0x7521
movl %eax, 0xfc(%rsp)
movq 0x28(%rsp), %r12
movq (%r12), %rdi
movq %r13, %rsi
callq 0x3520
movl $0x9, %edi
movq %r13, %rsi
callq 0x3350
movq 0x8(%r12), %rdi
movq %r13, %rsi
callq 0x3520
movl $0x9, %edi
movq %r13, %rsi
callq 0x3350
movq 0x10(%r12), %rdi
movq %r13, %rsi
callq 0x3520
cmpl $0x0, 0xa8(%rsp)
leaq 0x46493(%rip), %rbx     # 0x4d90c
je 0x74b2
cmpl $0x3, 0x8(%rsp)
je 0x74b2
movl 0x8(%rsp), %eax
cmpl $0x5, %eax
movl $0x4, %r14d
cmovgel %eax, %r14d
movl $0x3, %r15d
movq (%r12,%r15,8), %rdx
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x37e0
incq %r15
cmpq %r15, %r14
jne 0x7499
cmpl $0x0, 0x98(%rsp)
movq %r13, %r15
leaq 0xa0(%rsp), %r12
leaq 0x80(%rsp), %rbp
jle 0x7507
movslq 0xfc(%rsp), %rbx
movq 0x100(%rsp), %r13
movq 0x98(%rsp), %r14
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x5964
addq $0x2028, %r13           # imm = 0x2028
decq %r14
jne 0x74e7
movl $0xa, %edi
movq %r15, %rsi
callq 0x3350
movq 0x100(%rsp), %rbp
movl 0x50(%rsp), %r12d
incl %r12d
movq 0xf0(%rsp), %rdi
callq 0xe0b4
movq %rax, %rdi
movq 0x118(%rsp), %rbx
movq %rbx, %rsi
leaq 0x120(%rsp), %rdx
movq 0x108(%rsp), %r14
movq %r14, %rcx
callq 0x11205
testl %eax, %eax
leaq 0x48408(%rip), %r15     # 0x4f968
jns 0x7176
movq %rbx, %rdi
callq 0x10de4
movq 0x40(%rsp), %r13
movq 0xe8(%rsp), %rdx
movq 0x110(%rsp), %rax
incq %rax
cmpq %rdx, %rax
jne 0x7109
jmp 0x75ab
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movq $0x0, 0x28(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x3370
movq 0x80(%rsp), %rdi
callq 0x3370
movl 0x8(%rsp), %eax
testl %eax, %eax
movq 0x28(%rsp), %r15
jle 0x75e5
movl %eax, %ebx
xorl %r14d, %r14d
movq (%r15,%r14,8), %rdi
callq 0x3370
incq %r14
cmpq %r14, %rbx
jne 0x75d4
movq %r15, %rdi
callq 0x3370
movq 0x130(%rsp), %rdi
callq 0x3370
movq 0x108(%rsp), %rdi
callq 0x13cf6
movq 0xf0(%rsp), %rdi
callq 0xdf1c
testl %eax, %eax
movq 0x30(%rsp), %r12
movq 0x48(%rsp), %r14
movq 0xe0(%rsp), %rbp
jne 0x77fd
cmpl $0x0, 0x5c(%rsp)
movq 0xe8(%rsp), %r15
movq %r13, %rdi
jle 0x7656
xorl %ebx, %ebx
movq (%rdi,%rbx,8), %rdi
callq 0x3370
movq %r13, %rdi
incq %rbx
cmpq %rbx, %r15
jne 0x7642
callq 0x3370
xorl %ebx, %ebx
movq 0x60(%rsp), %r15
testl %r14d, %r14d
jle 0x76ac
shlq $0x5, %rbp
xorl %r14d, %r14d
movq 0x68(%rsp), %r13
movq (%r13,%r14), %rdi
callq 0x36c0
movq 0x18(%r13,%r14), %rdi
testq %rdi, %rdi
je 0x768c
callq 0x3370
movq 0x68(%rsp), %r13
movq 0x10(%r13,%r14), %rdi
callq 0x3370
addq $0x20, %r14
cmpq %r14, %rbp
jne 0x7673
movq %r13, %rdi
callq 0x3370
movslq 0x3c(%rsp), %rax
testq %rax, %rax
jle 0x76ee
movq 0x70(%rsp), %r14
imulq $0x2028, %rax, %r15     # imm = 0x2028
xorl %r12d, %r12d
movq (%r14,%r12), %rdi
callq 0x3370
addq $0x2028, %r12           # imm = 0x2028
cmpq %r12, %r15
jne 0x76c5
movq 0x70(%rsp), %rdi
callq 0x3370
movq 0x60(%rsp), %r15
movq 0x30(%rsp), %r12
testq %r12, %r12
je 0x76fb
movq %r12, %rdi
callq 0x3370
movq 0xb8(%rsp), %rdi
callq 0x3370
testq %r15, %r15
je 0x7715
movq %r15, %rdi
callq 0x3370
movl %ebx, %eax
addq $0x1128, %rsp           # imm = 0x1128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa0(%rsp), %rdi
callq 0x3a04
movl $0x1, %ebx
jmp 0x7715
movq %rbx, %rdi
callq 0x3caa
leaq 0x46186(%rip), %rdi     # 0x4d8d2
leaq 0x461ab(%rip), %rsi     # 0x4d8fe
movl $0x10f, %edx            # imm = 0x10F
xorl %eax, %eax
callq 0x6169
movl %r13d, %edi
movl %r14d, %esi
callq 0x3c7d
leaq (%r15,%rbx), %rax
addq $0x20, %rax
movq -0x10(%rax), %rsi
jmp 0x777c
movq -0x10(%r13), %rsi
leaq 0x4607e(%rip), %rdi     # 0x4d801
xorl %eax, %eax
callq 0x6169
leaq (%r15,%r14), %rax
addq $0x20, %rax
jmp 0x7772
leaq 0xa0(%rsp), %rdi
callq 0x3a04
leaq 0x45bd3(%rip), %rdi     # 0x4d37b
movl %r14d, %esi
xorl %eax, %eax
callq 0x6169
leaq 0xa0(%rsp), %rdi
callq 0x3a04
leaq 0x45bcf(%rip), %rdi     # 0x4d395
jmp 0x77d8
xorl %edi, %edi
xorl %eax, %eax
callq 0x78cb
leaq 0x46042(%rip), %rdi     # 0x4d81a
xorl %eax, %eax
callq 0x6169
leaq 0x46082(%rip), %rdi     # 0x4d868
movq %rbp, %rsi
jmp 0x7807
leaq 0x460a7(%rip), %rdi     # 0x4d899
jmp 0x7804
leaq 0x460b1(%rip), %rdi     # 0x4d8ac
jmp 0x7804
leaq 0x4610c(%rip), %rdi     # 0x4d910
movq %r12, %rsi
xorl %eax, %eax
callq 0x78cb