// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq (%r9,%r8), %rax
movq %rdx, %rcx
subq %rax, %rcx
jle 0x1c030
movq %r9, 0x10(%rsp)
testq %r8, %r8
jle 0x1c092
movq %rcx, 0x8(%rsp)
leaq 0xdadb(%rip), %rdx      # 0x29a9f
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
movq %r8, %r13
callq 0x1fd8a
leaq 0xc54b(%rip), %rbp      # 0x28526
xorl %r12d, %r12d
movzbl (%r15,%r12), %eax
leaq 0x16316(%rip), %rcx     # 0x32300
movzbl (%rcx,%rax), %eax
leaq 0xdaa2(%rip), %rcx      # 0x29a97
movsbl (%rax,%rcx), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1fd8a
incq %r12
cmpq %r12, %r13
jne 0x1bfde
movq %r13, (%rsp)
leaq 0xddde(%rip), %rdx      # 0x29dfa
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1fd8a
movq 0x8(%rsp), %rcx
jmp 0x1c09a
movq %rdx, %rbp
leaq 0xda65(%rip), %rdx      # 0x29a9f
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1fd8a
testq %rbp, %rbp
jle 0x1c14d
leaq 0xc4cf(%rip), %r12      # 0x28526
xorl %r13d, %r13d
movzbl (%r15,%r13), %eax
leaq 0x1629a(%rip), %rcx     # 0x32300
movzbl (%rcx,%rax), %eax
leaq 0xda26(%rip), %rcx      # 0x29a97
movsbl (%rax,%rcx), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1fd8a
incq %r13
cmpq %r13, %rbp
jne 0x1c05a
jmp 0x1c14d
movq $0x0, (%rsp)
testq %rcx, %rcx
jle 0x1c0e8
movq (%rsp), %rax
leaq (%r15,%rax), %r13
xorl %r12d, %r12d
movzbl (%r13,%r12), %eax
leaq 0x16249(%rip), %rdx     # 0x32300
movzbl (%rdx,%rax), %eax
movq %rcx, %rbp
leaq 0xd9d2(%rip), %rcx      # 0x29a97
movsbl (%rax,%rcx), %ecx
movq %r14, %rdi
movq %rbx, %rsi
leaq 0xc450(%rip), %rdx      # 0x28526
xorl %eax, %eax
callq 0x1fd8a
movq %rbp, %rcx
incq %r12
cmpq %r12, %rbp
jne 0x1c0aa
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
jle 0x1c16f
leaq 0xd9a6(%rip), %rdx      # 0x29a9f
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
movq %rcx, %r12
callq 0x1fd8a
addq (%rsp), %r15
addq %r12, %r15
leaq 0xc40f(%rip), %r13      # 0x28526
xorl %r12d, %r12d
movzbl (%r15,%r12), %eax
leaq 0x161da(%rip), %rcx     # 0x32300
movzbl (%rcx,%rax), %eax
leaq 0xd966(%rip), %rcx      # 0x29a97
movsbl (%rax,%rcx), %ecx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x1fd8a
incq %r12
cmpq %r12, %rbp
jne 0x1c11a
leaq 0xdca6(%rip), %rdx      # 0x29dfa
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1fd8a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop