// File: /workspace/github_c_makefile_star2_O0/lh3[P]ksw2/./ksw2.h
// Function: ksw_cigar2eqx
static inline void ksw_cigar2eqx(void *km, const uint8_t *query, const uint8_t *target, int nc0, const uint32_t *ci0, int *mc1, int *nc1, uint32_t **ci1)
{
	int i, k, x = 0, y = 0;
	*nc1 = 0;
	for (k = 0; k < nc0; ++k) {
		int op = ci0[k]&0xf, len = ci0[k]>>4;
		if (op == KSW_CIGAR_MATCH) {
			for (i = 0; i < len; ++i) {
				if (target[x + i] == query[y + i]) ksw_push_cigar(km, nc1, mc1, *ci1, KSW_CIGAR_EQ, 1);
				else ksw_push_cigar(km, nc1, mc1, *ci1, KSW_CIGAR_X, 1);
			}
			x += len, y += len;
		} else {
			ksw_push_cigar(km, nc1, mc1, *ci1, op, len);
			if (op == KSW_CIGAR_DEL || op == KSW_CIGAR_N_SKIP) x += len;
			else if (op == KSW_CIGAR_INS) y += len;
			else if (op == KSW_CIGAR_EQ || op == KSW_CIGAR_X) x += len, y += len;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movq 0x10(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x16441
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movl (%rax,%rcx,4), %eax
andl $0xf, %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movl (%rax,%rcx,4), %eax
shrl $0x4, %eax
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0x163c5
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x48(%rbp), %eax
jge 0x163b1
movq -0x18(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl -0x34(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movl -0x40(%rbp), %edx
addl -0x34(%rbp), %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x1637d
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x18(%rbp), %rax
movq (%rax), %rcx
movl $0x7, %r8d
movl $0x1, %r9d
callq 0x16450
jmp 0x163a1
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x18(%rbp), %rax
movq (%rax), %rcx
movl $0x8, %r8d
movl $0x1, %r9d
callq 0x16450
jmp 0x163a3
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x16325
movl -0x48(%rbp), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x48(%rbp), %eax
addl -0x40(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x16431
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq 0x18(%rbp), %rax
movq (%rax), %rcx
movl -0x44(%rbp), %r8d
movl -0x48(%rbp), %r9d
callq 0x16450
cmpl $0x2, -0x44(%rbp)
je 0x163f1
cmpl $0x3, -0x44(%rbp)
jne 0x163fc
movl -0x48(%rbp), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0x1642f
cmpl $0x1, -0x44(%rbp)
jne 0x1640d
movl -0x48(%rbp), %eax
addl -0x40(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x1642d
cmpl $0x7, -0x44(%rbp)
je 0x16419
cmpl $0x8, -0x44(%rbp)
jne 0x1642b
movl -0x48(%rbp), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x48(%rbp), %eax
addl -0x40(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x1642d
jmp 0x1642f
jmp 0x16431
jmp 0x16433
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x162e6
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)