// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/kmer_database.c
// Function: gt_kmer_database_unit_test
int gt_kmer_database_unit_test(GtError *err)
{
  int            had_err = 0;
  GtUword        i,
                 j,
                 k = (GtUword) 0,
                 kmercode,
                 startpos,
                 seq_length = (GtUword) 10,
                 nu_kmer_codes = (GtUword) 4,
                 max_nu_kmers = (GtUword) 6,
                 nu_kmers_sort_test = (GtUword) 8,
                 /*Seq: A C C T A G G T C T = 0 1 1 3 0 2 2 3 1 3
                   SB-Seq: T C G G A A = 3 1 2 2 0 0*/
                 offset[] = {(GtUword) 0,(GtUword) 2,(GtUword) 5,(GtUword) 7,
                             (GtUword) 10},
                 positions[] = {(GtUword) 0,(GtUword) 4,(GtUword) 1,(GtUword) 2,
                                (GtUword) 8,(GtUword) 5,(GtUword) 6,(GtUword) 3,
                                (GtUword) 7,(GtUword) 9},
                 seq[] = {(GtUword) 0,(GtUword) 1,(GtUword) 1,(GtUword) 3,
                          (GtUword) 0,(GtUword) 2,(GtUword) 2,(GtUword) 3,
                          (GtUword) 1,(GtUword) 3},
                 sb_codes[] = {(GtUword) 0,(GtUword) 0,(GtUword) 1,(GtUword) 2,
                               (GtUword) 2,(GtUword) 3},
                 sb_starts[] = {(GtUword) 14,(GtUword) 15,(GtUword) 11,
                                (GtUword) 12,(GtUword) 13,(GtUword) 10},
                 offset_empty[] = {(GtUword) 0,(GtUword) 2,(GtUword) 3,
                                   (GtUword) 5,(GtUword) 6},
                 starts[] = {(GtUword) 5,(GtUword) 7,(GtUword) 0,(GtUword) 2,
                             (GtUword) 3,(GtUword) 6,(GtUword) 9,(GtUword) 15},
                 unsorted_starts[] = {(GtUword) 2,(GtUword) 5,(GtUword) 9,
                                      (GtUword) 0,(GtUword) 3,(GtUword) 6,
                                      (GtUword) 15,(GtUword) 7};
  GtCodetype     codes[] = {(GtUword) 0,(GtUword) 0,(GtUword) 1,(GtUword) 2,
                            (GtUword) 2,(GtUword) 2,(GtUword) 3,(GtUword) 3},
                 unsorted_codes[] = {(GtUword) 2,(GtUword) 0,(GtUword) 3,
                                     (GtUword) 1,(GtUword) 2,(GtUword) 2,
                                     (GtUword) 3,(GtUword) 0};
  GtAlphabet *al = gt_alphabet_new_dna();
  GtEncseqBuilder *eb = gt_encseq_builder_new(al);
  GtEncseq *es;
  GtKmerDatabase *sb_test,
                 *kdb,
                 *compare_kdb,
                 *empty_kdb,
                 *intervals_too_big;
  GtKmerStartpos kmer_interval;
  gt_alphabet_delete(al);

  gt_encseq_builder_add_cstr(eb, "ACCTAGGTCT", (GtUword) 10, NULL);
  es = gt_encseq_builder_build(eb, err);
  gt_encseq_builder_delete(eb);

  sb_test = gt_kmer_database_new(GT_KMERDB_AS, GT_KMERDB_K,
                                 nu_kmers_sort_test, es),
  kdb = gt_kmer_database_new(GT_KMERDB_AS, GT_KMERDB_K,
                             max_nu_kmers, es),
  compare_kdb = gt_kmer_database_new(GT_KMERDB_AS,
                                     GT_KMERDB_K,
                                     max_nu_kmers, es),
  empty_kdb = gt_kmer_database_new(GT_KMERDB_AS, GT_KMERDB_K,
                                   max_nu_kmers, es);
  intervals_too_big = gt_kmer_database_new(GT_KMERDB_AS, GT_KMERDB_K,
                                           max_nu_kmers, es);
  gt_encseq_delete(es);

  gt_error_check(err);

  /*test if sorting in sb works*/
  for (i = 0; i < nu_kmers_sort_test; i++) {
    gt_kmer_database_add_kmer_to_sb(sb_test, unsorted_codes[i],
                                    unsorted_starts[i], 0);
  }

  gt_kmer_database_sort_sb(sb_test);

  for (i = 0; !had_err && i < nu_kmers_sort_test; i++) {
    gt_kmer_database_decode_kmer(sb_test->sb.kmers[i].a, kmercode, startpos);
    gt_ensure(kmercode == codes[i]);
    gt_ensure(startpos == starts[i]);
  }

  /*test if add_kmer works*/
  for (i = 0; i < seq_length; i++) {
    gt_kmer_database_add_kmer(kdb, seq[i], i, 0);
    gt_kmer_database_add_kmer(compare_kdb, seq[i], i, 0);
  }

  had_err = gt_kmer_database_check_consistency(kdb, err);
  if (!had_err)
    had_err = gt_kmer_database_check_consistency(compare_kdb, err);

  for (i = 0; !had_err && i <= nu_kmer_codes; i++) {
    gt_ensure(kdb->offset[i] == offset[i]);
  }
  for (i = 0; !had_err && i < seq_length; i++) {
    gt_ensure(kdb->positions[i] == positions[i]);
  }

  /*test if intervals bigger than the buffer size are handled correctly*/
  if (!had_err) {
    gt_kmer_database_add_interval(intervals_too_big, 0, max_nu_kmers + 1, 0);
    gt_kmer_database_add_interval(intervals_too_big, max_nu_kmers + 2,
                                  seq_length, 0);
    gt_kmer_database_flush(intervals_too_big);
    had_err = gt_kmer_database_check_consistency(intervals_too_big, err);
  }
  if (!had_err)
    had_err = gt_kmer_database_compare(intervals_too_big, compare_kdb, err);

  /*test if merge works with empty kmer_database*/
  for (i = 0; i < max_nu_kmers; i++) {
    gt_kmer_database_add_kmer_to_sb(empty_kdb, sb_codes[i], sb_starts[i], 0);
  }

  gt_kmer_database_merge(empty_kdb);

  if (!had_err)
    had_err = gt_kmer_database_check_consistency(empty_kdb, err);

  for (i = 0; !had_err && i <= nu_kmer_codes; i++) {
    gt_ensure(empty_kdb->offset[i] == offset_empty[i]);
  }
  for (i = 0; !had_err && i < max_nu_kmers; i++) {
    gt_ensure(empty_kdb->positions[i] == sb_starts[i]);
  }

  /*test if merge works with filled kmer_database*/
  for (i = 0; i < max_nu_kmers; i++) {
    gt_kmer_database_add_kmer(compare_kdb, sb_codes[i], sb_starts[i], 0);
    gt_kmer_database_add_kmer_to_sb(kdb, sb_codes[i], sb_starts[i], 0);
  }

  gt_kmer_database_merge(kdb);

  if (!had_err)
    had_err = gt_kmer_database_check_consistency(kdb, err);
  if (!had_err)
    had_err = gt_kmer_database_check_consistency(compare_kdb, err);
  if (!had_err)
    had_err = gt_kmer_database_compare(kdb, compare_kdb, err);

  for (i = 0; !had_err && i <= nu_kmer_codes; i++) {
    gt_ensure(kdb->offset[i] == compare_kdb->offset[i]);
  }
  for (i = 0; !had_err && i < seq_length + max_nu_kmers; i++) {
    gt_ensure(kdb->positions[i] == compare_kdb->positions[i]);
  }

  /*test if min_no_occ works*/
  if (!had_err) {
    if (gt_kmer_database_get_min_nu_of_occ(kdb) != (GtUword) 4) {
      had_err = -1;
    }
  }

  /*test if this returns the right positions*/
  for (i = 0; !had_err && i < nu_kmer_codes; i++) {
    kmer_interval = gt_kmer_database_get_startpos(kdb, i);
    for (j = 0; !had_err && j < kmer_interval.no_positions; j++) {
      gt_ensure(kmer_interval.startpos[j] == kdb->positions[k + j]);
    }
    k += j;
  }

  gt_kmer_database_delete(sb_test);
  gt_kmer_database_delete(kdb);
  gt_kmer_database_delete(compare_kdb);
  gt_kmer_database_delete(empty_kdb);
  gt_kmer_database_delete(intervals_too_big);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movl $0x2, %eax
movq %rax, 0xd8(%rsp)
movl $0x5, %esi
movq %rsi, 0xe0(%rsp)
movq $0x7, 0xe8(%rsp)
movl $0xa, %edi
movq %rdi, 0xf0(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x70(%rsp)
movl $0x1, %ecx
movq %rcx, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movq %rax, 0x90(%rsp)
movl $0x3, %edx
movq %rdx, 0x98(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq $0xe, 0x30(%rsp)
movq $0xf, 0x38(%rsp)
movq $0xb, 0x40(%rsp)
movq $0xc, 0x48(%rsp)
movq $0xd, 0x50(%rsp)
movq %rdi, 0x58(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movq %rax, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rsi, 0xb8(%rsp)
movq $0x6, 0xc0(%rsp)
movaps %xmm0, 0x150(%rsp)
movaps %xmm0, 0x160(%rsp)
movaps %xmm0, 0x170(%rsp)
movaps %xmm0, 0x140(%rsp)
movq %rcx, 0x150(%rsp)
movq %rax, 0x158(%rsp)
movq %rax, 0x160(%rsp)
movq %rax, 0x168(%rsp)
movq %rdx, 0x170(%rsp)
movq %rdx, 0x178(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x130(%rsp)
movq %rax, 0x100(%rsp)
movq %rdx, 0x110(%rsp)
movq %rcx, 0x118(%rsp)
movq %rax, 0x120(%rsp)
movq %rax, 0x128(%rsp)
movq %rdx, 0x130(%rsp)
callq 0xd340f
movq %rax, %rbx
movq %rax, %rdi
callq 0xf6be5
movq %rax, %r14
movq %rbx, %rdi
callq 0xd335d
leaq 0x22ec11(%rip), %rsi    # 0x38ebe7
movl $0xa, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0xf6d07
movq %r14, %rdi
movq %r15, %rsi
callq 0xf748b
movq %rax, %rbx
movq %r14, %rdi
callq 0xfaad7
movl $0x8, %edx
movl $0x4, %edi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x15e918
movq %rax, %r12
movl $0x6, %edx
movl $0x4, %edi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x15e918
movq %rax, (%rsp)
movl $0x6, %edx
movl $0x4, %edi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x15e918
movq %rax, %r13
movl $0x6, %edx
movl $0x4, %edi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x15e918
movq %rax, 0x18(%rsp)
movl $0x6, %edx
movl $0x4, %edi
movl $0x1, %esi
movq %rbx, %rcx
callq 0x15e918
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0xee90c
testq %r15, %r15
je 0x16009f
movq %r15, %rdi
callq 0x101a9a
testb %al, %al
jne 0x160740
xorl %ebx, %ebx
leaq 0x22ee28(%rip), %r14    # 0x38eed0
movq 0x100(%rsp,%rbx), %rsi
movq (%rbx,%r14), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x15ed75
addq $0x8, %rbx
cmpq $0x40, %rbx
jne 0x1600a8
movq %r13, 0x10(%rsp)
movq %r15, 0x8(%rsp)
testq %r12, %r12
je 0x16073b
movq 0xa0(%r12), %rdi
movq %r12, 0x28(%rsp)
movq 0xb0(%r12), %rsi
callq 0x11534f
leaq 0x22ed94(%rip), %rbp    # 0x38ee90
xorl %r14d, %r14d
leaq 0x22eaec(%rip), %r15    # 0x38ebf2
leaq 0x22e2ab(%rip), %r12    # 0x38e3b8
xorl %r13d, %r13d
movq 0x28(%rsp), %rax
movq 0xa0(%rax), %rax
movq (%rax,%r14), %rax
movq %rax, %rcx
shrq $0x20, %rcx
cmpq 0x140(%rsp,%r13,8), %rcx
jne 0x16015e
movl %eax, %eax
movb $0x1, %bl
cmpq (%rbp), %rax
je 0x160186
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
leaq 0x2073f1(%rip), %rsi    # 0x36753a
leaq 0x22ead2(%rip), %rdx    # 0x38ec22
movq %r15, %rcx
movq %r12, %r8
movl $0x35b, %r9d            # imm = 0x35B
jmp 0x16017f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
leaq 0x2073ce(%rip), %rsi    # 0x36753a
leaq 0x22ea9a(%rip), %rdx    # 0x38ec0d
movq %r15, %rcx
movq %r12, %r8
movl $0x35a, %r9d            # imm = 0x35A
xorl %eax, %eax
callq 0x1019cf
testb %bl, %bl
je 0x1601a3
leaq 0x1(%r13), %rax
addq $0x10, %r14
addq $0x8, %rbp
cmpq $0x7, %r13
movq %rax, %r13
jb 0x160110
leaq 0x22ec96(%rip), %r15    # 0x38ee40
xorl %ebx, %ebx
movq (%rsp), %rdi
movq 0x10(%rsp), %r12
movq (%r15), %r14
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x15f608
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x15f608
movq (%rsp), %rdi
incq %rbx
addq $0x8, %r15
cmpq $0xa, %rbx
jne 0x1601b5
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x15fa59
testl %eax, %eax
jne 0x16020a
movq %r12, %rdi
movq %rbx, %rsi
callq 0x15fa59
testl %eax, %eax
je 0x160654
xorl %ebp, %ebp
movq (%rsp), %rcx
testb %bpl, %bpl
je 0x16027e
leaq 0x22ebd4(%rip), %r13    # 0x38edf0
leaq 0x22e195(%rip), %r12    # 0x38e3b8
xorl %ebx, %ebx
movq 0x10(%rcx), %rax
movq (%rax,%rbx,8), %r14
movq (%r13), %r15
cmpq %r15, %r14
sete %bpl
je 0x160268
movq 0x8(%rsp), %rdi
leaq 0x2072f4(%rip), %rsi    # 0x36753a
leaq 0x22ea07(%rip), %rdx    # 0x38ec54
leaq 0x22e99e(%rip), %rcx    # 0x38ebf2
movq %r12, %r8
movl $0x36c, %r9d            # imm = 0x36C
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %rcx
cmpq %r15, %r14
jne 0x16027e
leaq 0x1(%rbx), %rax
addq $0x8, %r13
cmpq $0x9, %rbx
movq %rax, %rbx
jb 0x160225
xorl %ebx, %ebx
testb %bpl, %bpl
je 0x1602e9
movl $0x7, %edx
movq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x15f35d
movl $0x8, %esi
movl $0xa, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x15f35d
movq %r14, %rdi
callq 0x15ec22
movq %r14, %rdi
movq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x15fa59
testl %eax, %eax
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r12
jne 0x1602f3
movq 0x20(%rsp), %rdi
movq %r15, %rdx
callq 0x15f8f5
testl %eax, %eax
sete %bl
jmp 0x1602f3
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r12
xorl %r14d, %r14d
movq 0x70(%rsp,%r14,8), %rsi
movq 0x30(%rsp,%r14,8), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x15ed75
incq %r14
cmpq $0x6, %r14
jne 0x1602f6
movq %r12, %rdi
callq 0x15edc6
testb %bl, %bl
je 0x160332
movq %r12, %rdi
movq %r15, %rsi
callq 0x15fa59
testl %eax, %eax
je 0x1605e5
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x16039d
leaq 0x22e8b2(%rip), %r15    # 0x38ebf2
leaq 0x22e071(%rip), %r12    # 0x38e3b8
xorl %r13d, %r13d
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax,%r13,8), %rbx
movq 0x30(%rsp,%r13,8), %r14
cmpq %r14, %rbx
sete %bpl
je 0x16038b
movq 0x8(%rsp), %rdi
leaq 0x2071c9(%rip), %rsi    # 0x36753a
leaq 0x22e926(%rip), %rdx    # 0x38ec9e
movq %r15, %rcx
movq %r12, %r8
movl $0x388, %r9d            # imm = 0x388
xorl %eax, %eax
callq 0x1019cf
cmpq %r14, %rbx
jne 0x16039d
leaq 0x1(%r13), %rax
cmpq $0x5, %r13
movq %rax, %r13
jb 0x16034a
xorl %r15d, %r15d
movq (%rsp), %r12
movq 0x10(%rsp), %r13
movq 0x70(%rsp,%r15,8), %rbx
movq 0x30(%rsp,%r15,8), %r14
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x15f608
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x15ed75
incq %r15
cmpq $0x6, %r15
jne 0x1603a9
movq %r12, %rdi
callq 0x15edc6
testb %bpl, %bpl
je 0x16042c
movq %r12, %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x15fa59
testl %eax, %eax
jne 0x160423
movq %r13, %rdi
movq %rbx, %rsi
callq 0x15fa59
testl %eax, %eax
jne 0x160423
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x15f8f5
testl %eax, %eax
je 0x1606c6
xorl %r13d, %r13d
movq (%rsp), %rsi
jmp 0x160432
xorl %r13d, %r13d
movq %r12, %rsi
testb %r13b, %r13b
je 0x1604a1
leaq 0x22e7b4(%rip), %r15    # 0x38ebf2
leaq 0x22df73(%rip), %r12    # 0x38e3b8
xorl %ebp, %ebp
movq 0x10(%rsi), %rax
movq (%rax,%rbp,8), %rbx
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax,%rbp,8), %r14
cmpq %r14, %rbx
sete %r13b
je 0x16048f
movq 0x8(%rsp), %rdi
leaq 0x2070c9(%rip), %rsi    # 0x36753a
leaq 0x22e877(%rip), %rdx    # 0x38ecef
movq %r15, %rcx
movq %r12, %r8
movl $0x39e, %r9d            # imm = 0x39E
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %rsi
cmpq %r14, %rbx
jne 0x1604a1
leaq 0x1(%rbp), %rax
cmpq $0xf, %rbp
movq %rax, %rbp
jb 0x160447
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %r13b, %r13b
je 0x1604c3
movq %rsi, %rdi
callq 0x15f8c3
movq (%rsp), %rsi
xorl %ebp, %ebp
cmpq $0x4, %rax
setne %bpl
negl %ebp
testl %ebp, %ebp
je 0x160511
movq 0x10(%rsp), %r14
movq 0x28(%rsp), %rdi
movq %rsi, %rbx
callq 0x15eade
movq %rbx, %rdi
callq 0x15eade
movq %r14, %rdi
callq 0x15eade
movq 0x18(%rsp), %rdi
callq 0x15eade
movq 0x20(%rsp), %rdi
callq 0x15eade
movl %ebp, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edx, %edx
xorl %r15d, %r15d
leaq 0x180(%rsp), %rdi
movq %rdx, 0x60(%rsp)
callq 0x15f76e
movq 0x190(%rsp), %r12
testq %r12, %r12
movq %r15, 0x68(%rsp)
je 0x1605ad
movq 0x180(%rsp), %rbx
leaq (,%r15,8), %r15
xorl %r14d, %r14d
movq (%rsp), %rsi
movq (%rbx,%r14,8), %r13
movq 0x10(%rsi), %rax
addq %r15, %rax
movq (%rax,%r14,8), %rbp
xorl %eax, %eax
cmpq %rbp, %r13
je 0x16059e
movq 0x8(%rsp), %rdi
leaq 0x206fc7(%rip), %rsi    # 0x36753a
leaq 0x22e7a4(%rip), %rdx    # 0x38ed1e
leaq 0x22e671(%rip), %rcx    # 0x38ebf2
leaq 0x22de30(%rip), %r8     # 0x38e3b8
movl $0x3ac, %r9d            # imm = 0x3AC
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incq %r14
cmpq %rbp, %r13
jne 0x1605b6
cmpq %r12, %r14
jb 0x160551
jmp 0x1605b6
xorl %r14d, %r14d
movq (%rsp), %rsi
movl %ebp, %eax
movl %eax, %ebp
testl %eax, %eax
jne 0x1604c7
movq 0x68(%rsp), %r15
addq %r14, %r15
movq 0x60(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq $0x3, %rcx
movq 0x10(%rsp), %r14
jb 0x160516
jmp 0x1604cc
leaq 0x22e606(%rip), %r15    # 0x38ebf2
leaq 0x22ddc5(%rip), %r12    # 0x38e3b8
xorl %r13d, %r13d
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rbx
movq 0xa0(%rsp,%r13,8), %r14
cmpq %r14, %rbx
sete %bpl
je 0x160639
movq 0x8(%rsp), %rdi
leaq 0x206f1b(%rip), %rsi    # 0x36753a
leaq 0x22e650(%rip), %rdx    # 0x38ec76
movq %r15, %rcx
movq %r12, %r8
movl $0x385, %r9d            # imm = 0x385
xorl %eax, %eax
callq 0x1019cf
cmpq %r14, %rbx
jne 0x160334
leaq 0x1(%r13), %rax
cmpq $0x4, %r13
movq %rax, %r13
jb 0x1605f6
jmp 0x160334
leaq 0x22e597(%rip), %r15    # 0x38ebf2
leaq 0x22dd56(%rip), %r12    # 0x38e3b8
xorl %r13d, %r13d
movq (%rsp), %rcx
movq (%rcx), %rax
movq (%rax,%r13,8), %rbx
movq 0xd0(%rsp,%r13,8), %r14
cmpq %r14, %rbx
sete %bpl
je 0x1606ab
movq 0x8(%rsp), %rdi
leaq 0x206ead(%rip), %rsi    # 0x36753a
leaq 0x22e5a4(%rip), %rdx    # 0x38ec38
movq %r15, %rcx
movq %r12, %r8
movl $0x369, %r9d            # imm = 0x369
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %rcx
cmpq %r14, %rbx
jne 0x160210
leaq 0x1(%r13), %rax
cmpq $0x4, %r13
movq %rax, %r13
jb 0x160669
jmp 0x160210
leaq 0x22e525(%rip), %r15    # 0x38ebf2
leaq 0x22dce4(%rip), %r12    # 0x38e3b8
xorl %ebp, %ebp
movq (%rsp), %rsi
movq (%rsi), %rax
movq (%rax,%rbp,8), %rbx
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r14
cmpq %r14, %rbx
sete %r13b
je 0x160720
movq 0x8(%rsp), %rdi
leaq 0x206e38(%rip), %rsi    # 0x36753a
leaq 0x22e5bd(%rip), %rdx    # 0x38ecc6
movq %r15, %rcx
movq %r12, %r8
movl $0x39b, %r9d            # imm = 0x39B
xorl %eax, %eax
callq 0x1019cf
movq (%rsp), %rsi
cmpq %r14, %rbx
jne 0x160432
leaq 0x1(%rbp), %rax
cmpq $0x4, %rbp
movq %rax, %rbp
jb 0x1606da
jmp 0x160432
callq 0x4b581
callq 0x4b548
nopl (%rax)