// File: /workspace/github_c_makefile_star2_O0/lh3[P]minigraph/galign.c
// Function: write_indel
static void write_indel(void *km, kstring_t *str, int64_t len, const char *seq, int64_t ll, int64_t lr) // write an indel to ds
{
	int64_t i;
	if (ll + lr >= len) {
		mg_sprintf_km(km, str, "[");
		for (i = 0; i < len; ++i)
			mg_sprintf_km(km, str, "%c", "acgtn"[mg_get_nucl(seq, i)]);
		mg_sprintf_km(km, str, "]");
	} else {
		int64_t k = 0;
		if (ll > 0) {
			mg_sprintf_km(km, str, "[");
			for (i = 0; i < ll; ++i)
				mg_sprintf_km(km, str, "%c", "acgtn"[mg_get_nucl(seq, k+i)]);
			mg_sprintf_km(km, str, "]");
			k += ll;
		}
		for (i = 0; i < len - lr - ll; ++i)
			mg_sprintf_km(km, str, "%c", "acgtn"[mg_get_nucl(seq, k+i)]);
		k += len - lr - ll;
		if (lr > 0) {
			mg_sprintf_km(km, str, "[");
			for (i = 0; i < lr; ++i)
				mg_sprintf_km(km, str, "%c", "acgtn"[mg_get_nucl(seq, k+i)]);
			mg_sprintf_km(km, 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 %r9, -0x30(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jl 0x2af5f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12b2a(%rip), %rdx     # 0x3da0b
movb $0x0, %al
callq 0x30e30
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x18(%rbp), %rax
jge 0x2af44
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
movq -0x38(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x1a3d9(%rip), %rax     # 0x452f0
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x12adf(%rip), %rax     # 0x3da03
movsbl (%rax,%rcx), %ecx
leaq 0x115d9(%rip), %rdx     # 0x3c508
movb $0x0, %al
callq 0x30e30
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x2aef0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12dfb(%rip), %rdx     # 0x3dd4e
movb $0x0, %al
callq 0x30e30
jmp 0x2b122
movq $0x0, -0x40(%rbp)
cmpq $0x0, -0x28(%rbp)
jle 0x2b00a
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12a8a(%rip), %rdx     # 0x3da0b
movb $0x0, %al
callq 0x30e30
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
jge 0x2afe8
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
addq -0x38(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x1a335(%rip), %rax     # 0x452f0
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x12a3b(%rip), %rax     # 0x3da03
movsbl (%rax,%rcx), %ecx
leaq 0x11535(%rip), %rdx     # 0x3c508
movb $0x0, %al
callq 0x30e30
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x2af90
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12d57(%rip), %rdx     # 0x3dd4e
movb $0x0, %al
callq 0x30e30
movq -0x28(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x18(%rbp), %rcx
subq -0x30(%rbp), %rcx
subq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jge 0x2b075
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
addq -0x38(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x1a2a8(%rip), %rax     # 0x452f0
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x129ae(%rip), %rax     # 0x3da03
movsbl (%rax,%rcx), %ecx
leaq 0x114a8(%rip), %rdx     # 0x3c508
movb $0x0, %al
callq 0x30e30
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x2b012
movq -0x18(%rbp), %rax
subq -0x30(%rbp), %rax
subq -0x28(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x30(%rbp)
jle 0x2b120
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12968(%rip), %rdx     # 0x3da0b
movb $0x0, %al
callq 0x30e30
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
jge 0x2b10a
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
addq -0x38(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x1a213(%rip), %rax     # 0x452f0
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x12919(%rip), %rax     # 0x3da03
movsbl (%rax,%rcx), %ecx
leaq 0x11413(%rip), %rdx     # 0x3c508
movb $0x0, %al
callq 0x30e30
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x2b0b2
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq 0x12c35(%rip), %rdx     # 0x3dd4e
movb $0x0, %al
callq 0x30e30
jmp 0x2b122
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)