	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simplesort
_simplesort:                            ## @simplesort
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$2, %esi
	jl	LBB0_14
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movslq	%edx, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	-1(%rcx), %eax
	cmpl	$2, %ecx
	movl	%eax, %esi
	jle	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	jbe	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movq	-8(%r12), %rsi
	movq	(%r12), %rdi
	leaq	(%rdi,%r13,8), %rdx
	leaq	(%rsi,%r13,8), %rax
	movq	(%rdi,%r13,8), %rcx
	movq	(%r15,%rcx,8), %rcx
	cmpq	%r14, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %r8
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rax), %rbx
	cmpq	(%r15,%rbx,8), %rcx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	addq	$8, %rax
	movq	8(%rdx), %rcx
	addq	$8, %rdx
	movq	(%r15,%rcx,8), %rcx
	cmpq	%r14, %rcx
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rcx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r8, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rax), %rax
	cmpq	(%r15,%rax,8), %rcx
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	addq	$-8, %r12
	callq	_swap
	cmpq	%rbx, %r12
	ja	LBB0_4
	jmp	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_simplesort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simplesort
_simplesort:                            ; @simplesort
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w1, #2
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	sxtw	x8, w2
	lsl	x23, x8, #3
	mov	x24, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #2
	mov	x22, x25
	b.le	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	add	x24, x24, #8
	sub	w25, w22, #1
	cmp	x24, x21
	b.ls	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	ldr	x0, [x26]
	ldr	x1, [x26, #-8]!
	add	x2, x0, x23
	add	x8, x1, x23
	ldr	x9, [x2]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, x9, lsl #3]
	cmp	x9, x19
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x10, [x8]
	ldr	x10, [x20, x10, lsl #3]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x9, [x2, #8]!
	add	x8, x8, #8
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x9, x19
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	bl	_swap
	cmp	x26, x21
	b.hi	LBB0_5
	b	LBB0_2
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_simplesort
.subsections_via_symbols
