// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdx, %rbx
movq %rsi, %r15
cmpl $0x2, %edi
jl 0x12150
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movl %edi, %ecx
movq %rcx, 0x38(%rsp)
movq %rcx, %r14
negq %r14
movq %r15, 0x30(%rsp)
leaq -0x30(%r15), %rcx
movl $0x1, %r12d
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %eax, %eax
movq %rcx, 0x40(%rsp)
leaq (%r12,%r12,2), %r15
incq %r12
shlq $0x4, %r15
addq %rcx, %r15
testb $0x1, %al
jne 0x1200d
movq 0x8(%r15), %rsi
movq 0x38(%r15), %rdi
callq 0x34d0
testl %eax, %eax
je 0x1202c
cmpq %rbx, %rbp
jne 0x11fdb
movq %rbx, %rax
movq %r14, %rbx
leaq (%rax,%rax), %r14
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r14
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq %r13, %rdi
leaq 0x165af(%rip), %rdx     # 0x2856d
movl $0x57, %ecx
leaq 0x165d4(%rip), %r8      # 0x2859e
callq 0x2324c
movq %rax, %r13
movq %r14, %rax
movq %rbx, %r14
movq %rax, %rbx
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)
addq $0x30, %r15
leaq (%r14,%r12), %rcx
incq %rcx
incq %r12
xorl %eax, %eax
cmpq $0x1, %rcx
jne 0x11f71
jmp 0x12172
movq 0x10(%rsp), %rcx
cmpq %rcx, 0x18(%rsp)
jne 0x1207f
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
movl $0x2, %eax
cmoveq %rax, %rdx
movq %rdx, 0x10(%rsp)
movq %rdx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq 0x8(%rsp), %rdi
leaq 0x16509(%rip), %rdx     # 0x2856d
movl $0x54, %ecx
leaq 0x1652e(%rip), %r8      # 0x2859e
callq 0x2324c
movq %rax, %rdi
movq 0x10(%rsp), %rcx
jmp 0x12084
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rdx
orq $0x1, %rdx
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rdi,%rax)
movups %xmm1, 0x10(%rdi,%rax)
movups %xmm0, (%rdi,%rax)
cmpq %rcx, %rdx
jne 0x120f1
leaq (%rcx,%rcx), %rax
movq %rax, 0x10(%rsp)
shlq $0x5, %rcx
leaq (%rcx,%rcx,2), %rsi
movq %rdx, 0x8(%rsp)
leaq 0x16497(%rip), %rdx     # 0x2856d
movl $0x55, %ecx
leaq 0x164bc(%rip), %r8      # 0x2859e
callq 0x2324c
movq 0x8(%rsp), %rdx
movq %rax, %rdi
jmp 0x120f6
movq %rcx, 0x10(%rsp)
addq $0x30, %r15
addq $0x2, 0x18(%rsp)
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rdi,%rax)
movups %xmm1, 0x10(%rdi,%rax)
movq %rdi, 0x8(%rsp)
movups %xmm0, (%rdi,%rax)
movb $0x1, %al
movq %r14, %rcx
addq %r12, %rcx
movq 0x40(%rsp), %rcx
jne 0x11f63
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %r14
movq 0x8(%rsp), %r12
jmp 0x12219
movl $0x60, %esi
movl $0x1, %eax
movq %rax, 0x38(%rsp)
xorl %r12d, %r12d
movq $0x0, 0x18(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0x121a2
cmpq %rbx, %rbp
jne 0x121c2
movq %rbp, %rax
shlq $0x5, %rax
testq %rbp, %rbp
leaq (%rax,%rax,2), %rax
movl $0x60, %esi
cmovneq %rax, %rsi
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %r14
movq 0x30(%rsp), %r15
movq 0x8(%rsp), %r12
leaq 0x163c4(%rip), %rdx     # 0x2856d
leaq 0x163ee(%rip), %r8      # 0x2859e
movq %r13, %rdi
movl $0x5a, %ecx
callq 0x2324c
movq %rax, %r13
jmp 0x121d6
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %r14
movq 0x30(%rsp), %r15
movq 0x8(%rsp), %r12
leaq (,%rbp,2), %rax
addq %rbp, %rax
incq %rbp
shlq $0x4, %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movups -0x30(%r15,%rcx), %xmm0
movups -0x20(%r15,%rcx), %xmm1
movups -0x10(%r15,%rcx), %xmm2
movups %xmm2, 0x20(%r13,%rax)
movups %xmm1, 0x10(%r13,%rax)
movups %xmm0, (%r13,%rax)
movq %r13, (%r14)
movl %ebp, (%rbx)
movq %r12, 0x8(%r14)
movq 0x18(%rsp), %rax
movl %eax, 0x4(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq