// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gap_str.c
// Function: gt_gap_str_new
static GtGapStr *gt_gap_str_new(const char *str, bool is_protein, GtError *err)
{
  GtGapStr *gap_str;
  gap_str = gt_malloc(sizeof (GtGapStr));
  gap_str->is_protein_alignment = is_protein;
  gap_str->step = is_protein ? 3 : 1;
  gap_str->ali_len = 0;
  gap_str->ref_len = 0;
  gap_str->tar_len = 0;
  if (gt_gap_str_parse(gap_str, str, err) != 0) {
    gt_free(gap_str);
    return NULL;
  }
  return gap_str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
leaq 0x6f684(%rip), %rsi     # 0xf4564
movl $0x28, %edi
movl $0x87, %edx
callq 0x35862
movq %rax, %rbx
movb %bpl, 0x20(%rax)
movl %ebp, %eax
leaq 0x1(,%rax,2), %rax
movq %rax, 0x18(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rdi
callq 0x728c0
testq %r14, %r14
je 0x851d1
movq %rax, %r12
testq %r15, %r15
je 0x84f3d
movq %r15, %rdi
callq 0x34fea
testb %al, %al
jne 0x851d6
movq %r15, 0x10(%rsp)
callq 0x39f34
movq %rax, %r15
movq %rax, %rdi
callq 0x3a149
movq %r12, %rdi
callq 0xb260
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
movl $0x20, %ecx
callq 0x39f4f
movq %r15, %rdi
callq 0x3a16c
testq %rax, %rax
je 0x85105
movq %rax, %r13
movq %r12, 0x8(%rsp)
movl $0x1, %ebp
leaq -0x1(%rbp), %rsi
movq %r15, %rdi
callq 0x3a130
movq %rax, %r14
movq %rax, %rdi
callq 0xb260
movzbl (%r14), %r12d
cmpl $0x1, %eax
jle 0x85126
leal -0x44(%r12), %eax
cmpl $0x9, %eax
ja 0x84fc9
leaq 0x6f530(%rip), %rcx     # 0xf44f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x52, %r12d
jne 0x8516f
cmpb $0x0, 0x20(%rbx)
je 0x8515e
incq %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x395c7
testl %eax, %eax
jne 0x85146
movzbl %r12b, %eax
leal -0x44(%rax), %ecx
cmpl $0x9, %ecx
ja 0x8501d
leaq 0x6f512(%rip), %rdx     # 0xf4518
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq (%rsp), %rax
imulq 0x18(%rbx), %rax
jmp 0x850ba
cmpl $0x52, %eax
jne 0x851cc
movq (%rbx), %rax
movq (%rsp), %rdx
cmpq %rdx, %rax
jb 0x8503e
movq 0x10(%rbx), %rcx
movb $0x1, %r14b
cmpq %rdx, %rcx
jae 0x8505f
xorl %r14d, %r14d
movq 0x10(%rsp), %rdi
leaq 0x6f653(%rip), %rsi     # 0xf46a0
xorl %eax, %eax
callq 0x34f1f
movq (%rsp), %rdx
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rdx, %rax
movq %rax, (%rbx)
subq %rdx, %rcx
movq %rcx, 0x10(%rbx)
jmp 0x850c4
movq (%rsp), %rax
imulq 0x18(%rbx), %rax
addq %rax, 0x10(%rbx)
movdqu (%rbx), %xmm0
movq %rax, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
paddq %xmm0, %xmm1
movdqu %xmm1, (%rbx)
jmp 0x850c1
movq (%rsp), %rax
imulq 0x18(%rbx), %rax
movdqu 0x8(%rbx), %xmm0
movq %rax, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
paddq %xmm0, %xmm1
movdqu %xmm1, 0x8(%rbx)
jmp 0x850c1
movq (%rsp), %rax
addq %rax, (%rbx)
addq %rax, 0x10(%rbx)
movb $0x1, %r14b
testb %r14b, %r14b
je 0x850d9
leaq 0x1(%rbp), %rax
cmpq %r13, %rbp
movq %rax, %rbp
jb 0x84f8b
leaq 0x6f484(%rip), %rsi     # 0xf4564
movq 0x8(%rsp), %rdi
movl $0x7f, %edx
callq 0x35c27
movq %r15, %rdi
callq 0x3a17c
testb %r14b, %r14b
je 0x851a4
jmp 0x851ba
leaq 0x6f458(%rip), %rsi     # 0xf4564
movq %r12, %rdi
movl $0x7f, %edx
callq 0x35c27
movq %r15, %rdi
callq 0x3a17c
jmp 0x851ba
cmpb $0xa, %r12b
je 0x851db
movzbl %r12b, %eax
cmpl $0x20, %eax
je 0x851db
leaq 0x6f48c(%rip), %rsi     # 0xf45d0
jmp 0x8514d
leaq 0x6f528(%rip), %rsi     # 0xf4675
movq 0x10(%rsp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x34f1f
jmp 0x85186
leaq 0x6f495(%rip), %rsi     # 0xf45fa
movq 0x10(%rsp), %rdi
movl %r12d, %edx
jmp 0x8517f
movsbl %r12b, %edx
leaq 0x6f4ce(%rip), %rsi     # 0xf4648
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x34f1f
movq 0x8(%rsp), %rdi
leaq 0x6f3d2(%rip), %rsi     # 0xf4564
movl $0x7f, %edx
callq 0x35c27
movq %r15, %rdi
callq 0x3a17c
leaq 0x6f3b9(%rip), %rsi     # 0xf4564
movq %rbx, %rdi
movl $0x8e, %edx
callq 0x35c27
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f761
callq 0x1f7cf
callq 0x1f72a
callq 0x1f798