// File: /workspace/github_c_makefile_star2_O0/ToniWestbrook[P]paladin/bwa.c
// Function: bseq_classify
void bseq_classify(int n, bseq1_t *seqs, int m[2], bseq1_t *sep[2])
{
	int i, has_last;
	kvec_t(bseq1_t) a[2] = {{0,0,0}, {0,0,0}};
	for (i = 1, has_last = 1; i < n; ++i) {
		if (has_last) {
			if (strcmp(seqs[i].name, seqs[i-1].name) == 0) {
				kv_push(bseq1_t, a[1], seqs[i-1]);
				kv_push(bseq1_t, a[1], seqs[i]);
				has_last = 0;
			} else kv_push(bseq1_t, a[0], seqs[i-1]);
		} else has_last = 1;
	}
	if (has_last) kv_push(bseq1_t, a[0], seqs[i-1]);
	sep[0] = a[0].a, m[0] = a[0].n;
	sep[1] = a[1].a, m[1] = a[1].n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x3130
movl $0x1, -0x24(%rbp)
movl $0x1, -0x28(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x18dc7
cmpl $0x0, -0x28(%rbp)
je 0x18db0
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
callq 0x34b0
cmpl $0x0, %eax
jne 0x18d1d
jmp 0x18bf9
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jne 0x18c4f
cmpq $0x0, -0x40(%rbp)
je 0x18c17
movq -0x40(%rbp), %rax
shlq %rax
movq %rax, -0x68(%rbp)
jmp 0x18c22
movl $0x2, %eax
movq %rax, -0x68(%rbp)
jmp 0x18c22
movq -0x68(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
imulq $0x30, -0x40(%rbp), %rsi
leaq 0x2178b(%rip), %rdx     # 0x3a3c5
movl $0x54, %ecx
leaq 0x217b0(%rip), %r8      # 0x3a3f6
callq 0x31d40
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x48(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x30, %rax, %rax
addq %rax, %rsi
movl $0x30, %edx
callq 0x3250
jmp 0x18c88
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jne 0x18cde
cmpq $0x0, -0x40(%rbp)
je 0x18ca6
movq -0x40(%rbp), %rax
shlq %rax
movq %rax, -0x70(%rbp)
jmp 0x18cb1
movl $0x2, %eax
movq %rax, -0x70(%rbp)
jmp 0x18cb1
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
imulq $0x30, -0x40(%rbp), %rsi
leaq 0x216fc(%rip), %rdx     # 0x3a3c5
movl $0x55, %ecx
leaq 0x21721(%rip), %r8      # 0x3a3f6
callq 0x31d40
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x48(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movslq -0x24(%rbp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rsi
movl $0x30, %edx
callq 0x3250
movl $0x0, -0x28(%rbp)
jmp 0x18dae
jmp 0x18d1f
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0x18d75
cmpq $0x0, -0x58(%rbp)
je 0x18d3d
movq -0x58(%rbp), %rax
shlq %rax
movq %rax, -0x78(%rbp)
jmp 0x18d48
movl $0x2, %eax
movq %rax, -0x78(%rbp)
jmp 0x18d48
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
imulq $0x30, -0x58(%rbp), %rsi
leaq 0x21665(%rip), %rdx     # 0x3a3c5
movl $0x57, %ecx
leaq 0x2168a(%rip), %r8      # 0x3a3f6
callq 0x31d40
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x30, %rax, %rax
addq %rax, %rsi
movl $0x30, %edx
callq 0x3250
jmp 0x18dae
jmp 0x18db7
movl $0x1, -0x28(%rbp)
jmp 0x18db9
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x18ba8
cmpl $0x0, -0x28(%rbp)
je 0x18e62
jmp 0x18dd3
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0x18e29
cmpq $0x0, -0x58(%rbp)
je 0x18df1
movq -0x58(%rbp), %rax
shlq %rax
movq %rax, -0x80(%rbp)
jmp 0x18dfc
movl $0x2, %eax
movq %rax, -0x80(%rbp)
jmp 0x18dfc
movq -0x80(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
imulq $0x30, -0x58(%rbp), %rsi
leaq 0x215b1(%rip), %rdx     # 0x3a3c5
movl $0x5a, %ecx
leaq 0x215d6(%rip), %r8      # 0x3a3f6
callq 0x31d40
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x60(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x30, %rax, %rax
addq %rax, %rsi
movl $0x30, %edx
callq 0x3250
jmp 0x18e62
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x48(%rbp), %rax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax,%rax)