	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unsort
_unsort:                                ## @unsort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	1(%r12), %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_xcalloc
	testl	%r12d, %r12d
	jle	LBB0_20
## %bb.1:
	movl	%r15d, %r9d
	leaq	-1(%r9), %r8
	movl	$1, %ecx
	cmpl	$2, %r15d
	je	LBB0_4
## %bb.2:
	leaq	40(%r14), %rdx
	movq	%r8, %r10
	andq	$-2, %r10
	negq	%r10
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-16(%rdx), %edi
	movq	-24(%rdx), %rsi
	movl	%edi, (%rax,%rsi,4)
	movl	(%rdx), %esi
	movq	-8(%rdx), %rdi
	movl	%esi, (%rax,%rdi,4)
	addq	$32, %rdx
	leaq	(%r10,%rcx), %rsi
	addq	$2, %rsi
	addq	$2, %rcx
	cmpq	$1, %rsi
	jne	LBB0_3
LBB0_4:
	testb	$1, %r8b
	je	LBB0_6
## %bb.5:
	shlq	$4, %rcx
	movl	8(%r14,%rcx), %edx
	movq	(%r14,%rcx), %rcx
	movl	%edx, (%rax,%rcx,4)
LBB0_6:
	movl	$1, %edx
	cmpq	$8, %r8
	jb	LBB0_16
## %bb.7:
	movq	%rbx, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.8:
	movq	%r8, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpq	$24, %rsi
	jae	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	4(%rax,%rsi,4), %xmm0
	movups	20(%rax,%rsi,4), %xmm1
	movups	%xmm0, 4(%rbx,%rsi,4)
	movups	%xmm1, 20(%rbx,%rsi,4)
	movups	36(%rax,%rsi,4), %xmm0
	movups	52(%rax,%rsi,4), %xmm1
	movups	%xmm0, 36(%rbx,%rsi,4)
	movups	%xmm1, 52(%rbx,%rsi,4)
	movups	68(%rax,%rsi,4), %xmm0
	movups	84(%rax,%rsi,4), %xmm1
	movups	%xmm0, 68(%rbx,%rsi,4)
	movups	%xmm1, 84(%rbx,%rsi,4)
	movups	100(%rax,%rsi,4), %xmm0
	movups	116(%rax,%rsi,4), %xmm1
	movups	%xmm0, 100(%rbx,%rsi,4)
	movups	%xmm1, 116(%rbx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_11
LBB0_12:
	testq	%rcx, %rcx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rsi,4), %rdi
	orq	$4, %rdi
	movups	(%rax,%rdi), %xmm0
	movups	16(%rax,%rdi), %xmm1
	movups	%xmm0, (%rbx,%rdi)
	movups	%xmm1, 16(%rbx,%rdi)
	addq	$8, %rsi
	decq	%rcx
	jne	LBB0_13
LBB0_14:
	cmpq	%rdx, %r8
	je	LBB0_20
## %bb.15:
	orq	$1, %rdx
LBB0_16:
	movl	%r9d, %esi
	subl	%edx, %esi
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r9, %rcx
	andq	$3, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %edi
	movl	%edi, (%rbx,%rdx,4)
	incq	%rdx
	decq	%rsi
	jne	LBB0_17
LBB0_18:
	cmpq	$3, %rcx
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	movl	4(%rax,%rdx,4), %ecx
	movl	%ecx, 4(%rbx,%rdx,4)
	movl	8(%rax,%rdx,4), %ecx
	movl	%ecx, 8(%rbx,%rdx,4)
	movl	12(%rax,%rdx,4), %ecx
	movl	%ecx, 12(%rbx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_19
LBB0_20:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unsort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unsort
_unsort:                                ; @unsort
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	w19, w1, #1
	mov	x0, x19
	mov	w1, #4
	bl	_xcalloc
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.1:
	add	x9, x21, #24
	sub	x8, x19, #1
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	ldur	x12, [x9, #-8]
	str	w11, [x0, x12, lsl #2]
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.3:
	mov	w9, #1
	cmp	x8, #16
	b.lo	LBB0_8
; %bb.4:
	sub	x10, x20, x0
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.5:
	and	x10, x8, #0xfffffffffffffff0
	orr	x9, x10, #0x1
	add	x11, x20, #36
	add	x12, x0, #36
	mov	x13, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x10
	b.eq	LBB0_10
LBB0_8:
	lsl	x10, x9, #2
	add	x8, x20, x10
	add	x10, x0, x10
	sub	x9, x19, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	str	w11, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unsort
.subsections_via_symbols
