// File: /workspace/github_c_makefile_star2_O2/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 $0x1108, %rsp           # imm = 0x1108
movq %rsi, %rbx
movl %edi, %r12d
xorps %xmm0, %xmm0
movups %xmm0, 0xd0(%rsp)
movups %xmm0, 0xc0(%rsp)
movups %xmm0, 0xe0(%rsp)
movl $0x3, 0xb0(%rsp)
andl $0x0, 0xd4(%rsp)
movups %xmm0, 0xb4(%rsp)
movabsq $0xf4240000f4240, %rax  # imm = 0xF4240000F4240
movq %rax, 0xd8(%rsp)
movq $-0x40800000, 0xe0(%rsp) # imm = 0xBF800000
leaq 0x3ae08(%rip), %rdi     # 0x3f35d
callq 0x3600
movq %rax, 0xc8(%rsp)
cmpl $0x1, %r12d
jg 0x457d
leaq 0xb0(%rsp), %rdi
callq 0x573a
pushq $0x1
popq %rbx
jmp 0x5509
movq %rax, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
pushq $0x1
popq %rbp
movq 0x4ea67(%rip), %rax     # 0x52ff8
movq (%rax), %r15
xorl %eax, %eax
pushq $0x3
popq %rcx
movl %ecx, 0x40(%rsp)
movss 0x3aca3(%rip), %xmm0    # 0x3f248
movss %xmm0, 0x58(%rsp)
pushq $-0x1
popq %rcx
movl %ecx, 0x48(%rsp)
movl $0xf4240, 0x20(%rsp)    # imm = 0xF4240
leaq 0x3ac9f(%rip), %r13     # 0x3f260
movl $0xf4240, 0x50(%rsp)    # imm = 0xF4240
movl $0x0, 0x80(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x78(%rsp)
movl $0x0, 0x70(%rsp)
movl $0x0, 0x68(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0xf8(%rsp)
movq $0x0, 0xf0(%rsp)
movq $0x0, 0x60(%rsp)
movl %eax, %r14d
movl %r12d, %edi
movq 0x30(%rsp), %rsi
leaq 0x3ad28(%rip), %rdx     # 0x3f360
callq 0x3200
testl %eax, %eax
js 0x47e1
movl %eax, %ebx
leal -0x4e(%rbx), %eax
cmpl $0x27, %eax
ja 0x4674
movslq (%r13,%rax,4), %rcx
addq %r13, %rcx
movl %ebp, %eax
jmpq *%rcx
movq 0x4e97e(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3600
movq %rax, 0x10(%rsp)
movl %r14d, %eax
jmp 0x4626
cmpl $0x46, %ebx
jne 0x563b
movl %r14d, %eax
movl %ebp, 0x68(%rsp)
jmp 0x4626
movq 0x4e953(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
leaq 0x3aa21(%rip), %rsi     # 0x3f0b8
callq 0x3250
movq %rax, %r15
movl %r14d, %eax
jmp 0x4626
movq 0x4e935(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3560
movl %eax, 0x48(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e91a(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3560
movl %eax, 0x50(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e8ff(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x32f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x58(%rsp)
movl %r14d, %eax
jmp 0x4626
movl %r14d, %eax
movl %ebp, 0x78(%rsp)
jmp 0x4626
movl %r14d, %eax
movl %ebp, 0x80(%rsp)
jmp 0x4626
movl %r14d, %eax
movl %ebp, 0x18(%rsp)
jmp 0x4626
movq 0x4e8b7(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3560
movl %eax, 0x20(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e89c(%rip), %rax     # 0x52fe0
movq (%rax), %rax
movq %rax, 0xf8(%rsp)
movl %r14d, %eax
jmp 0x4626
movl %r14d, %eax
movl %ebp, 0x8(%rsp)
jmp 0x4626
movq 0x4e876(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3600
movq %rax, 0x60(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e85a(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3600
movq %rax, 0xf0(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e83b(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3600
movq %rax, 0x28(%rsp)
movl %r14d, %eax
jmp 0x4626
movq 0x4e81f(%rip), %rax     # 0x52fe0
movq (%rax), %rdi
callq 0x3560
movl %eax, 0x40(%rsp)
movl %r14d, %eax
jmp 0x4626
movl %r14d, %eax
movl %ebp, 0x70(%rsp)
jmp 0x4626
movl 0x68(%rsp), %eax
movl %eax, 0xe8(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0xd0(%rsp)
movl 0x78(%rsp), %eax
movl %eax, 0xc0(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0xbc(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0xb8(%rsp)
movl 0x80(%rsp), %eax
movl %eax, 0xd4(%rsp)
movl %r14d, 0xb4(%rsp)
movl 0x40(%rsp), %eax
movl %eax, 0xb0(%rsp)
movss 0x58(%rsp), %xmm0
movss %xmm0, 0xe0(%rsp)
movl 0x48(%rsp), %eax
movl %eax, 0xe4(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0xdc(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0xd8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x4e743(%rip), %rax     # 0x52fc0
movslq (%rax), %rax
movq %rax, %rbp
cmpl %r12d, %eax
setle %al
cmpq $0x0, 0x60(%rsp)
setne %cl
orb %al, %cl
je 0x56b8
andl $0x0, 0x3c(%rsp)
andq $0x0, 0x90(%rsp)
movl %r12d, %eax
movq %rax, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0x3af3d(%rip), %r14     # 0x3f7fd
movq $0x0, 0x18(%rsp)
movq 0x30(%rsp), %r13
cmpq 0x20(%rsp), %rbp
jge 0x4a2f
movq (%r13,%rbp,8), %rdi
callq 0x33c0
testq %rax, %rax
je 0x49e9
movq %rax, %r12
movq %rbp, 0x10(%rsp)
movq 0x28(%rsp), %rbp
movq %r12, %rdi
callq 0x3450
testq %rax, %rax
je 0x49d0
movq %rax, %rbx
addq $0x13, %rbx
movq %rbx, %rdi
callq 0x3380
cmpq $0x5, %rax
jb 0x48f9
movq %rax, %r13
leaq (%rbx,%rax), %rdi
addq $-0x4, %rdi
movq %r14, %rsi
callq 0x3630
testl %eax, %eax
jne 0x48f9
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rbp
movq %rbp, %rdi
callq 0x3380
leaq (%rax,%r13), %rdi
addq $0x5, %rdi
callq 0x3240
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
movq 0x28(%rsp), %rbp
callq 0x3660
movq %r13, %rdi
callq 0x3380
movw $0x2f, (%r13,%rax)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3500
movq 0x8(%rsp), %rax
movslq %eax, %rbx
incl %eax
movq %rax, 0x8(%rsp)
shlq $0x5, %rbx
leaq 0x20(%rbx), %rsi
movq 0x18(%rsp), %rdi
callq 0x37c0
movq %rax, 0x18(%rsp)
leaq (%rax,%rbx), %rsi
addq $0x20, %rsi
addq $-0x20, %rsi
movq %r13, %rdi
xorl %edx, %edx
callq 0x597d
movq %r13, %rdi
callq 0x3370
jmp 0x48f9
movq %rbp, 0x28(%rsp)
movq %r12, %rdi
callq 0x3730
movq 0x30(%rsp), %r13
movq 0x10(%rsp), %rbp
jmp 0x4a27
movq 0x8(%rsp), %rax
movslq %eax, %rbx
incl %eax
movq %rax, 0x8(%rsp)
shlq $0x5, %rbx
leaq 0x20(%rbx), %rsi
movq 0x18(%rsp), %rdi
callq 0x37c0
movq (%r13,%rbp,8), %rdi
movq %rax, 0x18(%rsp)
leaq (%rax,%rbx), %rsi
addq $0x20, %rsi
addq $-0x20, %rsi
xorl %edx, %edx
callq 0x597d
incq %rbp
jmp 0x48ce
movq 0x60(%rsp), %r12
testq %r12, %r12
je 0x4b95
cmpb $0x2d, (%r12)
jne 0x4a50
cmpb $0x0, 0x1(%r12)
je 0x551d
leaq 0x3e522(%rip), %rsi     # 0x42f79
movq %r12, %rdi
callq 0x3160
testq %rax, %rax
je 0x56e8
movq %rax, %r14
xorl %ebp, %ebp
pushq $0xa
popq %rsi
pushq $0xa
popq %r12
movq %rbp, %rdi
callq 0x37c0
movq %rax, %rbp
xorl %ebx, %ebx
movl %r12d, %r13d
movl (%r14), %eax
testl %eax, %eax
je 0x4aa6
decl %eax
movl %eax, (%r14)
incq 0x10(%r14)
movq 0x8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%r14)
movzbl (%rax), %r12d
jmp 0x4ab1
movq %r14, %rdi
callq 0x3740
movl %eax, %r12d
leal -0x2(%r13), %eax
cltq
cmpq %rax, %rbx
jle 0x4acd
addl %r13d, %r13d
movslq %r13d, %rsi
movq %rbp, %rdi
callq 0x37c0
movq %rax, %rbp
cmpl $-0x1, %r12d
je 0x4b81
cmpl $0xa, %r12d
je 0x4ae7
movb %r12b, (%rbp,%rbx)
incq %rbx
jmp 0x4a84
movl %ebx, %eax
movb $0x0, (%rbp,%rax)
movq %rbp, %rdi
leaq 0x3ce68(%rip), %rsi     # 0x41960
leaq 0x100(%rsp), %rdx
leaq 0x98(%rsp), %rcx
callq 0x59de
movl 0x98(%rsp), %r13d
movq 0x100(%rsp), %r12
testl %r13d, %r13d
jle 0x4b71
movslq 0x8(%rsp), %rbx
incq %rbx
shlq $0x5, %rbx
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x37c0
movq %rax, 0x18(%rsp)
cmpl $0x1, %r13d
jne 0x4b4a
xorl %edx, %edx
jmp 0x4b4f
movq 0x8(%r12), %rdx
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
movq (%r12), %rdi
movq 0x18(%rsp), %rax
leaq (%rax,%rbx), %rsi
addq $-0x20, %rsi
callq 0x597d
movq %r12, %rdi
movl %r13d, %esi
callq 0x5a8f
jmp 0x4a6d
movq %rbp, %rdi
callq 0x3370
movq 0x28(%rsp), %rbp
movq 0x8(%rsp), %rax
jmp 0x4b9f
movq 0x8(%rsp), %rax
movq 0x28(%rsp), %rbp
xorl %r12d, %r12d
testl %eax, %eax
movl $0x0, %r13d
movq %rax, 0x8(%rsp)
cmovgl %eax, %r13d
shlq $0x5, %r13
leaq 0x90(%rsp), %rbx
leaq 0x3c(%rsp), %r14
cmpq %r12, %r13
je 0x4be3
movq 0x18(%rsp), %rax
leaq (%rax,%r12), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x421e
addq $0x20, %r12
jmp 0x4bc4
testq %rbp, %rbp
jne 0x4d64
movq 0x90(%rsp), %rcx
movl 0x3c(%rsp), %eax
movl $0x1f4, %r13d           # imm = 0x1F4
cmpl %r13d, %eax
cmovll %eax, %r13d
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
movq %rcx, 0x30(%rsp)
leaq 0x28(%rcx), %rbx
leaq 0x98(%rsp), %r14
leaq 0x100(%rsp), %r12
subq $0x1, %r13
jb 0x4d03
movq -0x20(%rbx), %rax
movq 0x10(%rax), %rbp
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3470
movq 0xa0(%rsp), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x3660
movq %r14, %rdi
callq 0x37a0
cmpb $0x2f, (%rbx)
jne 0x4c73
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3660
jmp 0x4cb6
movq %rbp, %rdi
callq 0x3600
movq %rax, %rbp
movq %rax, %rdi
callq 0x3060
movq %r12, %rdi
movq %rax, %rsi
callq 0x3660
movq %rbp, %rdi
callq 0x3370
movq %r12, %rdi
callq 0x3380
movw $0x2f, 0x100(%rsp,%rax)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3500
movq %r12, %rdi
xorl %esi, %esi
callq 0x3430
testq %rax, %rax
je 0x4cf7
movq %rax, %rbp
movq %rax, %rdi
callq 0x33c0
testq %rax, %rax
je 0x4cdf
movq %rax, %rdi
callq 0x3730
jmp 0x4cf7
movq %rbp, %rdi
leaq 0x3e290(%rip), %rsi     # 0x42f79
callq 0xa84d
testq %rax, %rax
jne 0x554f
addq $0x2028, %rbx           # imm = 0x2028
jmp 0x4c27
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rdi
callq 0x3600
movq %rax, %rbx
movq %rax, %rdi
callq 0x3060
movq %rax, %r14
movq %rax, %rdi
callq 0x3380
leaq 0xa(%rax), %rdi
pushq $0x1
popq %rsi
callq 0x36b0
movq %rax, %rbp
movq %rax, %rdi
movq %r14, %rsi
callq 0x3660
movq %rbp, %rdi
callq 0x3380
movabsq $0x7a672e7864692f, %rcx # imm = 0x7A672E7864692F
movq %rcx, (%rbp,%rax)
movq %rbx, %rdi
callq 0x3370
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
andq $0x0, 0x110(%rsp)
movq 0xf8(%rsp), %rbx
testq %rbx, %rbx
movq %rbp, 0x28(%rsp)
je 0x4eb0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xef6e
testq %rax, %rax
je 0x56dc
movq %rax, %r14
movq %rax, %rdi
callq 0xe92c
movq %rax, 0x10(%rsp)
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3240
movq %rax, %rbx
leaq 0x8c(%rsp), %rsi
movq %r14, 0x30(%rsp)
movq %r14, %rdi
callq 0xe94f
movq %rax, %r12
leaq 0x100(%rsp), %rbp
xorl %r13d, %r13d
xorl %r14d, %r14d
movslq 0x8c(%rsp), %rax
cmpq %rax, %r13
jge 0x4e8f
movq (%r12,%r13,8), %rsi
movq 0x30(%rsp), %rdi
xorl %edx, %edx
pushq $-0x1
popq %rcx
leaq 0x98(%rsp), %r8
callq 0xf48d
movslq %r14d, %r14
movl 0x98(%rsp), %eax
cmpl 0x9c(%rsp), %eax
jge 0x4e87
andq $0x0, 0x100(%rsp)
movq (%r12,%r13,8), %rdx
movq 0xa0(%rsp), %rsi
cltq
movl (%rsi,%rax,8), %ecx
movl 0x4(%rsi,%rax,8), %r8d
incl %ecx
incl %r8d
movq %rbp, %rdi
leaq 0x3aa36(%rip), %rsi     # 0x3f890
xorl %eax, %eax
callq 0x8c8a
movq 0x110(%rsp), %rdi
callq 0x3600
movq %rax, (%rbx,%r14,8)
incq %r14
movl 0x98(%rsp), %eax
incl %eax
movl %eax, 0x98(%rsp)
jmp 0x4e23
incq %r13
jmp 0x4ded
movq 0x30(%rsp), %rdi
callq 0xf38d
movq 0x110(%rsp), %rdi
movq 0x28(%rsp), %rbp
movq %rbx, %r12
movq 0x10(%rsp), %rbx
jmp 0x4eb7
xorl %ebx, %ebx
xorl %edi, %edi
xorl %r12d, %r12d
callq 0x3370
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x4f35
leaq 0x3a9c9(%rip), %rsi     # 0x3f899
leaq 0x98(%rsp), %rdx
leaq 0x8c(%rsp), %r14
movq %r14, %rcx
callq 0x59de
movl (%r14), %r14d
leal (%r14,%rbx), %r13d
movslq %r13d, %rsi
shlq $0x3, %rsi
movq %r12, %rdi
callq 0x37c0
movq %rax, %r12
leaq 0x98(%rsp), %rax
movq (%rax), %rdi
movslq %ebx, %rcx
xorl %eax, %eax
testl %r14d, %r14d
cmovlel %eax, %r14d
leaq (%r12,%rcx,8), %rcx
cmpq %rax, %r14
je 0x4f2e
movq (%rdi,%rax,8), %rdx
movq %rdx, (%rcx,%rax,8)
incq %rax
jmp 0x4f1c
callq 0x3370
jmp 0x4f38
movl %ebx, %r13d
testl %r13d, %r13d
jne 0x4f6e
pushq $0x8
popq %rdi
callq 0x3240
testq %rax, %rax
je 0x56d3
movq %rax, %r12
leaq 0x3ac62(%rip), %rdi     # 0x3fbba
callq 0x3600
movq %rax, (%r12)
testq %rax, %rax
je 0x56d3
pushq $0x1
popq %r13
cmpl $0x0, 0xd4(%rsp)
movq 0x90(%rsp), %r14
movl 0x3c(%rsp), %ebx
je 0x4fb0
movq %r15, (%rsp)
leaq 0xb0(%rsp), %r9
movq %rbp, %rdi
movq %r12, %rsi
movl %r13d, %edx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x637c
movl %eax, %ebx
movq 0x8(%rsp), %r14
jmp 0x5466
leaq 0x3dfc2(%rip), %rsi     # 0x42f79
movq %rbp, %rdi
callq 0xa84d
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x5712
movq %rbp, %rdi
callq 0x1013a
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x571e
xorps %xmm0, %xmm0
leaq 0x100(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rax
andq $0x0, (%rax)
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
testl %r13d, %r13d
cmovlel %eax, %r13d
imulq $0x2028, %rbx, %rax     # imm = 0x2028
movq %rax, 0x30(%rsp)
pushq $-0x1
popq %rax
movl %eax, 0x20(%rsp)
leaq 0x3a8e4(%rip), %rbp     # 0x3f90e
xorl %eax, %eax
movq $0x0, 0x10(%rsp)
movq $0x0, 0x48(%rsp)
movl $0x0, 0x60(%rsp)
movq %r12, 0x70(%rsp)
movq %r13, 0x68(%rsp)
movq %rbx, 0x80(%rsp)
cmpq %r13, %rax
je 0x53ef
movq 0x40(%rsp), %rcx
movq 0x18(%rcx), %rdi
movq %rax, 0x78(%rsp)
movq (%r12,%rax,8), %rsi
leaq 0xa7a2(%rip), %rdx      # 0xf81c
leaq 0x8035(%rip), %r8       # 0xd0b6
leaq 0xaae3(%rip), %r9       # 0xfb6b
callq 0xd8bd
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x53e2
movq 0x50(%rsp), %rdi
callq 0xb0db
movq %rax, %rdi
movq 0x58(%rsp), %rsi
leaq 0x100(%rsp), %rdx
movq 0x40(%rsp), %rcx
callq 0xd9c5
testl %eax, %eax
js 0x53ce
movq 0x110(%rsp), %rbx
pushq $0x1
popq %r13
movq %rbx, %rax
movl 0x20(%rsp), %r12d
movq %rax, %rdi
pushq $0x9
popq %rsi
callq 0x3590
testq %rax, %rax
je 0x50f3
incq %rax
incq %r13
jmp 0x50db
testl %r12d, %r12d
js 0x510b
movl %r12d, %eax
cmpl %r13d, %eax
jne 0x5618
movq 0x10(%rsp), %r12
jmp 0x511e
movq %r13, %rdi
pushq $0x8
popq %rsi
callq 0x36b0
movq %rax, %r12
movl %r13d, 0x20(%rsp)
movq %rbx, %rdi
callq 0x3380
leaq 0x1(%rax), %rsi
movq 0x48(%rsp), %rdi
callq 0x37c0
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3660
movq %r13, 0x48(%rsp)
movq %r13, %rdi
leaq 0x3c80f(%rip), %rsi     # 0x41960
callq 0x3670
movq %rax, %rbx
movq %r12, 0x10(%rsp)
testq %rbx, %rbx
je 0x51a1
movq (%r12), %r13
movq %rbx, %rdi
callq 0x3380
leaq 0x1(%rax), %rsi
movq %r13, %rdi
callq 0x37c0
movq %rax, (%r12)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3660
xorl %edi, %edi
leaq 0x3c7cd(%rip), %rsi     # 0x41960
callq 0x3670
movq %rax, %rbx
addq $0x8, %r12
jmp 0x515e
cmpl $0x2, 0x20(%rsp)
jle 0x55fe
movl 0x60(%rsp), %eax
testl %eax, %eax
jne 0x52a8
cmpl $0x0, 0xb4(%rsp)
je 0x52a8
leaq 0x3a794(%rip), %rdi     # 0x3f961
movq %r15, %rsi
callq 0x3530
cmpl $0x0, 0xb8(%rsp)
movl 0x20(%rsp), %r12d
je 0x5217
leaq 0x3a788(%rip), %rdi     # 0x3f973
movq %r15, %rsi
callq 0x3530
pushq $0x5
popq %rax
movl %eax, %ebx
leal -0x1(%rbx), %eax
cmpl %r12d, %eax
jge 0x5217
movq %r15, %rdi
leaq 0x3a771(%rip), %rsi     # 0x3f97b
movl %ebx, %edx
xorl %eax, %eax
callq 0x37f0
incl %ebx
jmp 0x51f8
xorl %r12d, %r12d
cmpq %r12, 0x30(%rsp)
je 0x5299
movq (%r14,%r12), %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x37f0
cmpl $0x0, 0xbc(%rsp)
je 0x5290
movq (%r14,%r12), %rbx
movq %rbx, %rdi
callq 0x3380
leaq 0x5(%rax), %rdi
callq 0x3240
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3660
movq %r13, %rdi
callq 0x3380
movl $0x6769735f, (%r13,%rax) # imm = 0x6769735F
movw $0x32, 0x4(%r13,%rax)
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x37f0
movq %r13, %rdi
callq 0x3370
addq $0x2028, %r12           # imm = 0x2028
jmp 0x521a
pushq $0xa
popq %rdi
movq %r15, %rsi
callq 0x3350
movl 0x60(%rsp), %eax
incl %eax
movl %eax, 0x60(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rbx
xorl %r12d, %r12d
movsbq (%rbx,%r12), %r13
testq %r13, %r13
je 0x52f1
testq %r12, %r12
jne 0x52ce
cmpb $0x2d, (%rbx)
je 0x52ec
callq 0x3410
cmpb $0x2e, %r13b
je 0x52ec
movq (%rax), %rax
movzwl (%rax,%r13,2), %eax
andl $0x800, %eax            # imm = 0x800
je 0x55c9
incq %r12
jmp 0x52ba
movq %rbx, %rdi
callq 0x3560
movl %eax, %ebx
testl %eax, %eax
jns 0x530d
cmpl $0x0, 0xd0(%rsp)
je 0x509b
movq 0x10(%rsp), %r13
movq (%r13), %rdi
movq %r15, %rsi
callq 0x3530
pushq $0x9
popq %r12
movl %r12d, %edi
movq %r15, %rsi
callq 0x3350
movq 0x8(%r13), %rdi
movq %r15, %rsi
callq 0x3530
movl %r12d, %edi
movq %r15, %rsi
callq 0x3350
movq 0x10(%r13), %rdi
movq %r15, %rsi
callq 0x3530
cmpl $0x0, 0xb8(%rsp)
je 0x5383
movl 0x20(%rsp), %r12d
pushq $0x3
popq %r13
cmpq %r12, %r13
jae 0x5383
movq 0x10(%rsp), %rax
movq (%rax,%r13,8), %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x37f0
incq %r13
jmp 0x5363
movslq %ebx, %rbx
movq 0x80(%rsp), %r12
movq %r14, %r13
subq $0x1, %r12
jb 0x53be
movq %r13, %rdi
movq %rbx, %rsi
leaq 0xb0(%rsp), %rdx
movq %r15, %rcx
leaq 0x98(%rsp), %r8
callq 0x3bdc
addq $0x2028, %r13           # imm = 0x2028
jmp 0x5391
pushq $0xa
popq %rdi
movq %r15, %rsi
callq 0x3350
jmp 0x509b
movq 0x58(%rsp), %rdi
callq 0xd5aa
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %r13
movq 0x78(%rsp), %rax
incq %rax
jmp 0x5058
movq 0x48(%rsp), %rdi
callq 0x3370
movq 0x98(%rsp), %rdi
callq 0x3370
movq 0x10(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0x5a8f
movq 0x110(%rsp), %rdi
callq 0x3370
movq 0x40(%rsp), %rdi
callq 0xff56
movq 0x50(%rsp), %rdi
callq 0xaf35
testl %eax, %eax
jne 0x5727
xorl %ebx, %ebx
movq 0x28(%rsp), %rbp
movq 0x8(%rsp), %r14
cmpq %rbx, %r13
je 0x545c
movq (%r12,%rbx,8), %rdi
callq 0x3370
incq %rbx
jmp 0x5449
movq %r12, %rdi
callq 0x3370
xorl %ebx, %ebx
testl %r14d, %r14d
jle 0x54ac
movl %r14d, %r14d
shlq $0x5, %r14
xorl %r15d, %r15d
movq 0x18(%rsp), %r12
cmpq %r15, %r14
je 0x54a2
movq (%r12,%r15), %rdi
callq 0x36d0
movq 0x18(%r12,%r15), %rdi
callq 0x3370
movq 0x10(%r12,%r15), %rdi
callq 0x3370
addq $0x20, %r15
jmp 0x547a
movq 0x18(%rsp), %rdi
callq 0x3370
movslq 0x3c(%rsp), %rax
testq %rax, %rax
jle 0x54e7
movq 0x90(%rsp), %r14
imulq $0x2028, %rax, %r15     # imm = 0x2028
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x54df
movq (%r14,%r12), %rdi
callq 0x3370
addq $0x2028, %r12           # imm = 0x2028
jmp 0x54c8
movq %r14, %rdi
callq 0x3370
movq %rbp, %rdi
callq 0x3370
movq 0xc8(%rsp), %rdi
callq 0x3370
movq 0xf0(%rsp), %rdi
callq 0x3370
movl %ebx, %eax
addq $0x1108, %rsp           # imm = 0x1108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4dab4(%rip), %rax     # 0x52fd8
movq (%rax), %rdi
callq 0x3040
leaq 0x3da46(%rip), %rsi     # 0x42f79
movl %eax, %edi
callq 0x3420
testq %rax, %rax
jne 0x4a68
leaq 0x3a2d4(%rip), %rdi     # 0x3f81e
jmp 0x56cc
movq %rax, %rdi
callq 0xaf35
jmp 0x4d64
leaq 0xb0(%rsp), %rdi
movl 0x68(%rsp), %eax
movl %eax, 0x38(%rdi)
movl 0x70(%rsp), %eax
movl %eax, 0x20(%rdi)
movl 0x78(%rsp), %eax
movl %eax, 0x10(%rdi)
movl 0x8(%rsp), %eax
movl %eax, 0xc(%rdi)
movl 0x18(%rsp), %eax
movl %eax, 0x8(%rdi)
movl 0x80(%rsp), %eax
movl %eax, 0x24(%rdi)
movl %r14d, 0x4(%rdi)
movl 0x40(%rsp), %eax
movl %eax, (%rdi)
movss 0x58(%rsp), %xmm0
movss %xmm0, 0x30(%rdi)
movl 0x48(%rsp), %eax
movl %eax, 0x34(%rdi)
movl 0x50(%rsp), %eax
movl %eax, 0x2c(%rdi)
movl 0x20(%rsp), %eax
movl %eax, 0x28(%rdi)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rdi)
jmp 0x4570
movq 0x4da18(%rip), %r14     # 0x52fe8
movq (%r14), %rdi
leaq 0x3a3b1(%rip), %rsi     # 0x3f98b
leaq 0x3a3e3(%rip), %rdx     # 0x3f9c4
pushq $0x48
popq %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x37f0
movq (%r14), %rdi
callq 0x38c0
pushq $0x1
popq %rdi
callq 0x3170
leaq 0x3a2cf(%rip), %rdi     # 0x3f8d4
leaq 0x3a2f4(%rip), %rsi     # 0x3f900
movl $0x10f, %edx            # imm = 0x10F
xorl %eax, %eax
callq 0x40db
movq 0x4d9c9(%rip), %rbx     # 0x52fe8
movq (%rbx), %rdi
leaq 0x3a311(%rip), %rsi     # 0x3f93a
movl %r13d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x37f0
movq (%rbx), %rdi
jmp 0x55f1
leaq 0xb0(%rsp), %rdi
movl 0x68(%rsp), %eax
movl %eax, 0x38(%rdi)
movl 0x70(%rsp), %eax
movl %eax, 0x20(%rdi)
movl 0x78(%rsp), %eax
movl %eax, 0x10(%rdi)
movl 0x8(%rsp), %eax
movl %eax, 0xc(%rdi)
movl 0x18(%rsp), %eax
movl %eax, 0x8(%rdi)
movl 0x80(%rsp), %eax
movl %eax, 0x24(%rdi)
movl %r14d, 0x4(%rdi)
movl 0x40(%rsp), %eax
movl %eax, (%rdi)
movss 0x58(%rsp), %xmm0
movss %xmm0, 0x30(%rdi)
movl 0x48(%rsp), %eax
movl %eax, 0x34(%rdi)
movl 0x50(%rsp), %eax
movl %eax, 0x2c(%rdi)
movl 0x20(%rsp), %eax
movl %eax, 0x28(%rdi)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rdi)
callq 0x573a
leaq 0x39cd0(%rip), %rdi     # 0x3f37f
movl %ebx, %esi
xorl %eax, %eax
callq 0x40db
leaq 0xb0(%rsp), %rdi
callq 0x573a
leaq 0x39ccd(%rip), %rdi     # 0x3f399
xorl %eax, %eax
callq 0x40db
xorl %edi, %edi
xorl %eax, %eax
callq 0x5ac3
leaq 0x3a187(%rip), %rdi     # 0x3f86a
movq %rbx, %rsi
jmp 0x5733
movq 0x4d8f9(%rip), %rbx     # 0x52fe8
movq (%rbx), %rdi
leaq 0x3a145(%rip), %rsi     # 0x3f83e
leaq 0x3a163(%rip), %rdx     # 0x3f863
pushq $0x14
popq %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x37f0
jmp 0x5636
leaq 0x3a182(%rip), %rdi     # 0x3f89b
movq %rbp, %rsi
jmp 0x5733
leaq 0x3a189(%rip), %rdi     # 0x3f8ae
jmp 0x572e
leaq 0x3a1e4(%rip), %rdi     # 0x3f912
movq 0x28(%rsp), %rsi
xorl %eax, %eax
callq 0x5ac3