// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/gff3_escaping.c
// Function: test_single_escaping
static int test_single_escaping(char unescaped_char, const char *escaped_char,
                                bool expect_escape, bool expect_unescape,
                                GtError *err)
{
  GtStr *escaped_seq, *unescaped_seq;
  char unescaped_testseq[8],
       escaped_testseq[10];
  int had_err = 0;
  gt_error_check(err);
  escaped_seq = gt_str_new();
  unescaped_seq = gt_str_new();
  snprintf(unescaped_testseq, sizeof unescaped_testseq, "foo%cbar",
           unescaped_char);
  snprintf(escaped_testseq, sizeof escaped_testseq, "foo%sbar", escaped_char);
  if (expect_escape) {
    gt_gff3_escape(escaped_seq, unescaped_testseq, strlen(unescaped_testseq));
    gt_ensure(!strcmp(gt_str_get(escaped_seq), escaped_testseq));
  } else {
    gt_str_append_cstr(escaped_seq, escaped_testseq);
  }
  if (!had_err && expect_unescape) {
    had_err = gt_gff3_unescape(unescaped_seq, gt_str_get(escaped_seq),
                               gt_str_length(escaped_seq), err);
    gt_ensure(!strcmp(gt_str_get(unescaped_seq), unescaped_testseq));
  }
  gt_str_delete(unescaped_seq);
  gt_str_delete(escaped_seq);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movl %ecx, (%rsp)
movl %edx, %r12d
movq %rsi, %r13
movl %edi, %r14d
testq %r8, %r8
je 0x654f1
movq %r15, %rdi
callq 0xc103
testb %al, %al
jne 0x65653
callq 0x13d5c
movq %rax, %rbx
callq 0x13d5c
movq %rax, %rbp
movsbl %r14b, %ecx
leaq 0x7866d(%rip), %rdx     # 0xddb79
leaq 0x6(%rsp), %rdi
pushq $0x8
popq %rsi
xorl %eax, %eax
callq 0xba00
leaq 0x78660(%rip), %rdx     # 0xddb82
leaq 0xe(%rsp), %rdi
pushq $0xa
popq %rsi
movq %r13, %rcx
xorl %eax, %eax
callq 0xba00
testb %r12b, %r12b
je 0x655a5
leaq 0x6(%rsp), %r14
movq %r14, %rdi
callq 0xb260
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x64f48
movq %rbx, %rdi
callq 0x143d2
leaq 0xe(%rsp), %rsi
movq %rax, %rdi
callq 0xb880
testl %eax, %eax
je 0x655b2
leaq 0x66be5(%rip), %rsi     # 0xcc159
leaq 0x78610(%rip), %rdx     # 0xddb8b
leaq 0x785e2(%rip), %rcx     # 0xddb64
leaq 0x784c8(%rip), %r8      # 0xdda51
movq %r15, %rdi
movl $0x93, %r9d
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %r12
movq %rbp, %r13
jmp 0x65631
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
callq 0x13dd3
xorl %r12d, %r12d
cmpb $0x0, (%rsp)
movq %rbp, %r13
je 0x65631
movq %rbx, %rdi
callq 0x143d2
movq %rax, %r14
movq %rbx, %rdi
callq 0x14461
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0x65081
pushq $-0x1
popq %rbp
testl %eax, %eax
jne 0x6562e
movq %r13, %rdi
callq 0x143d2
leaq 0x6(%rsp), %rsi
movq %rax, %rdi
callq 0xb880
testl %eax, %eax
je 0x65631
leaq 0x66b50(%rip), %rsi     # 0xcc159
leaq 0x785ad(%rip), %rdx     # 0xddbbd
leaq 0x7854d(%rip), %rcx     # 0xddb64
leaq 0x78433(%rip), %r8      # 0xdda51
movq %r15, %rdi
movl $0x9a, %r9d
xorl %eax, %eax
callq 0xc007
movl %ebp, %r12d
movq %r13, %rdi
callq 0x152db
movq %rbx, %rdi
callq 0x152db
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc895e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x64a02(%rip), %rsi     # 0xca066
leaq 0x64fee(%rip), %rdx     # 0xca659
leaq 0x784f2(%rip), %rcx     # 0xddb64
leaq 0x783d8(%rip), %r8      # 0xdda51
movl $0x8b, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nop