// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/encdesc.c
// Function: gt_encdesc_encoder_encode
int gt_encdesc_encoder_encode(GtEncdescEncoder *ee,
                              GtCstrIterator *cstr_iterator,
                              const char *name, GtError *err)
{
  int had_err = 0;
  bool is_not_at_pageborder;
  FILE *fp = NULL;
  GtStr *name1;
  GtWord sampling_start_safe_pos = 0;
  const GtUword dummy = 0;
  GtUword pagesize;

  gt_assert(ee != NULL);
  gt_assert(cstr_iterator != NULL);
  gt_assert(name != NULL);
  gt_error_check(err);
  if (ee->timer != NULL) {
    gt_timer_show_progress(ee->timer, "analyze descriptions", stdout);
  }
  had_err = encdesc_analyze_descs(ee->encdesc, cstr_iterator, err);

  if (!had_err) {
    if (ee->timer != NULL) {
      gt_timer_show_progress(ee->timer, "write encoding header", stdout);
    }

    fp = gt_fa_fopen_with_suffix(name, GT_ENCDESC_FILESUFFIX, "wb", err);
    if (fp == NULL)
      had_err = -1;
  }

  /* also determines if fields will use hc */
  if (!had_err)
    had_err = encdesc_write_header(ee->encdesc, fp, err);
  if (!had_err) {
    if (ee->timer != NULL) {
      gt_timer_show_progress(ee->timer, "calculate huffmans", stdout);
    }
    encdesc_init_huffman(ee->encdesc);
    if (ee->timer != NULL) {
      gt_timer_show_progress(ee->timer, "write encoding", stdout);
    }
    gt_error_check(err);
    sampling_start_safe_pos = ftell(fp);
    gt_xfwrite_one(&dummy, fp);

    pagesize = ee->encdesc->pagesize;
    is_not_at_pageborder = (ftell(fp) % pagesize) != 0;
    if (is_not_at_pageborder)
      ee->encdesc->start_of_encoding = (ftell(fp) / pagesize + 1) * pagesize;
    else
      ee->encdesc->start_of_encoding = ftell(fp);

    gt_xfwrite_one(&ee->encdesc->start_of_encoding, fp);

    gt_xfseek(fp, ee->encdesc->start_of_encoding, SEEK_SET);

    if (ee->page_sampling)
      ee->encdesc->sampling =
        gt_sampling_new_page(ee->sampling_rate,
                             (off_t) ee->encdesc->start_of_encoding);
    else if (ee->regular_sampling)
      ee->encdesc->sampling =
        gt_sampling_new_regular(ee->sampling_rate,
                                (off_t) ee->encdesc->start_of_encoding);
    had_err = encdesc_write_encoding(ee->encdesc, cstr_iterator, fp, err);
  }
  if (!had_err) {
    if (ee->encdesc->sampling != NULL) {
      gt_xfseek(fp, sampling_start_safe_pos, SEEK_SET);
      gt_xfwrite_one(&ee->encdesc->start_of_samplingtab, fp);
    }
  }

  gt_fa_xfclose(fp);
  if (!had_err) {
    if (ee->timer != NULL) {
      gt_timer_show_progress(ee->timer,
                             "description encoding finished", stdout);
    }
    if (gt_log_enabled()) {
      GtUword rate;
      name1 = gt_str_new_cstr(name);
      gt_str_append_cstr(name1, GT_ENCDESC_FILESUFFIX);
      gt_log_log("description encoding overview:");
      gt_log_log("==>");
      if (ee->encdesc->sampling != NULL) {
        rate = gt_sampling_get_rate(ee->encdesc->sampling);
        if (gt_sampling_is_regular(ee->encdesc->sampling)) {
          gt_log_log("applied sampling technique:"
                     " sampling every "GT_WU"th description",
                     rate);
        }
        else {
          gt_log_log("applied sampling technique:"
                     " sampling every "GT_WU"th page",
                     rate);
        }
      }
      else {
        gt_log_log("applied sampling technique: none");
      }

      gt_log_log("total number of encoded descriptions: "GT_WU"",
                 ee->encdesc->num_of_descs);
      gt_log_log("total number of encoded characters: "GT_LLU"",
                 ee->encdesc->total_num_of_chars);
      gt_log_log("bits per character encoding: %f",
                 (gt_file_estimate_size(gt_str_get(name1)) * 8.0) /
                 ee->encdesc->total_num_of_chars);
      gt_log_log("<==");
      gt_str_delete(name1);
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
andq $0x0, 0x80(%rsp)
testq %rdi, %rdi
je 0xd2719
movq %rsi, %rbp
testq %rsi, %rsi
je 0xd274a
movq %rdx, 0x70(%rsp)
testq %rdx, %rdx
je 0xd277b
movq %rcx, %r12
movq %rdi, %rbx
testq %rcx, %rcx
je 0xd14f2
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0xd27ac
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd1510
movq 0x3669af(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x24ad18(%rip), %rsi    # 0x31c223
callq 0xaf86f
movq %rbx, 0x58(%rsp)
movq 0x8(%rbx), %rax
andq $0x0, 0x28(%rsp)
andq $0x0, 0x40(%rax)
andq $0x0, 0x10(%rax)
movb $0x1, 0x6c(%rax)
xorps %xmm0, %xmm0
movq %rax, 0x18(%rsp)
movups %xmm0, (%rax)
testq %r12, %r12
je 0xd154d
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0xd27dd
movq $0x0, 0x10(%rsp)
leaq 0x28(%rsp), %r14
leaq 0x24ab66(%rip), %r15    # 0x31c0c8
leaq 0x24af8c(%rip), %rbx    # 0x31c4f5
xorl %r13d, %r13d
movq %r12, 0x40(%rsp)
movq %rbp, 0x48(%rsp)
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x29a0ba
testl %eax, %eax
je 0xd162b
js 0xd181a
movq 0x28(%rsp), %r12
testq %r12, %r12
je 0xd25f2
movq %r12, %rdi
callq 0x172d0
incq %rax
xorl %edx, %edx
xorl %ecx, %ecx
movq 0x48(%rsp), %rbp
movq 0x18(%rsp), %r9
cmpq %rax, %rdx
je 0xd15ed
movb (%r12,%rdx), %sil
xorl %edi, %edi
cmpq $0xa, %rdi
je 0xd15e8
leaq 0x1(%rdi), %r8
cmpb (%rdi,%rbx), %sil
movq %r8, %rdi
jne 0xd15c4
cmpq %r13, %rdx
jne 0xd15e1
movq %rdx, %r13
jmp 0xd15e8
incq %rcx
leaq 0x1(%rdx), %r13
incq %rdx
jmp 0xd15b9
cmpq 0x40(%r9), %rcx
movq 0x40(%rsp), %r12
jbe 0xd1576
movq 0x18(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movl $0x17b, %edx            # imm = 0x17B
callq 0x936f9
movq 0x28(%rsp), %rdi
callq 0x6c2be
movq %rax, 0x10(%rsp)
jmp 0xd1576
movq 0x18(%rsp), %rax
cmpq $0x0, 0x40(%rax)
pushq $0x1
popq %rbp
je 0xd1cfc
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0xd280e
leaq 0x24af40(%rip), %rdi    # 0x31c593
movq $0x0, 0x38(%rsp)
movq %r15, %rsi
xorl %eax, %eax
callq 0x92a82
movq 0x18(%rsp), %r14
movq 0x40(%r14), %rdi
leaq 0x24aa52(%rip), %rdx    # 0x31c0c8
movl $0xc8, %esi
movl $0x18b, %ecx            # imm = 0x18B
callq 0x9334a
movq %rax, 0x18(%r14)
movq %r15, %rdi
callq 0x172d0
movq %r14, %r9
xorl %edi, %edi
movq %rdi, %r13
cmpq %rax, %r13
ja 0xd1821
movb (%r15,%r13), %r10b
xorl %ecx, %ecx
xorl %edx, %edx
cmpq $0xa, %rcx
je 0xd16ca
cmpq %rdi, %r13
setne %sil
cmpb (%rcx,%rbx), %r10b
sete %r8b
andb %sil, %r8b
orb %r8b, %dl
incq %rcx
jmp 0xd16aa
testb $0x1, %dl
jne 0xd16d4
incq %r13
jmp 0xd1699
movq %rax, 0x20(%rsp)
movq %r15, %rcx
movq 0x18(%r9), %r15
imulq $0xc8, 0x38(%rsp), %r12
leaq (%r15,%r12), %r14
movb %r10b, 0xb8(%r15,%r12)
movb $0x0, (%rcx,%r13)
movq %r13, %rax
subq %rdi, %rax
movq %rax, 0x50(%r15,%r12)
addq %rcx, %rdi
callq 0x6c2be
movq %rax, 0x40(%r15,%r12)
movq 0x50(%r15,%r12), %rdi
movq %rdi, 0x68(%r15,%r12)
movq %rdi, 0x58(%r15,%r12)
movb $0x1, 0xbb(%r15,%r12)
movw $0x1, 0xb9(%r15,%r12)
pushq $0x8
popq %rsi
leaq 0x24a989(%rip), %rdx    # 0x31c0c8
movl $0x1a7, %ecx            # imm = 0x1A7
callq 0x9334a
movq %rax, 0x30(%r15,%r12)
xorl %r15d, %r15d
movq 0x68(%r14), %r12
callq 0xd3c28
cmpq %r12, %r15
jae 0xd176c
movq 0x30(%r14), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
jmp 0xd1751
movq %rax, 0x20(%r14)
callq 0xd3c28
movq %rax, 0x28(%r14)
callq 0x6d958
movq %rax, 0x38(%r14)
andl $0x0, 0xb4(%r14)
andq $0x0, 0x60(%r14)
andq $0x0, 0x48(%r14)
movq 0x40(%r14), %rsi
leaq 0x68(%rsp), %rdi
callq 0x9bc50
testl %eax, %eax
jne 0xd17c1
movb $0x1, 0xbf(%r14)
movq 0x68(%rsp), %rax
movq %rax, 0x88(%r14)
movq %rax, 0x98(%r14)
movq 0x50(%r14), %rdi
callq 0x5e0b0
movq %rax, 0x18(%r14)
testq %rax, %rax
movq 0x40(%rsp), %r12
je 0xd2870
xorl %r15d, %r15d
movq 0x18(%rsp), %r9
cmpq 0x50(%r14), %r15
jae 0xd1800
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x5e143
movq 0x18(%rsp), %r9
incq %r15
jmp 0xd17e4
incq %r13
incq 0x38(%rsp)
movq %r13, %rdi
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %rax
jmp 0xd1699
movl %eax, %ebp
jmp 0xd1d0d
movq 0x38(%rsp), %rax
cmpq %rax, 0x40(%r9)
jne 0xd283f
leaq 0x24a891(%rip), %rsi    # 0x31c0c8
movq %r15, %rdi
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x936f9
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x29a010
testl %eax, %eax
jne 0xd1d0d
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x29a0ba
movl %eax, %ebp
movq $0x0, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $-0x1, %ebp
je 0xd1d0d
testl %ebp, %ebp
je 0xd1d2c
cmpq $0x0, 0x28(%rsp)
je 0xd26b7
movq 0x20(%rsp), %rdi
leaq 0x24a81f(%rip), %rsi    # 0x31c0c8
movl $0x1d6, %edx            # imm = 0x1D6
callq 0x936f9
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x172d0
movq %rax, %r15
movq 0x18(%rsp), %r14
addq %rax, 0x30(%r14)
movq %rbx, %rdi
callq 0x6c2be
movq %r15, %rdx
movq %r14, %rdi
movq %rax, 0x20(%rsp)
movl $0xbf, %ebx
xorl %r14d, %r14d
xorl %ebp, %ebp
movq $0x0, 0x10(%rsp)
movq %r15, 0x78(%rsp)
xorl %esi, %esi
xorl %r15d, %r15d
cmpq %rdx, %r14
ja 0xd1c0e
cmpq 0x40(%rdi), %rbp
jae 0xd1c0e
movq 0x18(%rdi), %r13
imulq $0xc8, %rbp, %rax
movq 0x20(%rsp), %rcx
movb (%rcx,%r14), %cl
testb %cl, %cl
je 0xd193d
cmpb 0xb8(%r13,%rax), %cl
je 0xd193d
incq %r14
decq %r15
addq $0x8, %rsi
jmp 0xd18fc
addq %rax, %r13
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r14)
movq %r15, %rdx
negq %rdx
cmpq 0x68(%r13), %rdx
movq %rdx, 0x50(%rsp)
jbe 0xd19ad
leaq 0x68(%r13), %rax
movq %rax, 0x60(%rsp)
xorl %eax, %eax
movb %al, 0xbb(%r13)
movb %al, 0xb9(%r13)
movq 0x30(%r13), %rdi
leaq 0x24a749(%rip), %rdx    # 0x31c0c8
movl $0x1ee, %ecx            # imm = 0x1EE
callq 0x93472
movq %rax, 0x30(%r13)
movq 0x68(%r13), %r12
movq 0x50(%rsp), %rdx
cmpq %rdx, %r12
jae 0xd19ce
callq 0xd3c28
movq 0x30(%r13), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
jmp 0xd1991
cmpq 0x58(%r13), %rdx
movq 0x10(%rsp), %rcx
jae 0xd19db
leaq 0x58(%r13), %rsi
xorl %eax, %eax
movb %al, 0xbb(%r13)
movb %al, 0xb9(%r13)
jmp 0xd19d8
movq 0x10(%rsp), %rcx
movq 0x60(%rsp), %rsi
movq %rdx, (%rsi)
addq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
xorl %r12d, %r12d
movq %r15, %rax
addq %r12, %rax
je 0xd1a0c
movq 0x30(%r13), %rax
movq (%rax,%r12,8), %rdi
movq 0x10(%rsp), %rax
movsbq (%rax,%r12), %rsi
callq 0xd3c59
incq %r12
jmp 0xd19e8
cmpb $0x1, 0xbb(%r13)
jne 0xd1a30
movq 0x40(%r13), %rdi
movq 0x10(%rsp), %rsi
callq 0x179e0
testl %eax, %eax
je 0xd1a30
movb $0x0, 0xbb(%r13)
cmpb $0x1, 0xbf(%r13)
movq 0x40(%rsp), %r12
jne 0xd1b9d
leaq 0x68(%rsp), %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0x9bc50
testl %eax, %eax
je 0xd1a66
movb $0x0, 0xbf(%r13)
jmp 0xd1b9d
movq 0x68(%rsp), %rax
movq %rax, 0x60(%rsp)
movq %r15, %rdi
callq 0xd3bb4
testl %eax, %eax
je 0xd1a84
movb $0x1, 0xba(%r13)
cmpl 0xb4(%r13), %eax
jbe 0xd1a94
movl %eax, 0xb4(%r13)
movq 0x38(%r13), %rdi
movl %eax, %esi
callq 0x6d96d
cmpq $0x0, 0x30(%rsp)
movq 0x60(%rsp), %r15
je 0xd1b1b
movq %r15, %rsi
subq 0xa0(%r13), %rsi
je 0xd1ae0
movb $0x0, 0xc0(%r13)
cmpq 0x98(%r13), %r15
jge 0xd1ad0
movq %r15, 0x98(%r13)
cmpq 0x88(%r13), %r15
jle 0xd1ae0
movq %r15, 0x88(%r13)
testq %rsi, %rsi
jg 0xd1aef
movb $0x0, 0xbd(%r13)
js 0xd1af7
movb $0x0, 0xbe(%r13)
cmpq $0x1, 0x30(%rsp)
jne 0xd1b41
movq %rsi, 0x70(%r13)
movq %rsi, 0x90(%r13)
movq %rsi, 0x80(%r13)
movb $0x1, 0xbc(%r13)
jmp 0xd1b71
movq %r15, 0x88(%r13)
movq %r15, 0x98(%r13)
movq %r15, 0x78(%r13)
movw $0x101, 0xbd(%r13)      # imm = 0x101
movb $0x1, 0xc0(%r13)
jmp 0xd1b82
cmpq 0x80(%r13), %rsi
jle 0xd1b59
movb $0x0, 0xbc(%r13)
movq %rsi, 0x80(%r13)
cmpq 0x90(%r13), %rsi
jge 0xd1b71
movb $0x0, 0xbc(%r13)
movq %rsi, 0x90(%r13)
movq 0x28(%r13), %rdi
callq 0xd3c59
testl %eax, %eax
je 0xd1b82
incq 0x48(%r13)
movq 0x20(%r13), %rdi
movq %r15, %rsi
callq 0xd3c59
testl %eax, %eax
je 0xd1b96
incq 0x60(%r13)
movq %r15, 0xa0(%r13)
cmpb $0x0, 0xbb(%r13)
movq 0x18(%rsp), %rdi
movq 0x78(%rsp), %rdx
movq 0x50(%rsp), %rsi
je 0xd1bcd
incq %r14
incq %rbp
addq $0xc8, %rbx
movq %r14, 0x10(%rsp)
jmp 0xd18f7
xorl %r15d, %r15d
cmpq 0x50(%r13), %r15
jae 0xd1bb6
cmpq %rsi, %r15
jae 0xd1bee
movq 0x40(%r13), %rax
movb (%rax,%r15), %al
movq 0x10(%rsp), %rcx
cmpb (%rcx,%r15), %al
je 0xd1c09
movq 0x18(%r13), %rdi
movq %r15, %rsi
callq 0x5e199
movq 0x50(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x18(%rsp), %rdi
incq %r15
jmp 0xd1bd0
movq %rdx, %rax
incq %rax
cmpq %r14, %rax
jne 0xd2686
cmpq 0x38(%rsp), %rbp
movl $0x0, %r15d
ja 0xd2658
je 0xd1c60
movq 0x28(%rsp), %r8
movq %rdx, (%rsp)
leaq 0x24a9f7(%rip), %rdi    # 0x31c637
movq %rbp, %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %r14, %r9
xorl %eax, %eax
callq 0x92a82
movq 0x18(%rsp), %rdi
movb $0x0, 0x6c(%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
jae 0xd1c6f
movq (%rdi), %rax
jmp 0xd1c9e
leaq 0x80(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rdi), %rdi
leaq 0x400(,%rax,8), %rsi
leaq 0x24a43c(%rip), %rdx    # 0x31c0c8
movl $0x261, %ecx            # imm = 0x261
callq 0x93472
movq 0x18(%rsp), %rdi
movq %rax, (%rdi)
testq %rax, %rax
je 0xd262a
movq 0x10(%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rdi)
movq %rbp, (%rax,%rcx,8)
movq 0x40(%rdi), %rax
cmpq %rax, %rbp
jae 0xd1cde
movq 0x18(%rdi), %rcx
movb %r15b, -0x4(%rcx,%rbx)
movb %r15b, -0x6(%rcx,%rbx)
movb %r15b, (%rcx,%rbx)
incq %rbp
addq $0xc8, %rbx
jmp 0xd1cbb
incq 0x30(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r12, %rdx
callq 0x29a0ba
movl %eax, %ebp
jmp 0xd1880
leaq 0x24a825(%rip), %rsi    # 0x31c528
movq %r12, %rdi
xorl %eax, %eax
callq 0x89dbb
xorl %r15d, %r15d
movq %r15, %rdi
callq 0x8a5e5
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24a395(%rip), %rsi    # 0x31c0c8
movq 0x20(%rsp), %rdi
movl $0x272, %edx            # imm = 0x272
callq 0x936f9
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x38(%rax)
cmpb $0x1, 0x6c(%rax)
jne 0xd1d7f
movq (%rax), %rdi
testq %rdi, %rdi
je 0xd1d7f
leaq 0x24a363(%rip), %rsi    # 0x31c0c8
movl $0x277, %edx            # imm = 0x277
callq 0x936f9
movq 0x18(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x2987ea(%rip), %r13    # 0x36a570
leaq 0x224f94(%rip), %r14    # 0x2f6d21
pushq $0x2
popq %r12
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x40(%rax), %rdi
cmpq %rdi, %r15
jae 0xd1fa5
movq 0x18(%rax), %rbp
cmpq $0x0, 0x18(%rbp,%rbx)
je 0xd26e8
cmpb $0x0, 0xbb(%rbp,%rbx)
movq %r14, %rdx
cmovneq %r13, %rdx
leaq 0x24a8d2(%rip), %rdi    # 0x31c69b
movq %r15, %rsi
xorl %eax, %eax
callq 0x92a82
cmpb $0x0, 0xbf(%rbp,%rbx)
je 0xd1e88
movq %r15, 0x10(%rsp)
movq 0x80(%rbp,%rbx), %rax
movq 0x88(%rbp,%rbx), %rcx
subq 0x98(%rbp,%rbx), %rcx
movq %rcx, %r15
negq %r15
cmovsq %rcx, %r15
subq 0x90(%rbp,%rbx), %rax
movq %rax, %r14
negq %r14
cmovsq %rax, %r14
xorl %r13d, %r13d
leaq 0x24a88d(%rip), %rdi    # 0x31c6b1
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x92a82
movq 0x48(%rbp,%rbx), %rdx
movq 0x60(%rbp,%rbx), %rsi
leaq 0x24a891(%rip), %rdi    # 0x31c6d3
xorl %eax, %eax
callq 0x92a82
movq %r15, %rdi
cmpq %r14, %r15
jb 0xd1e62
cmpq $0x0, 0x48(%rbp,%rbx)
setne %r13b
cmoveq %r15, %r14
movq %r14, %rdi
movb %r13b, 0xc1(%rbp,%rbx)
movq %r12, %rsi
callq 0xd3cea
movl %eax, 0xac(%rbp,%rbx)
movl $0xb0, %r14d
leaq 0x2986ea(%rip), %r13    # 0x36a570
jmp 0xd1ea7
cmpb $0x0, 0xbb(%rbp,%rbx)
jne 0xd1ec5
movq %r15, 0x10(%rsp)
movq 0x68(%rbp,%rbx), %r15
subq 0x58(%rbp,%rbx), %r15
movl $0xa8, %r14d
movq %r15, %rdi
movq %r12, %rsi
callq 0xd3cea
addq %rbp, %r14
movl %eax, (%rbx,%r14)
leaq 0x224e61(%rip), %r14    # 0x2f6d21
movq 0x10(%rsp), %r15
cmpb $0x0, 0xc2(%rbp,%rbx)
leaq 0x28d8d7(%rip), %rsi    # 0x35f7ab
leaq 0x255532(%rip), %rax    # 0x32740d
cmovneq %rax, %rsi
leaq 0x24a80d(%rip), %rdi    # 0x31c6f3
xorl %eax, %eax
callq 0x92a82
cmpb $0x0, 0xbb(%rbp,%rbx)
jne 0xd1f91
cmpb $0x0, 0xbf(%rbp,%rbx)
movq %r14, %rsi
cmovneq %r13, %rsi
leaq 0x24a7f3(%rip), %rdi    # 0x31c704
xorl %eax, %eax
callq 0x92a82
cmpb $0x1, 0xbf(%rbp,%rbx)
jne 0xd1f91
cmpb $0x0, 0xbc(%rbp,%rbx)
movq %r14, %rsi
cmovneq %r13, %rsi
cmpb $0x0, 0xc1(%rbp,%rbx)
leaq 0x24a7f8(%rip), %rdx    # 0x31c738
cmovneq %r13, %rdx
leaq 0x24a7c6(%rip), %rdi    # 0x31c711
xorl %eax, %eax
callq 0x92a82
cmpb $0x0, 0xbd(%rbp,%rbx)
movq %r13, %rsi
leaq 0x24a7f7(%rip), %rdx    # 0x31c75b
jne 0xd1f83
cmpb $0x0, 0xbe(%rbp,%rbx)
movq %r14, %rsi
cmovneq %r13, %rsi
movq %r13, %rdx
leaq 0x24a7e6(%rip), %rax    # 0x31c765
cmovneq %rax, %rdx
leaq 0x24a7b2(%rip), %rdi    # 0x31c73c
xorl %eax, %eax
callq 0x92a82
incq %r15
addq $0xc8, %rbx
movq 0x18(%rsp), %rax
jmp 0xd1d96
pushq $0x2
popq %rsi
movq %rax, %rbx
callq 0xd3cea
movl %eax, 0x68(%rbx)
movq 0x58(%rsp), %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd1fd6
movq 0x365ee9(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x24a267(%rip), %rsi    # 0x31c238
callq 0xaf86f
leaq 0x24a271(%rip), %rsi    # 0x31c24e
leaq 0x223b0d(%rip), %rdx    # 0x2f5af1
leaq 0x24a0dd(%rip), %rcx    # 0x31c0c8
movq 0x70(%rsp), %rdi
movl $0x3f9, %r8d            # imm = 0x3F9
movq 0x40(%rsp), %r12
movq %r12, %r9
callq 0x8a449
testq %rax, %rax
je 0xd2025
movq %rax, %r15
movq 0x8(%rbx), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0xd44e8
testl %eax, %eax
je 0xd202d
movl %eax, %ebp
jmp 0xd1d10
pushq $-0x1
popq %rbp
jmp 0xd1d0d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd204b
movq 0x365e74(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x24a20d(%rip), %rsi    # 0x31c253
callq 0xaf86f
movq 0x8(%rbx), %rdi
callq 0xd28d2
movq (%rbx), %rdi
testq %rdi, %rdi
movq 0x48(%rsp), %rbp
je 0xd2077
movq 0x365e48(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x24a1f4(%rip), %rsi    # 0x31c266
callq 0xaf86f
testq %r12, %r12
je 0xd208c
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0xd28a1
movq %r15, %rdi
callq 0x17030
movq %rax, 0x50(%rsp)
leaq 0x80(%rsp), %rdi
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0xb302c
movq 0x8(%rbx), %rax
movq 0x50(%rax), %r14
movq %r15, %rdi
callq 0x17030
xorl %edx, %edx
divq %r14
movq %rdx, %rbx
movq %r15, %rdi
callq 0x17030
testq %rbx, %rbx
je 0xd20e0
xorl %edx, %edx
divq %r14
incq %rax
imulq %r14, %rax
movq 0x58(%rsp), %rbx
movq 0x8(%rbx), %rdi
movq %rax, 0x60(%rdi)
addq $0x60, %rdi
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0xb302c
movq 0x8(%rbx), %rax
movq 0x60(%rax), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xb2fec
cmpb $0x1, 0x19(%rbx)
movq %r15, 0x20(%rsp)
jne 0xd212f
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rdi
movq 0x60(%rax), %rsi
callq 0x113f23
jmp 0xd2146
movq 0x8(%rbx), %r14
cmpb $0x1, 0x18(%rbx)
jne 0xd214e
movq 0x10(%rbx), %rdi
movq 0x60(%r14), %rsi
callq 0x113e0c
movq 0x8(%rbx), %r14
movq %rax, 0x28(%r14)
movq %r14, 0x10(%rsp)
leaq 0x249f6e(%rip), %r15    # 0x31c0c8
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
movq %r15, %rdx
movl $0x2c3, %ecx            # imm = 0x2C3
callq 0x9334a
movq %rax, %rbx
movq 0x50(%r14), %r13
pushq $0x18
popq %rdi
movq %r15, %rsi
movl $0x2c8, %edx            # imm = 0x2C8
callq 0x93160
movq %rax, (%rbx)
andq $0x0, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x297168
movq %rax, %r14
movq %rbp, %rdi
movq %r12, %rsi
callq 0x29a010
movq %rbp, %rdi
movl %eax, %ebp
testl %eax, %eax
jne 0xd23ea
shlq $0x3, %r13
movq 0x10(%rsp), %rdx
movq 0x40(%rdx), %rax
movl $0xa0, %ecx
movq %rdx, %rsi
subq $0x1, %rax
jb 0xd21ec
movq 0x18(%rsi), %rdx
andq $0x0, (%rdx,%rcx)
addq $0xc8, %rcx
jmp 0xd21d4
leaq 0x28(%rsp), %rsi
movq %r12, %rdx
callq 0x29a0ba
movl %eax, %ebp
movq $0x0, 0x18(%rsp)
xorl %r15d, %r15d
testl %ebp, %ebp
jle 0xd2375
movq 0x8(%rbx), %rdi
leaq 0x249eae(%rip), %rsi    # 0x31c0c8
movl $0x2d9, %edx            # imm = 0x2D9
callq 0x936f9
movq 0x28(%rsp), %rdi
callq 0x6c2be
movq %rax, 0x8(%rbx)
movb $0x0, 0x38(%rbx)
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xd3e1f
movq 0x28(%rbp), %rdi
testq %rdi, %rdi
je 0xd22ed
movq 0x10(%rbx), %rcx
movq %r15, %rsi
movq 0x18(%rsp), %rdx
movq %r13, %r8
callq 0x114887
movb %al, 0x38(%rbx)
testb %al, %al
je 0xd22ed
movq 0x30(%rbx), %rsi
leaq 0x24a5d0(%rip), %rdi    # 0x31c849
xorl %eax, %eax
callq 0x92a82
movq 0x8(%rbx), %rdi
leaq 0x249e3d(%rip), %rsi    # 0x31c0c8
movl $0x2ee, %edx            # imm = 0x2EE
callq 0x936f9
movq 0x28(%rsp), %rdi
callq 0x6c2be
movq %rax, 0x8(%rbx)
movq (%rbx), %rax
andq $0x0, 0x10(%rax)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xd3e1f
movq %r14, %rdi
callq 0x29733e
movq 0x28(%rbp), %r15
movq %r14, %rdi
callq 0x297395
movq 0x30(%rbx), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x1146f3
movq 0x50(%rbp), %r13
shlq $0x3, %r13
movq $0x0, 0x18(%rsp)
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq %r13, %rcx
subq %rax, %r13
jae 0xd2310
incq %r15
subq %rcx, %rax
movq %rax, 0x10(%rbx)
movq 0x50(%rbp), %rcx
shlq $0x3, %rcx
movq %rcx, %r13
jmp 0xd22f4
incq 0x30(%rbx)
movq (%rbx), %rax
movq (%rax), %rbp
movq 0x10(%rax), %r12
addq $0x8, %rbp
subq $0x1, %r12
jb 0xd233d
movq -0x8(%rbp), %rsi
movl (%rbp), %edx
movq %r14, %rdi
callq 0x2971ea
addq $0x10, %rbp
jmp 0xd2322
cmpq $0x1, %r15
adcq $0x0, %r15
movq (%rbx), %rax
andq $0x0, 0x10(%rax)
incq 0x18(%rsp)
andq $0x0, 0x10(%rbx)
movq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x40(%rsp), %r12
movq %r12, %rdx
callq 0x29a0ba
movl %eax, %ebp
jmp 0xd2207
je 0xd23b9
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
movq 0x20(%rsp), %r15
jne 0xd23ea
movq 0x365bd9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212c7a(%rip), %rsi    # 0x2e5013
leaq 0x2366d5(%rip), %rdx    # 0x308a75
leaq 0x24a4be(%rip), %rcx    # 0x31c865
leaq 0x249d1a(%rip), %r8     # 0x31c0c8
movl $0x310, %r9d            # imm = 0x310
jmp 0xd261e
movq %r14, %rdi
callq 0x2972cc
movq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x17030
movq 0x10(%rsp), %rcx
movq %rax, 0x58(%rcx)
movq 0x28(%rcx), %rdi
xorl %ebp, %ebp
testq %rdi, %rdi
je 0xd23ea
movq %r15, %rsi
callq 0x113f9e
movq %r14, %rdi
callq 0x29739d
movq (%rbx), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0xd241f
leaq 0x249cc4(%rip), %rsi    # 0x31c0c8
movq %rax, %rdi
movl $0x31c, %edx            # imm = 0x31C
callq 0x936f9
movq (%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x249ca2(%rip), %r14    # 0x31c0c8
movq %r14, %rsi
movl $0x31d, %edx            # imm = 0x31D
callq 0x936f9
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x31e, %edx            # imm = 0x31E
callq 0x936f9
movq %rbx, %rdi
movq %r14, %rsi
movl $0x31f, %edx            # imm = 0x31F
callq 0x936f9
testl %ebp, %ebp
jne 0xd1d10
movq 0x58(%rsp), %rbx
movq 0x8(%rbx), %rax
cmpq $0x0, 0x28(%rax)
je 0xd2491
movq %r15, %rdi
movq 0x50(%rsp), %rsi
xorl %edx, %edx
callq 0xb2fec
movq 0x8(%rbx), %rdi
addq $0x58, %rdi
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0xb302c
movq %r15, %rdi
callq 0x8a5e5
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd24b7
movq 0x365a08(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x249dc3(%rip), %rsi    # 0x31c275
callq 0xaf86f
xorl %ebp, %ebp
callq 0x92a76
testb %al, %al
je 0xd1d18
movq 0x70(%rsp), %rdi
callq 0xacbd1
movq %rbx, %r15
movq %rax, %rbx
leaq 0x249d71(%rip), %rsi    # 0x31c24e
movq %rax, %rdi
callq 0xacbfb
leaq 0x249da7(%rip), %rdi    # 0x31c293
xorl %eax, %eax
callq 0x92a82
leaq 0x249db8(%rip), %rdi    # 0x31c2b2
xorl %eax, %eax
callq 0x92a82
movq 0x8(%r15), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0xd2530
callq 0x1146b0
movq %rax, %r14
movq 0x8(%r15), %rax
movq 0x28(%rax), %rdi
callq 0x11466a
testb %al, %al
je 0xd2540
leaq 0x249d88(%rip), %rdi    # 0x31c2b6
jmp 0xd2547
leaq 0x249df2(%rip), %rdi    # 0x31c329
xorl %eax, %eax
callq 0x92a82
jmp 0xd2551
leaq 0x249dac(%rip), %rdi    # 0x31c2f3
movq %r14, %rsi
xorl %eax, %eax
callq 0x92a82
movq 0x58(%rsp), %r14
movq 0x8(%r14), %rax
movq 0x38(%rax), %rsi
leaq 0x249de5(%rip), %rdi    # 0x31c34a
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x92a82
movq 0x8(%r14), %rax
movq 0x30(%rax), %rsi
leaq 0x249df7(%rip), %rdi    # 0x31c374
xorl %eax, %eax
callq 0x92a82
movq %rbx, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x8e013
cvtsi2sd %rax, %xmm0
mulsd 0x249b1f(%rip), %xmm0   # 0x31c0c0
movq 0x8(%r14), %rax
movsd 0x30(%rax), %xmm1
unpcklps 0x21532f(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x215337(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x249dcd(%rip), %rdi    # 0x31c39d
movb $0x1, %al
callq 0x92a82
leaq 0x249ddf(%rip), %rdi    # 0x31c3bd
xorl %eax, %eax
callq 0x92a82
movq %rbx, %rdi
callq 0xae103
jmp 0xd1d18
movq 0x36596f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212a10(%rip), %rsi    # 0x2e5013
leaq 0x249f0b(%rip), %rdx    # 0x31c515
leaq 0x249eee(%rip), %rcx    # 0x31c4ff
leaq 0x249ab0(%rip), %r8     # 0x31c0c8
movl $0x169, %r9d            # imm = 0x169
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x365937(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2129d8(%rip), %rsi    # 0x2e5013
leaq 0x24a025(%rip), %rdx    # 0x31c667
leaq 0x249eb6(%rip), %rcx    # 0x31c4ff
leaq 0x249a78(%rip), %r8     # 0x31c0c8
movl $0x261, %r9d            # imm = 0x261
jmp 0xd261e
movq 0x365909(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2129aa(%rip), %rsi    # 0x2e5013
leaq 0x249f9f(%rip), %rdx    # 0x31c60f
leaq 0x249e88(%rip), %rcx    # 0x31c4ff
leaq 0x249a4a(%rip), %r8     # 0x31c0c8
movl $0x257, %r9d            # imm = 0x257
jmp 0xd261e
movq 0x3658db(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x21297c(%rip), %rsi    # 0x2e5013
leaq 0x249f51(%rip), %rdx    # 0x31c5ef
leaq 0x249e5a(%rip), %rcx    # 0x31c4ff
leaq 0x249a1c(%rip), %r8     # 0x31c0c8
movl $0x256, %r9d            # imm = 0x256
jmp 0xd261e
movq 0x3658aa(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x21294b(%rip), %rsi    # 0x2e5013
leaq 0x249e46(%rip), %rdx    # 0x31c515
leaq 0x249e29(%rip), %rcx    # 0x31c4ff
leaq 0x2499eb(%rip), %r8     # 0x31c0c8
movl $0x1d4, %r9d            # imm = 0x1D4
jmp 0xd261e
movq 0x365879(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x21291a(%rip), %rsi    # 0x2e5013
leaq 0x249ea4(%rip), %rdx    # 0x31c5a4
leaq 0x249df8(%rip), %rcx    # 0x31c4ff
leaq 0x2499ba(%rip), %r8     # 0x31c0c8
movl $0x27e, %r9d            # imm = 0x27E
jmp 0xd261e
movq 0x365848(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2128e9(%rip), %rsi    # 0x2e5013
leaq 0x26a4fd(%rip), %rdx    # 0x33cc2e
leaq 0x249abb(%rip), %rcx    # 0x31c1f3
leaq 0x249989(%rip), %r8     # 0x31c0c8
movl $0x3eb, %r9d            # imm = 0x3EB
jmp 0xd261e
movq 0x365817(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2128b8(%rip), %rsi    # 0x2e5013
leaq 0x249aab(%rip), %rdx    # 0x31c20d
leaq 0x249a8a(%rip), %rcx    # 0x31c1f3
leaq 0x249958(%rip), %r8     # 0x31c0c8
movl $0x3ec, %r9d            # imm = 0x3EC
jmp 0xd261e
movq 0x3657e6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212887(%rip), %rsi    # 0x2e5013
leaq 0x21537d(%rip), %rdx    # 0x2e7b10
leaq 0x249a59(%rip), %rcx    # 0x31c1f3
leaq 0x249927(%rip), %r8     # 0x31c0c8
movl $0x3ed, %r9d            # imm = 0x3ED
jmp 0xd261e
movq 0x3657b5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212856(%rip), %rsi    # 0x2e5013
leaq 0x2129fb(%rip), %rdx    # 0x2e51bf
leaq 0x249a28(%rip), %rcx    # 0x31c1f3
leaq 0x2498f6(%rip), %r8     # 0x31c0c8
movl $0x3ee, %r9d            # imm = 0x3EE
jmp 0xd261e
movq 0x365784(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212825(%rip), %rsi    # 0x2e5013
leaq 0x2129ca(%rip), %rdx    # 0x2e51bf
leaq 0x249d03(%rip), %rcx    # 0x31c4ff
leaq 0x2498c5(%rip), %r8     # 0x31c0c8
movl $0x164, %r9d            # imm = 0x164
jmp 0xd261e
movq 0x365753(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2127f4(%rip), %rsi    # 0x2e5013
leaq 0x249d58(%rip), %rdx    # 0x31c57e
leaq 0x249cd2(%rip), %rcx    # 0x31c4ff
leaq 0x249894(%rip), %r8     # 0x31c0c8
movl $0x188, %r9d            # imm = 0x188
jmp 0xd261e
movq 0x365722(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2127c3(%rip), %rsi    # 0x2e5013
leaq 0x249d67(%rip), %rdx    # 0x31c5be
leaq 0x249ca1(%rip), %rcx    # 0x31c4ff
leaq 0x249863(%rip), %r8     # 0x31c0c8
movl $0x1c2, %r9d            # imm = 0x1C2
jmp 0xd261e
movq 0x3656f1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212792(%rip), %rsi    # 0x2e5013
leaq 0x249d1c(%rip), %rdx    # 0x31c5a4
leaq 0x249c70(%rip), %rcx    # 0x31c4ff
leaq 0x249832(%rip), %r8     # 0x31c0c8
movl $0x1b8, %r9d            # imm = 0x1B8
jmp 0xd261e
movq 0x3656c0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x212761(%rip), %rsi    # 0x2e5013
leaq 0x212906(%rip), %rdx    # 0x2e51bf
leaq 0x249933(%rip), %rcx    # 0x31c1f3
leaq 0x249801(%rip), %r8     # 0x31c0c8
movl $0x409, %r9d            # imm = 0x409
jmp 0xd261e