// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/translator.c
// Function: gt_translator_unit_test
int gt_translator_unit_test(GtError *err)
{
  int had_err = 0;
  GtTranslatorStatus test_errnum;
  GtTranslator *tr;
  GtCodonIterator *ci;
  GtError *test_err;
  GtStrArray *codons, *invalidcodons;
  const char *seq = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGT"
                    "GGATTAAAAAAAGAGTGTCTGATAGCAGCTTCTGAACTGGT"
                    "TACCTGCCGTGAGTAAATTAAAATTTTATTGACTTAGG";
  const char *no_startcodon = "AAAAAAAAAATCATCTCCCCATTTTTTT";
  const char *invalidseq  = "ZAGCTTTTCATTCTGACTGCAAATATGTCTCTGTGT";
  const char *invalidseq2 = "AGCTTTTCATTCTGACZTGCAAATATGTCTCTGTGT";

  char translated;
  unsigned int frame;
  GtUword pos = 0;
  GtStr *protein[3];
  gt_error_check(err);

  test_err = gt_error_new();
  ci = gt_codon_iterator_simple_new(seq, (GtUword) strlen(seq), test_err);
  tr = gt_translator_new(ci);
  protein[0] = gt_str_new();
  protein[1] = gt_str_new();
  protein[2] = gt_str_new();
  codons = gt_str_array_new();
  gt_str_array_add_cstr(codons, "ACG");
  gt_str_array_add_cstr(codons, "ACT");
  invalidcodons = gt_str_array_new();
  gt_str_array_add_cstr(invalidcodons, "ACG");
  gt_str_array_add_cstr(invalidcodons, "AC");

  /* do 3-frame translation */
  gt_error_unset(test_err);
  test_errnum = gt_translator_next(tr, &translated, &frame, test_err);
  while (!test_errnum && translated) {
    gt_str_append_char(protein[frame], translated);
    test_errnum = gt_translator_next(tr, &translated, &frame, test_err);
    gt_ensure(
           test_errnum != GT_TRANSLATOR_ERROR && !gt_error_is_set(test_err));
  }
  gt_ensure(
         test_errnum == GT_TRANSLATOR_END && !gt_error_is_set(test_err));

  /* check 3-frame translation */
  gt_ensure(strcmp(gt_str_get(protein[0]),
                         "SFSF*LQRAICLCVD*KKSV**QLLNWLPAVSKLKFY*LR") == 0);
  gt_ensure(strcmp(gt_str_get(protein[1]),
                         "AFHSDCNGQYVSVWIKKRVSDSSF*TGYLP*VN*NFIDL") == 0);
  gt_ensure(strcmp(gt_str_get(protein[2]),
                         "LFILTATGNMSLCGLKKECLIAASELVTCRE*IKILLT*") == 0);

  /* find start codon -- positive */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_startcodon(tr, &pos, test_err);
  gt_ensure(!test_errnum && !gt_error_is_set(test_err));
  gt_ensure(pos == 11UL);

  /* find stop codon -- positive */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_stopcodon(tr, &pos, test_err);
  gt_ensure(!test_errnum && !gt_error_is_set(test_err));
  gt_ensure(pos == 12UL);

  /* find arbitrary codons -- positive */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_codon(tr, codons, &pos, test_err);
  gt_ensure(!test_errnum && !gt_error_is_set(test_err));
  gt_ensure(pos == 14UL);

  /* find arbitrary codons -- negative (invalid codons) */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_codon(tr, invalidcodons, &pos, test_err);
  gt_ensure(
         test_errnum == GT_TRANSLATOR_ERROR && gt_error_is_set(test_err));

  gt_error_unset(test_err);
  gt_codon_iterator_delete(ci);
  ci = gt_codon_iterator_simple_new(invalidseq,
                                    (GtUword) strlen(invalidseq),
                                    test_err);
  gt_ensure(ci && !gt_error_is_set(test_err));
  gt_translator_reset(tr, ci);
  /* check translation of sequence with invalid beginning */
  test_errnum = gt_translator_next(tr, &translated, &frame, test_err);
  gt_ensure(test_errnum && gt_error_is_set(test_err));

  /* check translation of sequence with invalid character within */
  gt_error_unset(test_err);
  gt_codon_iterator_delete(ci);
  ci = gt_codon_iterator_simple_new(invalidseq2,
                                    (GtUword) strlen(invalidseq2),
                                    test_err);
  gt_ensure(ci && !gt_error_is_set(test_err));
  gt_translator_reset(tr, ci);
  test_errnum = gt_translator_next(tr, &translated, &frame, test_err);
  while (!test_errnum && translated) {
    gt_str_append_char(protein[frame], translated);
    test_errnum = gt_translator_next(tr, &translated, &frame, test_err);
  }
  gt_ensure(
         test_errnum == GT_TRANSLATOR_ERROR && gt_error_is_set(test_err));

  /* find start codon -- fail */
  gt_error_unset(test_err);
  gt_codon_iterator_delete(ci);
  ci = gt_codon_iterator_simple_new(no_startcodon,
                                    (GtUword) strlen(no_startcodon),
                                    test_err);
  gt_ensure(ci && !gt_error_is_set(test_err));
  gt_translator_reset(tr, ci);
  test_errnum = gt_translator_find_startcodon(tr, &pos, test_err);
  gt_ensure(
         test_errnum == GT_TRANSLATOR_END && !gt_error_is_set(test_err));

  /* find stop codon -- fail */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_stopcodon(tr, &pos, test_err);
  gt_ensure(
         test_errnum == GT_TRANSLATOR_END && !gt_error_is_set(test_err));

  /* find arbitrary codons -- negative (none there) */
  gt_error_unset(test_err);
  gt_codon_iterator_rewind(ci);
  test_errnum = gt_translator_find_codon(tr, codons, &pos, test_err);
  gt_ensure(
         test_errnum == GT_TRANSLATOR_END && !gt_error_is_set(test_err));

  gt_codon_iterator_delete(ci);
  gt_translator_delete(tr);
  gt_str_delete(protein[0]);
  gt_str_delete(protein[1]);
  gt_str_delete(protein[2]);
  gt_str_array_delete(codons);
  gt_str_array_delete(invalidcodons);
  gt_error_delete(test_err);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0xa7241
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
jne 0xa7c2b
movq %rbx, 0x20(%rsp)
callq 0x35584
movq %rax, %rbx
leaq 0x540d5(%rip), %rdi     # 0xfb32a
movl $0x78, %esi
movq %rax, %rdx
callq 0xa4151
movq %rax, 0x30(%rsp)
movq %rax, %rdi
callq 0xa6d7b
movq %rax, %r15
callq 0x3bfe0
movq %rax, 0x70(%rsp)
movq %rax, 0x40(%rsp)
callq 0x3bfe0
movq %rax, 0x68(%rsp)
movq %rax, 0x48(%rsp)
callq 0x3bfe0
movq %rax, 0x60(%rsp)
movq %rax, 0x50(%rsp)
callq 0x3d23c
movq %rax, %r12
leaq 0x54174(%rip), %r14     # 0xfb422
movq %rax, %rdi
movq %r14, %rsi
callq 0x3d318
leaq 0x54166(%rip), %rsi     # 0xfb426
movq %r12, 0x28(%rsp)
movq %r12, %rdi
callq 0x3d318
callq 0x3d23c
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x3d318
leaq 0x54143(%rip), %rsi     # 0xfb42a
movq %r12, 0x38(%rsp)
movq %r12, %rdi
callq 0x3d318
movq %rbx, %rdi
callq 0x3567c
xorl %ebp, %ebp
leaq 0x3(%rsp), %r12
leaq 0x4(%rsp), %rdx
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movq %rbx, 0x18(%rsp)
movq %rbx, %r8
callq 0xa710b
movl %eax, %r14d
testl %eax, %eax
sete %cl
movb (%r12), %al
testb %al, %al
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xa73e0
leaq 0x3(%rsp), %r12
leaq 0x4(%rsp), %r13
movl %ebp, %ebx
movl 0x4(%rsp), %ecx
movq 0x40(%rsp,%rcx,8), %rdi
movsbl %al, %esi
callq 0x3c28d
xorl %r15d, %r15d
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movq 0x18(%rsp), %r8
callq 0xa710b
movl %eax, %r14d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %ebx, %ebx
jne 0xa73cd
cmpl $-0x2, %r14d
je 0xa7395
movq 0x18(%rsp), %rdi
callq 0x3566a
testb %al, %al
je 0xa73c8
xorl %r15d, %r15d
movq 0x20(%rsp), %rdi
leaq 0x3bdd5(%rip), %rsi     # 0xe3179
leaq 0x54082(%rip), %rdx     # 0xfb42d
leaq 0x54058(%rip), %rcx     # 0xfb40a
leaq 0x53dbe(%rip), %r8      # 0xfb177
movl $0xfa, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0xa73cd
xorl %ebp, %ebp
movb $0x1, %r15b
testl %r14d, %r14d
jne 0xa73e3
movb 0x3(%rsp), %al
testb %al, %al
jne 0xa7348
jmp 0xa73e3
movb $0x1, %r15b
testb %r15b, %r15b
movq 0x20(%rsp), %r15
je 0xa743d
cmpl $-0x1, %r14d
movq 0x18(%rsp), %rbx
movq 0x30(%rsp), %r12
jne 0xa740d
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
je 0xa7b48
leaq 0x3bd65(%rip), %rsi     # 0xe3179
leaq 0x54053(%rip), %rdx     # 0xfb46e
leaq 0x53fe8(%rip), %rcx     # 0xfb40a
leaq 0x53d4e(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0xfd, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0xa7449
xorl %ebp, %ebp
movq 0x18(%rsp), %rbx
movq 0x30(%rsp), %r12
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0xa6e02
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %bpl, %bpl
je 0xa74c4
testl %eax, %eax
jne 0xa7490
movq %rbx, %rdi
callq 0x3566a
xorl %ecx, %ecx
movl $0x0, %r14d
testb %al, %al
je 0xa74c4
leaq 0x3bce2(%rip), %rsi     # 0xe3179
leaq 0x54176(%rip), %rdx     # 0xfb614
leaq 0x53f65(%rip), %rcx     # 0xfb40a
leaq 0x53ccb(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x10b, %r9d            # imm = 0x10B
xorl %eax, %eax
callq 0x3559f
movb $0x1, %cl
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testb %cl, %cl
jne 0xa7502
cmpq $0xb, 0x10(%rsp)
je 0xa7502
leaq 0x3bca2(%rip), %rsi     # 0xe3179
leaq 0x54161(%rip), %rdx     # 0xfb63f
leaq 0x53f25(%rip), %rcx     # 0xfb40a
leaq 0x53c8b(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x10c, %r9d            # imm = 0x10C
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0xa6ecf
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movb $0x1, %cl
testl %r14d, %r14d
jne 0xa757a
testl %eax, %eax
jne 0xa7547
movq %rbx, %rdi
callq 0x3566a
xorl %ecx, %ecx
movl $0x0, %ebp
testb %al, %al
je 0xa757a
leaq 0x3bc2b(%rip), %rsi     # 0xe3179
leaq 0x540bf(%rip), %rdx     # 0xfb614
leaq 0x53eae(%rip), %rcx     # 0xfb40a
leaq 0x53c14(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x112, %r9d            # imm = 0x112
xorl %eax, %eax
callq 0x3559f
movb $0x1, %cl
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %cl, %cl
jne 0xa75b7
cmpq $0xc, 0x10(%rsp)
je 0xa75b7
leaq 0x3bbec(%rip), %rsi     # 0xe3179
leaq 0x540b7(%rip), %rdx     # 0xfb64b
leaq 0x53e6f(%rip), %rcx     # 0xfb40a
leaq 0x53bd5(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x113, %r9d            # imm = 0x113
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rcx
callq 0xa6f9c
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movb $0x1, %cl
testl %ebp, %ebp
jne 0xa7636
testl %eax, %eax
jne 0xa7602
movq %rbx, %rdi
callq 0x3566a
xorl %ecx, %ecx
movl $0x0, %r14d
testb %al, %al
je 0xa7636
leaq 0x3bb70(%rip), %rsi     # 0xe3179
leaq 0x54004(%rip), %rdx     # 0xfb614
leaq 0x53df3(%rip), %rcx     # 0xfb40a
leaq 0x53b59(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x119, %r9d            # imm = 0x119
xorl %eax, %eax
callq 0x3559f
movb $0x1, %cl
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testb %cl, %cl
jne 0xa7674
cmpq $0xe, 0x10(%rsp)
je 0xa7674
leaq 0x3bb30(%rip), %rsi     # 0xe3179
leaq 0x54007(%rip), %rdx     # 0xfb657
leaq 0x53db3(%rip), %rcx     # 0xfb40a
leaq 0x53b19(%rip), %r8      # 0xfb177
movq %r15, %rdi
movl $0x11a, %r9d            # imm = 0x11A
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rbx, %rcx
callq 0xa6f9c
testl %r14d, %r14d
je 0xa76a4
xorl %ebp, %ebp
jmp 0xa76e6
cmpl $-0x2, %eax
jne 0xa76b8
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %bpl
testb %al, %al
jne 0xa76e6
leaq 0x3baba(%rip), %rsi     # 0xe3179
leaq 0x53f9d(%rip), %rdx     # 0xfb663
leaq 0x53d3d(%rip), %rcx     # 0xfb40a
leaq 0x53aa3(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x121, %r9d            # imm = 0x121
xorl %eax, %eax
callq 0x3559f
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f62
leaq 0x53cc3(%rip), %rdi     # 0xfb3c0
movl $0x24, %esi
movq %rbx, %rdx
callq 0xa4151
movq %rax, %r12
testb %bpl, %bpl
je 0xa7756
testq %r12, %r12
je 0xa7726
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %bpl
testb %al, %al
je 0xa7758
leaq 0x3ba4c(%rip), %rsi     # 0xe3179
leaq 0x53f6f(%rip), %rdx     # 0xfb6a3
leaq 0x53ccf(%rip), %rcx     # 0xfb40a
leaq 0x53a35(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x128, %r9d            # imm = 0x128
xorl %eax, %eax
callq 0x3559f
jmp 0xa7758
xorl %ebp, %ebp
movq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0xa6da1
xorl %r14d, %r14d
leaq 0x3(%rsp), %rsi
leaq 0x4(%rsp), %rdx
movq %r13, %rdi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0xa710b
testb %bpl, %bpl
je 0xa77c9
testl %eax, %eax
je 0xa779a
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %r14b
testb %al, %al
jne 0xa77c9
leaq 0x3b9d8(%rip), %rsi     # 0xe3179
leaq 0x53f1c(%rip), %rdx     # 0xfb6c4
leaq 0x53c5b(%rip), %rcx     # 0xfb40a
leaq 0x539c1(%rip), %r8      # 0xfb177
xorl %r14d, %r14d
movq %r15, %rdi
movl $0x12c, %r9d            # imm = 0x12C
xorl %eax, %eax
callq 0x3559f
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f62
leaq 0x53c05(%rip), %rdi     # 0xfb3e5
movl $0x24, %esi
movq %rbx, %rdx
callq 0xa4151
movq %rax, %r12
testb %r14b, %r14b
je 0xa7839
testq %r12, %r12
je 0xa7809
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %bpl
testb %al, %al
je 0xa783b
leaq 0x3b969(%rip), %rsi     # 0xe3179
leaq 0x53e8c(%rip), %rdx     # 0xfb6a3
leaq 0x53bec(%rip), %rcx     # 0xfb40a
leaq 0x53952(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x134, %r9d            # imm = 0x134
xorl %eax, %eax
callq 0x3559f
jmp 0xa783b
xorl %ebp, %ebp
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0xa6da1
leaq 0x3(%rsp), %r14
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0xa710b
testl %eax, %eax
sete %dl
movb (%r14), %cl
testb %cl, %cl
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xa78b8
leaq 0x3(%rsp), %r14
leaq 0x4(%rsp), %r13
movl 0x4(%rsp), %eax
movq 0x40(%rsp,%rax,8), %rdi
movsbl %cl, %esi
callq 0x3c28d
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0xa710b
testl %eax, %eax
jne 0xa78b8
movb 0x3(%rsp), %cl
testb %cl, %cl
jne 0xa7886
testb %bpl, %bpl
je 0xa7907
cmpl $-0x2, %eax
movq 0x20(%rsp), %r13
jne 0xa78d6
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %r14b
testb %al, %al
jne 0xa790f
leaq 0x3b89c(%rip), %rsi     # 0xe3179
leaq 0x53d7f(%rip), %rdx     # 0xfb663
leaq 0x53b1f(%rip), %rcx     # 0xfb40a
leaq 0x53885(%rip), %r8      # 0xfb177
xorl %r14d, %r14d
movq %r13, %rdi
movl $0x13c, %r9d            # imm = 0x13C
xorl %eax, %eax
callq 0x3559f
jmp 0xa790f
xorl %r14d, %r14d
movq 0x20(%rsp), %r13
movq %rbx, %rdi
callq 0x3567c
movq %r12, %rdi
callq 0xa3f62
leaq 0x53a7d(%rip), %rdi     # 0xfb3a3
movl $0x1c, %esi
movq %rbx, %rdx
callq 0xa4151
movq %rax, %rbp
testb %r14b, %r14b
je 0xa7980
testq %rbp, %rbp
je 0xa794f
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %r14b
testb %al, %al
je 0xa7983
leaq 0x3b823(%rip), %rsi     # 0xe3179
leaq 0x53d46(%rip), %rdx     # 0xfb6a3
leaq 0x53aa6(%rip), %rcx     # 0xfb40a
leaq 0x5380c(%rip), %r8      # 0xfb177
xorl %r14d, %r14d
movq %r13, %rdi
movl $0x144, %r9d            # imm = 0x144
xorl %eax, %eax
callq 0x3559f
jmp 0xa7983
xorl %r14d, %r14d
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0xa6da1
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0xa6e02
testb %r14b, %r14b
je 0xa79ed
cmpl $-0x1, %eax
jne 0xa79bc
movq %rbx, %rdi
callq 0x3566a
movb $0x1, %r14b
testb %al, %al
je 0xa79f0
leaq 0x3b7b6(%rip), %rsi     # 0xe3179
leaq 0x53aa4(%rip), %rdx     # 0xfb46e
leaq 0x53a39(%rip), %rcx     # 0xfb40a
leaq 0x5379f(%rip), %r8      # 0xfb177
xorl %r14d, %r14d
movq %r13, %rdi
movl $0x148, %r9d            # imm = 0x148
xorl %eax, %eax
callq 0x3559f
jmp 0xa79f0
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x3567c
movq %rbp, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0xa6ecf
testb %r14b, %r14b
je 0xa7a5e
cmpl $-0x1, %eax
jne 0xa7a2d
movq 0x18(%rsp), %rdi
callq 0x3566a
movb $0x1, %r15b
testb %al, %al
je 0xa7a61
leaq 0x3b745(%rip), %rsi     # 0xe3179
leaq 0x53a33(%rip), %rdx     # 0xfb46e
leaq 0x539c8(%rip), %rcx     # 0xfb40a
leaq 0x5372e(%rip), %r8      # 0xfb177
xorl %r15d, %r15d
movq %r13, %rdi
movl $0x14f, %r9d            # imm = 0x14F
xorl %eax, %eax
callq 0x3559f
jmp 0xa7a61
xorl %r15d, %r15d
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x3567c
movq %rbp, %rdi
callq 0xa3f20
leaq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rcx
callq 0xa6f9c
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testb %r15b, %r15b
je 0xa7ae5
cmpl $-0x1, %eax
movq 0x18(%rsp), %rbx
jne 0xa7ab1
movq %rbx, %rdi
callq 0x3566a
xorl %r14d, %r14d
testb %al, %al
je 0xa7aea
leaq 0x3b6c1(%rip), %rsi     # 0xe3179
leaq 0x539af(%rip), %rdx     # 0xfb46e
leaq 0x53944(%rip), %rcx     # 0xfb40a
leaq 0x536aa(%rip), %r8      # 0xfb177
movq %r13, %rdi
movl $0x156, %r9d            # imm = 0x156
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0xa7aea
movq 0x18(%rsp), %rbx
movq %rbp, %rdi
callq 0xa3f62
movq 0x8(%rsp), %rdi
callq 0xa71e5
movq 0x40(%rsp), %rdi
callq 0x3d1eb
movq 0x48(%rsp), %rdi
callq 0x3d1eb
movq 0x50(%rsp), %rdi
callq 0x3d1eb
movq 0x28(%rsp), %rdi
callq 0x3d573
movq 0x38(%rsp), %rdi
callq 0x3d573
movq %rbx, %rdi
callq 0x35705
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x70(%rsp), %rdi
callq 0x3c40b
leaq 0x53954(%rip), %rsi     # 0xfb4ad
movq %rax, %rdi
callq 0xb890
testl %eax, %eax
je 0xa7b91
leaq 0x3b60d(%rip), %rsi     # 0xe3179
leaq 0x53963(%rip), %rdx     # 0xfb4d6
leaq 0x53890(%rip), %rcx     # 0xfb40a
leaq 0x535f6(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x101, %r9d            # imm = 0x101
jmp 0xa7434
movq 0x68(%rsp), %rdi
callq 0x3c40b
leaq 0x53984(%rip), %rsi     # 0xfb526
movq %rax, %rdi
callq 0xb890
testl %eax, %eax
je 0xa7bda
leaq 0x3b5c4(%rip), %rsi     # 0xe3179
leaq 0x53992(%rip), %rdx     # 0xfb54e
leaq 0x53847(%rip), %rcx     # 0xfb40a
leaq 0x535ad(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x103, %r9d            # imm = 0x103
jmp 0xa7434
movq 0x60(%rsp), %rdi
callq 0x3c40b
leaq 0x539b2(%rip), %rsi     # 0xfb59d
movq %rax, %rdi
callq 0xb890
testl %eax, %eax
je 0xa7c23
leaq 0x3b57b(%rip), %rsi     # 0xe3179
leaq 0x539c0(%rip), %rdx     # 0xfb5c5
leaq 0x537fe(%rip), %rcx     # 0xfb40a
leaq 0x53564(%rip), %r8      # 0xfb177
xorl %ebp, %ebp
movq %r15, %rdi
movl $0x105, %r9d            # imm = 0x105
jmp 0xa7434
movb $0x1, %bpl
jmp 0xa7449
callq 0x2369d