// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/rcr.c
// Function: rcr_decode_insert_var
static int rcr_decode_insert_var(GtRcrDecoder *rcr_dec,
                                 GtBitInStream *bitstream,
                                 RcrDecodeInfo *info,
                                 char type,
                                 GtError *err)
{
  int had_err = 0;
  GtUword symbol = 0, i;
  GtUchar base;

  info->inserted_bases = 0;

  had_err = rcr_huff_read(info->base_hbwd, bitstream, &symbol, err);
  while (!had_err && symbol != info->alpha_size) {
    if (symbol == (info->alpha_size - 1)) {
      base = (GtUchar) GT_WILDCARD;
    }
    else
      base = (GtUchar) symbol;

    gt_str_append_char(info->base_string,
                       toupper(gt_alphabet_decode(info->alphabet, base)));
    info->inserted_bases++;
    had_err = rcr_huff_read(info->base_hbwd, bitstream, &symbol, err);
  }

  if (!had_err) {
    for (i = 0; i < info->inserted_bases; i++)
      gt_str_append_char(info->cigar_string, type);

    if (rcr_dec->store_var_qual) {
      had_err = rcr_huff_read_string(info->qual_hbwd, bitstream,
                                     info->inserted_bases, info->qual_string,
                                     err);
    }
    else {
      if (!rcr_dec->store_all_qual) {
        for (i = 0; i < info->inserted_bases; i++)
          gt_str_append_char(info->qual_string, DEFAULTQUAL);
      }
    }
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movb %cl, %al
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movb %al, 0x3f(%rsp)
movq %r8, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq $0x0, 0x58(%rax)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rcx
leaq 0x20(%rsp), %rdx
callq 0x1c2730
movl %eax, 0x2c(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2c(%rsp)
movb %al, 0x16(%rsp)
jne 0x1c351f
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq 0x48(%rcx), %rax
setne %al
movb %al, 0x16(%rsp)
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0x1c352c
jmp 0x1c35bf
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
movq 0x48(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x1c354a
movb $-0x2, 0x17(%rsp)
jmp 0x1c3553
movq 0x20(%rsp), %rax
movb %al, 0x17(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movzbl 0x17(%rsp), %esi
callq 0x7f7b0
movsbl %al, %edi
callq 0x19dd0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x11da70
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x58(%rax)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rcx
leaq 0x20(%rsp), %rdx
callq 0x1c2730
movl %eax, 0x2c(%rsp)
jmp 0x1c34fd
cmpl $0x0, 0x2c(%rsp)
jne 0x1c3694
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jae 0x1c3606
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rdi
movsbl 0x3f(%rsp), %esi
callq 0x11da70
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x1c35d3
movq 0x50(%rsp), %rax
testb $0x1, 0xe2(%rax)
je 0x1c3644
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rdx
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x30(%rsp), %r8
callq 0x1c2910
movl %eax, 0x2c(%rsp)
jmp 0x1c3692
movq 0x50(%rsp), %rax
testb $0x1, 0xe1(%rax)
jne 0x1c3690
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jae 0x1c368e
movq 0x40(%rsp), %rax
movq 0x38(%rax), %rdi
movl $0x2d, %esi
callq 0x11da70
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x1c365b
jmp 0x1c3690
jmp 0x1c3692
jmp 0x1c3694
movl 0x2c(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)