// File: /workspace/github_c_makefile_star2_O0/lh3[P]minimap2/format.c
// Function: write_indel_ds
static void write_indel_ds(kstring_t *str, int64_t len, const uint8_t *seq, int64_t ll, int64_t lr) // write an indel to ds; adapted from minigraph
{
	int64_t i;
	if (ll + lr >= len) {
		mm_sprintf_lite(str, "[");
		for (i = 0; i < len; ++i)
			mm_sprintf_lite(str, "%c", "acgtn"[seq[i]]);
		mm_sprintf_lite(str, "]");
	} else {
		int64_t k = 0;
		if (ll > 0) {
			mm_sprintf_lite(str, "[");
			for (i = 0; i < ll; ++i)
				mm_sprintf_lite(str, "%c", "acgtn"[seq[k+i]]);
			mm_sprintf_lite(str, "]");
			k += ll;
		}
		for (i = 0; i < len - lr - ll; ++i)
			mm_sprintf_lite(str, "%c", "acgtn"[seq[k+i]]);
		k += len - lr - ll;
		if (lr > 0) {
			mm_sprintf_lite(str, "[");
			for (i = 0; i < lr; ++i)
				mm_sprintf_lite(str, "%c", "acgtn"[seq[k+i]]);
			mm_sprintf_lite(str, "]");
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jl 0x17dee
movq -0x8(%rbp), %rdi
leaq 0x3fc8c(%rip), %rsi     # 0x57a11
movb $0x0, %al
callq 0x144f0
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x10(%rbp), %rax
jge 0x17dd7
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x3fc3e(%rip), %rax     # 0x579f5
movsbl (%rax,%rcx), %edx
leaq 0x3f8bb(%rip), %rsi     # 0x5767d
movb $0x0, %al
callq 0x144f0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x17d94
movq -0x8(%rbp), %rdi
leaq 0x3fc31(%rip), %rsi     # 0x57a13
movb $0x0, %al
callq 0x144f0
jmp 0x17f66
movq $0x0, -0x38(%rbp)
cmpq $0x0, -0x20(%rbp)
jle 0x17e7c
movq -0x8(%rbp), %rdi
leaq 0x3fc09(%rip), %rsi     # 0x57a11
movb $0x0, %al
callq 0x144f0
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jge 0x17e5e
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
addq -0x30(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x3fbb7(%rip), %rax     # 0x579f5
movsbl (%rax,%rcx), %edx
leaq 0x3f834(%rip), %rsi     # 0x5767d
movb $0x0, %al
callq 0x144f0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x17e17
movq -0x8(%rbp), %rdi
leaq 0x3fbaa(%rip), %rsi     # 0x57a13
movb $0x0, %al
callq 0x144f0
movq -0x20(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
subq -0x28(%rbp), %rcx
subq -0x20(%rbp), %rcx
cmpq %rcx, %rax
jge 0x17ed6
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
addq -0x30(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x3fb3f(%rip), %rax     # 0x579f5
movsbl (%rax,%rcx), %edx
leaq 0x3f7bc(%rip), %rsi     # 0x5767d
movb $0x0, %al
callq 0x144f0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x17e84
movq -0x10(%rbp), %rax
subq -0x28(%rbp), %rax
subq -0x20(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x28(%rbp)
jle 0x17f64
movq -0x8(%rbp), %rdi
leaq 0x3fb15(%rip), %rsi     # 0x57a11
movb $0x0, %al
callq 0x144f0
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x28(%rbp), %rax
jge 0x17f52
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq -0x38(%rbp), %rcx
addq -0x30(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x3fac3(%rip), %rax     # 0x579f5
movsbl (%rax,%rcx), %edx
leaq 0x3f740(%rip), %rsi     # 0x5767d
movb $0x0, %al
callq 0x144f0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x17f0b
movq -0x8(%rbp), %rdi
leaq 0x3fab6(%rip), %rsi     # 0x57a13
movb $0x0, %al
callq 0x144f0
jmp 0x17f66
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)