// File: /workspace/github_c_makefile_star2_O2/ToniWestbrook[P]paladin/bwamem.c
// Function: ks_mergesort_mem_intv
static smem_aux_t *smem_aux_init()
{
	smem_aux_t *a;
	a = calloc(1, sizeof(smem_aux_t));
	a->tmpv[0] = calloc(1, sizeof(bwtintv_v));
	a->tmpv[1] = calloc(1, sizeof(bwtintv_v));
	return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r12
movq %rdi, %r15
movq %rsi, 0x60(%rsp)
movq %rdx, %rax
movq %rdx, 0x28(%rsp)
testq %rdx, %rdx
jne 0x11ae2
movq %r15, %rdi
shlq $0x5, %rdi
leaq 0x11d7f(%rip), %rsi     # 0x23850
leaq 0x11d92(%rip), %rcx     # 0x2386a
movl $0xa8, %edx
callq 0x1e045
movq %rax, 0x18(%rsp)
movq %rax, 0x68(%rsp)
movq %r15, %rax
shlq $0x5, %rax
movq %rax, 0x8(%rsp)
addq $-0x20, %rax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movq %r12, 0x20(%rsp)
xorl %eax, %eax
pushq $0x1
popq %r13
shlq %cl, %r13
cmpq %r15, %r13
jae 0x11d02
pushq $0x1
popq %rdx
subl %eax, %edx
movq %rdx, 0x38(%rsp)
movq 0x60(%rsp,%rdx,8), %rdi
testq %rcx, %rcx
movq %rcx, 0x40(%rsp)
movq %rdi, 0x10(%rsp)
je 0x11c50
movq %r13, %rax
pushq $0x2
popq %r9
shlq %cl, %r9
shlq $0x5, %rax
movq %rax, 0x58(%rsp)
addq %r12, %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rsp), %rax
addq %r12, %rax
movq %rax, 0x50(%rsp)
xorl %edx, %edx
cmpq %r15, %rdx
jae 0x11ceb
leaq (%rdx,%r13), %rcx
movq 0x50(%rsp), %rax
movq %r12, %r10
cmpq %r15, %rcx
ja 0x11b9e
movq %rdx, %rax
shlq $0x5, %rax
addq 0x48(%rsp), %rax
leaq (%rdx,%r9), %r10
cmpq %r15, %r10
cmovaeq %r15, %r10
shlq $0x5, %r10
addq %r12, %r10
movq %rdx, %rsi
shlq $0x5, %rsi
leaq (%r12,%rsi), %r11
movq 0x58(%rsp), %rcx
addq %r11, %rcx
addq 0x10(%rsp), %rsi
cmpq %rax, %r11
jae 0x11c1e
cmpq %r10, %rcx
jae 0x11c1e
movq 0x18(%rcx), %rdi
xorl %r8d, %r8d
xorl %ebx, %ebx
movq %rcx, %r14
cmpq 0x18(%r11), %rdi
setae %bpl
setb %dil
jb 0x11bdd
movq %r11, %r14
movb %bpl, %r8b
shll $0x5, %r8d
addq %r8, %r11
movb %dil, %bl
shll $0x5, %ebx
addq %rbx, %rcx
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
jmp 0x11bb6
movups (%r11), %xmm0
movups 0x10(%r11), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
addq $0x20, %r11
cmpq %rax, %r11
jb 0x11c06
xorl %eax, %eax
leaq (%rcx,%rax), %rdi
cmpq %r10, %rdi
jae 0x11c48
leaq (%rsi,%rax), %r8
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups %xmm1, 0x10(%r8)
movups %xmm0, (%r8)
addq $0x20, %rax
jmp 0x11c25
addq %r9, %rdx
jmp 0x11b66
movq 0x8(%rsp), %rax
addq %r12, %rax
movq 0x30(%rsp), %rdx
cmpq %rax, %r12
jae 0x11ceb
testq %rdx, %rdx
je 0x11ca1
leaq 0x20(%r12), %r8
movq 0x38(%r12), %r9
leaq 0x20(%rdi), %rcx
leaq 0x40(%rdi), %rsi
cmpq 0x18(%r12), %r9
jae 0x11cb9
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
jmp 0x11cd4
leaq 0x20(%rdi), %rsi
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
jmp 0x11cdb
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
addq $0x40, %r12
addq $-0x40, %rdx
movq %rsi, %rdi
jmp 0x11c5d
movq 0x40(%rsp), %rcx
incq %rcx
movq 0x10(%rsp), %r12
movq 0x38(%rsp), %rax
jmp 0x11b0a
cmpl $0x1, %eax
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rdi
jne 0x11d38
addq %rcx, 0x8(%rsp)
movq %rdi, %rax
cmpq 0x8(%rsp), %rcx
jae 0x11d38
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
addq $0x20, %rcx
addq $0x20, %rax
jmp 0x11d19
cmpq $0x0, 0x28(%rsp)
je 0x11d4f
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3390