// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, %r15
movslq %edi, %rax
movq %rax, 0x30(%rsp)
pushq $0x1
popq %rax
pushq $0x1
popq %rbx
xorl %r14d, %r14d
movq $0x0, 0x10(%rsp)
xorl %ebp, %ebp
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
cmpq 0x30(%rsp), %rbx
jge 0x10487
testl %eax, %eax
je 0x10392
movq 0x8(%r15), %rsi
movq 0x38(%r15), %rdi
callq 0x34d0
testl %eax, %eax
je 0x1039a
cmpq 0x10(%rsp), %r14
jne 0x1036e
leaq (%r14,%r14), %rcx
testq %r14, %r14
pushq $0x2
popq %rax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
imulq $0x30, %rcx, %rsi
movq %rbp, %rdi
leaq 0x131a9(%rip), %rdx     # 0x23505
pushq $0x57
popq %rcx
leaq 0x131d0(%rip), %r8      # 0x23536
callq 0x1e0b4
movq %rax, %rbp
imulq $0x30, %r14, %rax
incq %r14
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rbp,%rax)
movups %xmm1, 0x10(%rbp,%rax)
movups %xmm0, (%rbp,%rax)
pushq $0x1
popq %rax
jmp 0x1047b
movq 0x8(%rsp), %r12
cmpq %r12, (%rsp)
movq %rbp, 0x28(%rsp)
jne 0x103dc
movq (%rsp), %rax
leaq (%rax,%rax), %r12
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r12
imulq $0x30, %r12, %rsi
movq %r13, %rdi
leaq 0x1313b(%rip), %rdx     # 0x23505
pushq $0x54
popq %rcx
leaq 0x13162(%rip), %r8      # 0x23536
callq 0x1e0b4
movq %rax, %r13
movq (%rsp), %rax
leaq 0x1(%rax), %rbp
imulq $0x30, %rax, %rax
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%r13,%rax)
movups %xmm1, 0x10(%r13,%rax)
movups %xmm0, (%r13,%rax)
cmpq %r12, %rbp
movq %r12, %rax
jne 0x10445
leaq (%rax,%rax), %r12
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r12
imulq $0x30, %r12, %rsi
movq %r13, %rdi
leaq 0x130d9(%rip), %rdx     # 0x23505
pushq $0x55
popq %rcx
leaq 0x13100(%rip), %r8      # 0x23536
callq 0x1e0b4
movq %rax, %r13
movq %r12, 0x8(%rsp)
jmp 0x1044a
movq %rax, 0x8(%rsp)
leaq 0x30(%r15), %rax
addq $0x2, (%rsp)
imulq $0x30, %rbp, %rcx
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%r13,%rcx)
movups %xmm1, 0x10(%r13,%rcx)
movups %xmm0, (%r13,%rcx)
xorl %eax, %eax
movq 0x28(%rsp), %rbp
incq %rbx
addq $0x30, %r15
jmp 0x10314
testl %eax, %eax
je 0x104e0
cmpq 0x10(%rsp), %r14
jne 0x104bc
imulq $0x60, %r14, %rax
testq %r14, %r14
pushq $0x60
popq %rsi
cmovneq %rax, %rsi
leaq 0x1305e(%rip), %rdx     # 0x23505
leaq 0x13088(%rip), %r8      # 0x23536
pushq $0x5a
popq %rcx
movq %rbp, %rdi
callq 0x1e0b4
movq %rax, %rbp
imulq $0x30, %r14, %rax
incq %r14
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rbp,%rax)
movups %xmm1, 0x10(%rbp,%rax)
movups %xmm0, (%rbp,%rax)
movq 0x18(%rsp), %rcx
movq %rbp, (%rcx)
movq 0x20(%rsp), %rax
movl %r14d, (%rax)
movq %r13, 0x8(%rcx)
movq (%rsp), %rcx
movl %ecx, 0x4(%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq