// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/rcr.c
// Function: rcr_transdecode
static GtUchar rcr_transdecode(GtUchar ref, GtBitsequence transcode,
                               GtAlphabet *alpha)
{
  GtUchar code_a = gt_alphabet_encode(alpha, 'A'),
          code_c = gt_alphabet_encode(alpha, 'C'),
          code_g = gt_alphabet_encode(alpha, 'G'),
          code_t = gt_alphabet_encode(alpha, 'T');

  if (ref == (GtUchar) GT_WILDCARD) {
    switch (transcode) {
       case 0:
         return code_a;
       case 1:
         return code_c;
       case 2:
         return code_g;
       case 3:
         return code_t;
    }
  }
  else if (transcode == (GtBitsequence) 3)
    return (GtUchar) GT_WILDCARD;
  else {
    if (ref == code_a) {
      switch (transcode) {
        case 0:
          return code_c;
        case 1:
          return code_g;
        case 2:
          return code_t;
      }
    }
    if (ref == code_c) {
       switch (transcode) {
         case 0:
           return code_a;
         case 1:
           return code_g;
         case 2:
           return code_t;
         }
    }
    if (ref == code_g) {
      switch (transcode) {
        case 0:
          return code_a;
        case 1:
          return code_c;
        case 2:
          return code_t;
      }
    }
    if (ref == code_t) {
      switch (transcode) {
        case 0:
          return code_a;
        case 1:
          return code_c;
        case 2:
          return code_g;
      }
    }
  }
  return (GtUchar) GT_UNDEF_UCHAR;
}

// Assembly:
subq $0x48, %rsp
movb %dil, %al
movb %al, 0x46(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movl $0x41, %esi
callq 0x7f6f0
movb %al, 0x2f(%rsp)
movq 0x30(%rsp), %rdi
movl $0x43, %esi
callq 0x7f6f0
movb %al, 0x2e(%rsp)
movq 0x30(%rsp), %rdi
movl $0x47, %esi
callq 0x7f6f0
movb %al, 0x2d(%rsp)
movq 0x30(%rsp), %rdi
movl $0x54, %esi
callq 0x7f6f0
movb %al, 0x2c(%rsp)
movzbl 0x46(%rsp), %eax
cmpl $0xfe, %eax
jne 0x1c380b
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
subq $0x3, %rax
ja 0x1c3806
movq 0x20(%rsp), %rax
leaq 0x39dcf3(%rip), %rcx    # 0x5614bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb 0x2f(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2e(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2d(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2c(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
jmp 0x1c3994
cmpq $0x3, 0x38(%rsp)
jne 0x1c381d
movb $-0x2, 0x47(%rsp)
jmp 0x1c3999
movzbl 0x46(%rsp), %eax
movzbl 0x2f(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1c387f
movq 0x38(%rsp), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x1c3856
jmp 0x1c383c
movq 0x18(%rsp), %rax
subq $0x1, %rax
je 0x1c3863
jmp 0x1c3849
movq 0x18(%rsp), %rax
subq $0x2, %rax
je 0x1c3870
jmp 0x1c387d
movb 0x2e(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2d(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2c(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
jmp 0x1c387f
movzbl 0x46(%rsp), %eax
movzbl 0x2e(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1c38e1
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1c38b8
jmp 0x1c389e
movq 0x10(%rsp), %rax
subq $0x1, %rax
je 0x1c38c5
jmp 0x1c38ab
movq 0x10(%rsp), %rax
subq $0x2, %rax
je 0x1c38d2
jmp 0x1c38df
movb 0x2f(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2d(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2c(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
jmp 0x1c38e1
movzbl 0x46(%rsp), %eax
movzbl 0x2d(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1c393a
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x1c391a
jmp 0x1c3900
movq 0x8(%rsp), %rax
subq $0x1, %rax
je 0x1c3924
jmp 0x1c390d
movq 0x8(%rsp), %rax
subq $0x2, %rax
je 0x1c392e
jmp 0x1c3938
movb 0x2f(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2e(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2c(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
jmp 0x1c393a
movzbl 0x46(%rsp), %eax
movzbl 0x2c(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1c3990
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x1c3970
jmp 0x1c3958
movq (%rsp), %rax
subq $0x1, %rax
je 0x1c397a
jmp 0x1c3964
movq (%rsp), %rax
subq $0x2, %rax
je 0x1c3984
jmp 0x1c398e
movb 0x2f(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2e(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
movb 0x2d(%rsp), %al
movb %al, 0x47(%rsp)
jmp 0x1c3999
jmp 0x1c3990
jmp 0x1c3992
jmp 0x1c3994
movb $-0x1, 0x47(%rsp)
movb 0x47(%rsp), %al
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)