// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %rcx, %r15
movq %rdx, %rbx
cmpl $0x2, %edi
movq %rsi, 0x30(%rsp)
jl 0x11dec
movq %r15, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movl %edi, %eax
movq %rax, 0x40(%rsp)
movl $0x1, %ecx
movl $0x1, %r14d
xorl %r12d, %r12d
movq %rsi, %r15
movq $0x0, 0x10(%rsp)
xorl %ebx, %ebx
xorl %r13d, %r13d
movq $0x0, 0x18(%rsp)
xorl %ebp, %ebp
testl %ecx, %ecx
je 0x11cb2
movq 0x8(%r15), %rsi
movq 0x38(%r15), %rdi
callq 0x34d0
testl %eax, %eax
je 0x11cbe
movq 0x18(%rsp), %rax
cmpq %rax, %rbp
jne 0x11c80
movq %r13, %rdi
movq %rbp, %r13
movq %rbx, %rbp
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
leaq 0x16874(%rip), %rdx     # 0x284d5
movl $0x57, %ecx
leaq 0x16899(%rip), %r8      # 0x28506
callq 0x22d64
movq %rbx, 0x18(%rsp)
movq %rbp, %rbx
movq %r13, %rbp
movq %rax, %r13
leaq (,%rbp,2), %rax
addq %rbp, %rax
incq %rbp
shlq $0x4, %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)
xorl %eax, %eax
movl $0x1, %ecx
jmp 0x11dc4
movq 0x10(%rsp), %rcx
cmpq %rcx, %rbx
movq %rbp, 0x38(%rsp)
jne 0x11d09
leaq (%rcx,%rcx), %rbp
testq %rcx, %rcx
movl $0x2, %eax
cmoveq %rax, %rbp
movq %rbp, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
leaq 0x167e3(%rip), %rdx     # 0x284d5
movl $0x54, %ecx
leaq 0x16808(%rip), %r8      # 0x28506
callq 0x22d64
movq %rax, %r12
movq %rbp, %rcx
leaq 0x1(%rbx), %rbp
leaq (%rbx,%rbx,2), %rax
shlq $0x4, %rax
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%r12,%rax)
movups %xmm1, 0x10(%r12,%rax)
movups %xmm0, (%r12,%rax)
cmpq %rcx, %rbp
jne 0x11d83
movq %rbx, 0x8(%rsp)
leaq (%rcx,%rcx), %rbx
testq %rcx, %rcx
movl $0x2, %eax
cmoveq %rax, %rbx
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq %r12, %rdi
leaq 0x16772(%rip), %rdx     # 0x284d5
movl $0x55, %ecx
leaq 0x16797(%rip), %r8      # 0x28506
callq 0x22d64
movq %rax, %r12
movq %rbx, 0x10(%rsp)
movq 0x8(%rsp), %rbx
jmp 0x11d88
movq %rcx, 0x10(%rsp)
leaq 0x30(%r15), %rax
addq $0x2, %rbx
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
shlq $0x4, %rcx
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%r12,%rcx)
movups %xmm1, 0x10(%r12,%rcx)
movups %xmm0, (%r12,%rcx)
xorl %ecx, %ecx
movb $0x1, %al
movq 0x38(%rsp), %rbp
incq %r14
addq $0x30, %r15
cmpq %r14, 0x40(%rsp)
jne 0x11c0f
movq %rbx, 0x8(%rsp)
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %rcx
jmp 0x11e07
xorl %eax, %eax
movl $0x1, %r14d
xorl %ebp, %ebp
xorl %ecx, %ecx
xorl %r13d, %r13d
movq $0x0, 0x8(%rsp)
xorl %r12d, %r12d
testb %al, %al
jne 0x11e85
cmpq %rcx, %rbp
jne 0x11e45
movq %rcx, %rax
shlq $0x5, %rax
testq %rcx, %rcx
leaq (%rax,%rax,2), %rax
movl $0x60, %esi
cmovneq %rax, %rsi
leaq 0x166a7(%rip), %rdx     # 0x284d5
leaq 0x166d1(%rip), %r8      # 0x28506
movq %r13, %rdi
movl $0x5a, %ecx
callq 0x22d64
movq %rax, %r13
leaq (,%rbp,2), %rax
addq %rbp, %rax
incq %rbp
shlq $0x4, %rax
leaq (%r14,%r14,2), %rcx
shlq $0x4, %rcx
movq 0x30(%rsp), %rdx
movups -0x30(%rdx,%rcx), %xmm0
movups -0x20(%rdx,%rcx), %xmm1
movups -0x10(%rdx,%rcx), %xmm2
movups %xmm2, 0x20(%r13,%rax)
movups %xmm1, 0x10(%r13,%rax)
movups %xmm0, (%r13,%rax)
movq %r13, (%r15)
movl %ebp, (%rbx)
movq %r12, 0x8(%r15)
movq 0x8(%rsp), %rax
movl %eax, 0x4(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq