// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq %rdx, %rdi
testq %rdx, %rdx
jne 0x137a4
movq %r15, %rdi
shlq $0x5, %rdi
leaq 0x15040(%rip), %rsi     # 0x287d0
leaq 0x15053(%rip), %rcx     # 0x287ea
movl $0xa8, %edx
callq 0x22d2b
movq %rax, %rdi
movq %rdi, 0x18(%rsp)
cmpq $0x2, %r15
jb 0x13a11
movq %rdi, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r15, %rax
shlq $0x5, %rax
movq %rax, (%rsp)
addq $-0x20, %rax
movq %rax, 0x40(%rsp)
xorl %ecx, %ecx
movl $0x1, %r11d
xorl %eax, %eax
movl %eax, %edx
movl %eax, %eax
movq 0x10(%rsp,%rax,8), %rax
movl $0x1, %esi
movl %edx, 0xc(%rsp)
subl %edx, %esi
movq %rsi, 0x48(%rsp)
movq 0x10(%rsp,%rsi,8), %r10
testq %rcx, %rcx
movq %rcx, 0x50(%rsp)
je 0x1391b
movq %r11, %r12
movl $0x2, %r13d
shlq %cl, %r13
shlq $0x5, %r12
leaq (%rax,%r12), %rcx
movq %rcx, 0x58(%rsp)
movq (%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x60(%rsp)
xorl %r14d, %r14d
leaq (%r14,%r11), %rsi
movq 0x60(%rsp), %rbx
movq %rax, %r9
cmpq %r15, %rsi
ja 0x13863
movq %r14, %rbx
shlq $0x5, %rbx
addq 0x58(%rsp), %rbx
leaq (%r14,%r13), %r9
cmpq %r15, %r9
cmovaeq %r15, %r9
shlq $0x5, %r9
addq %rax, %r9
movq %r14, %rsi
shlq $0x5, %rsi
leaq (%rax,%rsi), %r8
leaq (%r8,%r12), %rdi
addq %r10, %rsi
cmpq %rbx, %r8
jae 0x138c2
cmpq %r9, %rdi
jae 0x138c2
movq %r8, %rbp
movq %rdi, %rcx
movq 0x18(%rdi), %rdx
xorl %r8d, %r8d
xorl %edi, %edi
cmpq 0x18(%rbp), %rdx
setae %r8b
setb %dil
movq %rbp, %rdx
cmovbq %rcx, %rdx
shll $0x5, %r8d
addq %rbp, %r8
shll $0x5, %edi
addq %rcx, %rdi
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
jmp 0x13875
cmpq %rbx, %r8
jae 0x138e7
movups (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
leaq 0x20(%r8), %rcx
movq %rcx, %r8
cmpq %rbx, %rcx
jb 0x138c7
cmpq %r9, %rdi
jae 0x1390a
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 %r9, %rcx
jb 0x138ec
addq %r13, %r14
cmpq %r15, %r14
jb 0x13834
jmp 0x139af
testq %r15, %r15
jle 0x139af
movq (%rsp), %rcx
leaq (%rax,%rcx), %rdx
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0x13967
leaq 0x20(%rax), %r9
movq 0x38(%rax), %r11
leaq 0x20(%r10), %r8
leaq 0x40(%r10), %rdi
cmpq 0x18(%rax), %r11
jae 0x1397d
movups (%r9), %xmm0
movups 0x10(%r9), %xmm1
movups %xmm1, 0x10(%r10)
movups %xmm0, (%r10)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
jmp 0x13996
leaq 0x20(%r10), %rdi
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%r10)
movups %xmm0, (%r10)
jmp 0x1399f
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%r10)
movups %xmm0, (%r10)
movups (%r9), %xmm0
movups 0x10(%r9), %xmm1
movups %xmm1, 0x10(%r8)
movups %xmm0, (%r8)
addq $0x40, %rax
addq $-0x40, %rsi
movq %rdi, %r10
cmpq %rdx, %rax
jb 0x13931
movl $0x2, %r11d
movq 0x50(%rsp), %rcx
shlq %cl, %r11
incq %rcx
cmpq %r15, %r11
movq 0x48(%rsp), %rax
jb 0x137e0
cmpl $0x1, 0xc(%rsp)
movq 0x38(%rsp), %rbx
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rdi
movq (%rsp), %rsi
je 0x13a11
testq %r15, %r15
jle 0x13a11
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 0x139f3
addq $0x68, %rsp
testq %rbx, %rbx
je 0x13a25
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