// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, 0x50(%rsp)
movq %rdx, %rdi
testq %rdx, %rdx
jne 0x13b0b
movq %r15, %rdi
shlq $0x5, %rdi
leaq 0x14dc9(%rip), %rsi     # 0x288c0
leaq 0x14ddc(%rip), %rcx     # 0x288da
movl $0xa8, %edx
callq 0x23213
movq %rax, %rdi
movq %rdi, 0x58(%rsp)
cmpq $0x2, %r15
jb 0x13d7d
movq %rdi, 0x18(%rsp)
movq %rbx, 0x28(%rsp)
movq %r15, %rax
shlq $0x5, %rax
movq %rax, 0x8(%rsp)
addq $-0x20, %rax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movl $0x1, %r11d
movq %r14, 0x20(%rsp)
movq %r14, (%rsp)
xorl %eax, %eax
movq (%rsp), %r8
movl $0x1, %edx
movl %eax, 0x14(%rsp)
subl %eax, %edx
movq %rdx, 0x38(%rsp)
movq 0x50(%rsp,%rdx,8), %rax
movq %rax, (%rsp)
testq %rcx, %rcx
movq %rcx, 0x40(%rsp)
je 0x13c82
movq %r11, %r12
movl $0x2, %r13d
shlq %cl, %r13
shlq $0x5, %r12
leaq (%r8,%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rsp), %rax
addq %r8, %rax
xorl %edx, %edx
leaq (%rdx,%r11), %rsi
movq %rax, %rbx
movq %r8, %r10
cmpq %r15, %rsi
ja 0x13bc7
movq %rdx, %rbx
shlq $0x5, %rbx
addq 0x48(%rsp), %rbx
leaq (%rdx,%r13), %r10
cmpq %r15, %r10
cmovaeq %r15, %r10
shlq $0x5, %r10
addq %r8, %r10
movq %rdx, %rsi
shlq $0x5, %rsi
leaq (%r8,%rsi), %r9
leaq (%r9,%r12), %rdi
addq (%rsp), %rsi
cmpq %rbx, %r9
jae 0x13c29
cmpq %r10, %rdi
jae 0x13c29
movq %r9, %rbp
movq %rdi, %rcx
movq 0x18(%rdi), %r14
xorl %r9d, %r9d
xorl %edi, %edi
cmpq 0x18(%rbp), %r14
setae %r9b
setb %dil
movq %rbp, %r14
cmovbq %rcx, %r14
shll $0x5, %r9d
addq %rbp, %r9
shll $0x5, %edi
addq %rcx, %rdi
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
jmp 0x13bda
cmpq %rbx, %r9
jae 0x13c4e
movups (%r9), %xmm0
movups 0x10(%r9), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
leaq 0x20(%r9), %rcx
movq %rcx, %r9
cmpq %rbx, %rcx
jb 0x13c2e
cmpq %r10, %rdi
jae 0x13c71
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
leaq 0x20(%rdi), %rcx
movq %rcx, %rdi
cmpq %r10, %rcx
jb 0x13c53
addq %r13, %rdx
cmpq %r15, %rdx
jb 0x13b9a
jmp 0x13d1a
testq %r15, %r15
jle 0x13d1a
movq 0x8(%rsp), %rax
addq %r8, %rax
movq 0x30(%rsp), %rdx
movq (%rsp), %rdi
testq %rdx, %rdx
je 0x13cd2
leaq 0x20(%r8), %r10
movq 0x38(%r8), %r11
leaq 0x20(%rdi), %r9
leaq 0x40(%rdi), %rsi
cmpq 0x18(%r8), %r11
jae 0x13ce8
movups (%r10), %xmm0
movups 0x10(%r10), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
jmp 0x13d01
leaq 0x20(%rdi), %rsi
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
jmp 0x13d0a
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movups (%r10), %xmm0
movups 0x10(%r10), %xmm1
movups %xmm1, 0x10(%r9)
movups %xmm0, (%r9)
addq $0x40, %r8
addq $-0x40, %rdx
movq %rsi, %rdi
cmpq %rax, %r8
jb 0x13c9c
movl $0x2, %r11d
movq 0x40(%rsp), %rcx
shlq %cl, %r11
incq %rcx
cmpq %r15, %r11
movq 0x38(%rsp), %rax
jb 0x13b4c
cmpl $0x1, 0x14(%rsp)
movq 0x28(%rsp), %rbx
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
je 0x13d7d
testq %r15, %r15
jle 0x13d7d
addq %rdx, %rsi
movq %rdi, %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rdx)
movups %xmm0, (%rdx)
leaq 0x20(%rdx), %rcx
addq $0x20, %rax
movq %rcx, %rdx
cmpq %rsi, %rcx
jb 0x13d5f
addq $0x68, %rsp
testq %rbx, %rbx
je 0x13d91
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3390