// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/multieoplist.c
// Function: gt_multieoplist_add_eops
static void gt_multieoplist_add_eops(GtMultieoplist *multieops,
                                     AlignmentEoptype type,
                                     GtUword steps)
{
  Eop *space, type_bits = 0;

  gt_assert(multieops != NULL);
  space = multieops->meoplist.spaceEop;
  switch (type) {
    case Deletion:
      type_bits = GT_MEOPS_DEL;
      break;
    case Insertion:
      type_bits = GT_MEOPS_INS;
      break;
    case Match:
    case Replacement:
      type_bits = GT_MEOPS_MATCH;
      break;
    case Mismatch:
      type_bits = GT_MEOPS_MIS;
      break;
    default:
      gt_assert(false);
  }
  if (multieops->meoplist.nextfreeEop != 0) {
    GtUword current = multieops->meoplist.nextfreeEop - 1;
    if (space[current] >> GT_MEOPS_STEPS_BITS == type_bits) {
      while (steps != 0 &&
             (space[current] & GT_MEOPS_STEPS_MASK) < GT_MEOPS_STEPS_MASK) {
        space[current]++;
        steps--;
      }
    }
  }
  if (steps != 0) {
    while (steps != 0) {
      Eop tmp = type_bits << GT_MEOPS_STEPS_BITS;
      if (steps < (GtUword) GT_MEOPS_STEPS_MASK) {
        tmp += steps;
        steps = 0;
      }
      else {
        tmp |= GT_MEOPS_STEPS_MASK;
        steps -= GT_MEOPS_STEPS_MASK;
      }
      GT_STOREINARRAY(&multieops->meoplist, Eop, 64<<2, tmp);
    }
  }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movb $0x0, 0x37(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x1afca7
movq 0x48c32a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x366393(%rip), %rsi    # 0x516013
leaq 0x3af933(%rip), %rdx    # 0x55f5ba
leaq 0x3afe75(%rip), %rcx    # 0x55fb03
leaq 0x3af733(%rip), %r8     # 0x55f3c8
movl $0x71, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1afca9
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movl 0x4c(%rsp), %eax
movq %rax, 0x10(%rsp)
subq $0x4, %rax
ja 0x1afcf7
movq 0x10(%rsp), %rax
leaq 0x3af6b2(%rip), %rcx    # 0x55f384
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x2, 0x37(%rsp)
jmp 0x1afd31
movb $0x3, 0x37(%rsp)
jmp 0x1afd31
movb $0x0, 0x37(%rsp)
jmp 0x1afd31
movb $0x1, 0x37(%rsp)
jmp 0x1afd31
jmp 0x1afcf9
movq 0x48c2a0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x366309(%rip), %rsi    # 0x516013
leaq 0x3a9052(%rip), %rdx    # 0x558d63
leaq 0x3afdeb(%rip), %rcx    # 0x55fb03
leaq 0x3af6a9(%rip), %r8     # 0x55f3c8
movl $0x82, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
movq 0x50(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x1afdc9
movq 0x50(%rsp), %rax
movq 0x18(%rax), %rax
subq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rcx
movzbl (%rax,%rcx), %eax
sarl $0x6, %eax
movzbl 0x37(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1afdc7
jmp 0x1afd6f
xorl %eax, %eax
cmpq $0x0, 0x40(%rsp)
movb %al, 0xf(%rsp)
je 0x1afd98
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rcx
movzbl (%rax,%rcx), %eax
andl $0x3f, %eax
cmpl $0x3f, %eax
setl %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x1afda2
jmp 0x1afdc5
movq 0x38(%rsp), %rax
movq 0x28(%rsp), %rcx
movb (%rax,%rcx), %dl
addb $0x1, %dl
movb %dl, (%rax,%rcx)
movq 0x40(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x1afd6f
jmp 0x1afdc7
jmp 0x1afdc9
cmpq $0x0, 0x40(%rsp)
je 0x1aff53
jmp 0x1afdd7
cmpq $0x0, 0x40(%rsp)
je 0x1aff51
movzbl 0x37(%rsp), %eax
shll $0x6, %eax
movb %al, 0x27(%rsp)
cmpq $0x3f, 0x40(%rsp)
jae 0x1afe13
movq 0x40(%rsp), %rcx
movzbl 0x27(%rsp), %eax
addq %rcx, %rax
movb %al, 0x27(%rsp)
movq $0x0, 0x40(%rsp)
jmp 0x1afe2d
movzbl 0x27(%rsp), %eax
orl $0x3f, %eax
movb %al, 0x27(%rsp)
movq 0x40(%rsp), %rax
subq $0x3f, %rax
movq %rax, 0x40(%rsp)
jmp 0x1afe2f
jmp 0x1afe31
movq 0x50(%rsp), %rax
movq 0x18(%rax), %rax
addq $0x0, %rax
movq 0x50(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jb 0x1afede
movq $0x100, 0x18(%rsp)      # imm = 0x100
xorl %eax, %eax
cmpq 0x18(%rsp), %rax
jbe 0x1afe97
movq 0x48c13a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3661a3(%rip), %rsi    # 0x516013
leaq 0x369330(%rip), %rdx    # 0x5191a7
leaq 0x3afc85(%rip), %rcx    # 0x55fb03
leaq 0x3af543(%rip), %r8     # 0x55f3c8
movl $0x99, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1afe99
movq 0x18(%rsp), %rcx
movq 0x50(%rsp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rsi
shlq $0x0, %rsi
leaq 0x3af500(%rip), %rdx    # 0x55f3c8
movl $0x99, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x1afee0
movq 0x50(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x1aff24
movq 0x48c0ad(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x366116(%rip), %rsi    # 0x516013
leaq 0x3afc18(%rip), %rdx    # 0x55fb1c
leaq 0x3afbf8(%rip), %rcx    # 0x55fb03
leaq 0x3af4b6(%rip), %r8     # 0x55f3c8
movl $0x99, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1aff26
jmp 0x1aff28
movb 0x27(%rsp), %dl
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x50(%rsp), %rsi
movq 0x18(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x18(%rsi)
movb %dl, (%rax,%rcx)
jmp 0x1afdd7
jmp 0x1aff53
addq $0x58, %rsp
retq
nopl (%rax,%rax)