// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movb %cl, %al
movb %dl, %cl
movb %dil, %dl
movb %dl, 0x67(%rsp)
movq %rsi, 0x58(%rsp)
andb $0x1, %cl
movb %cl, 0x57(%rsp)
andb $0x1, %al
movb %al, 0x56(%rsp)
movq %r8, 0x48(%rsp)
movl $0x0, 0x20(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0xa797e
movq 0x48(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xa7946
jmp 0xa797e
movq 0x10c68b(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xb670f(%rip), %rsi     # 0x15e066
leaq 0xb6cea(%rip), %rdx     # 0x15e648
leaq 0xcb173(%rip), %rcx     # 0x172ad8
leaq 0xcb010(%rip), %r8      # 0x17297c
movl $0x8b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xa7980
callq 0x18f00
movq %rax, 0x40(%rsp)
callq 0x18f00
movq %rax, 0x38(%rsp)
leaq 0x30(%rsp), %rdi
movsbl 0x67(%rsp), %ecx
movl $0x8, %esi
leaq 0xcb143(%rip), %rdx     # 0x172aed
movb $0x0, %al
callq 0xb9d0
leaq 0x26(%rsp), %rdi
movq 0x58(%rsp), %rcx
movl $0xa, %esi
leaq 0xcb12f(%rip), %rdx     # 0x172af6
movb $0x0, %al
callq 0xb9d0
testb $0x1, 0x57(%rsp)
je 0xa7a68
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xb240
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
callq 0xa7030
cmpl $0x0, 0x20(%rsp)
jne 0xa7a64
movq 0x40(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
leaq 0x26(%rsp), %rsi
callq 0xb850
cmpl $0x0, %eax
je 0xa7a62
movq 0x48(%rsp), %rdi
leaq 0xb873f(%rip), %rsi     # 0x160177
leaq 0xcb0c0(%rip), %rdx     # 0x172aff
leaq 0xcb092(%rip), %rcx     # 0x172ad8
leaq 0xcaf2f(%rip), %r8      # 0x17297c
movl $0x93, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x20(%rsp) # imm = 0xFFFFFFFF
jmp 0xa7a64
jmp 0xa7a66
jmp 0xa7a77
movq 0x40(%rsp), %rdi
leaq 0x26(%rsp), %rsi
callq 0x18fb0
cmpl $0x0, 0x20(%rsp)
jne 0xa7b28
testb $0x1, 0x56(%rsp)
je 0xa7b28
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x19940
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
callq 0x19a00
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq 0x48(%rsp), %rcx
callq 0xa7260
movl %eax, 0x20(%rsp)
cmpl $0x0, 0x20(%rsp)
jne 0xa7b24
movq 0x38(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0xb850
cmpl $0x0, %eax
je 0xa7b22
movq 0x48(%rsp), %rdi
leaq 0xb867f(%rip), %rsi     # 0x160177
leaq 0xcb032(%rip), %rdx     # 0x172b31
leaq 0xcafd2(%rip), %rcx     # 0x172ad8
leaq 0xcae6f(%rip), %r8      # 0x17297c
movl $0x9a, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x20(%rsp) # imm = 0xFFFFFFFF
jmp 0xa7b24
jmp 0xa7b26
jmp 0xa7b28
movq 0x38(%rsp), %rdi
callq 0x1afc0
movq 0x40(%rsp), %rdi
callq 0x1afc0
movl 0x20(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nop