	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quicksort
_quicksort:                             ## @quicksort
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	cmpl	%edx, %ecx
	jle	LBB0_20
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r15
	movslq	%ecx, %rax
	imulq	%rsi, %rax
	addq	%rdi, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rax
	negq	%rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_quicksort
	movl	%r12d, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r12d
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	leal	-1(%rdx), %ebx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leal	1(%rdx), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%ecx, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_15
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	movslq	%ebx, %rbx
	movl	%ebx, %r12d
	negl	%r12d
	incq	%rbx
	imulq	%r13, %rbx
	addq	%r15, %rbx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r15d, %eax
	addl	%r12d, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	decl	%r12d
	addq	%r13, %rbx
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r12d, %eax
	negl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	notl	%r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%r15d, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movslq	%r14d, %rbx
	movq	%r13, %r15
	imulq	%rbx, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	decq	%rbx
	imulq	%r13, %rbx
	addq	%rax, %rbx
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leal	-1(%r13), %r14d
	addq	%rcx, %r15
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	addq	%rcx, %rbx
	cmpl	%r13d, -92(%rbp)                ## 4-byte Folded Reload
	movl	%r14d, %r13d
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%r14d, %ebx
	jge	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_exch
	movslq	%ebx, %rdi
	imulq	%r13, %rdi
	addq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	callq	_exch
	jmp	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	callq	_exch
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_exch
	movl	%r12d, %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %ebx
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_exch
	incl	%ebx
	decl	%r14d
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r12d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_exch
	incl	%r12d
	decl	%ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_18
	jmp	LBB0_19
LBB0_20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_quicksort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quicksort
_quicksort:                             ; @quicksort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w3, w2
	b.le	LBB0_21
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x26, x0
	sxtw	x8, w20
	madd	x24, x8, x1, x0
	sub	w8, w3, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	neg	x23, x1
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x27
	mov	x4, x19
	bl	_quicksort
	mov	x2, x26
	cmp	w26, w20
	mov	x26, x22
	b.ge	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	sub	w9, w2, #1
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	add	w25, w2, #1
	mov	x27, x20
	mov	x8, x20
	stp	w20, w9, [sp, #12]              ; 8-byte Folded Spill
	mov	x28, x9
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	madd	x1, x21, x8, x22
	mov	x0, x24
	blr	x19
	cbz	w0, LBB0_16
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	sxtw	x8, w28
	add	w22, w28, #1
	madd	x8, x21, x8, x21
	add	x28, x26, x8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w20, w22
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	x0, x28
	mov	x1, x24
	blr	x19
	add	w22, w22, #1
	add	x28, x28, x21
	tbnz	w0, #31, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	w8, w22, #1
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sub	w8, w22, #2
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	x8, x20
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	sxtw	x8, w27
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sub	x8, x8, #1
	mul	x26, x21, x8
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	mov	x28, x27
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x1, x22, x26
	mov	x0, x24
	blr	x19
	sub	w27, w28, #1
	add	x22, x22, x23
	tbz	w0, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	cmp	w25, w28
	mov	x28, x27
	b.ne	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	cmp	w28, w27
	b.ge	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	bl	_exch
	mov	x8, x28
	sxtw	x8, w8
	madd	x0, x8, x21, x26
	mov	x1, x24
	blr	x19
	cbnz	w0, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	add	w2, w2, #1
	mov	x0, x26
	mov	x1, x21
	str	w2, [sp, #16]                   ; 4-byte Folded Spill
	mov	x3, x28
	bl	_exch
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	sub	w3, w3, #1
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	bl	_exch
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	mov	x3, x20
	bl	_exch
	ldp	w26, w27, [sp, #16]             ; 8-byte Folded Reload
	ldr	w25, [sp, #4]                   ; 4-byte Folded Reload
	mov	x28, x25
	cmp	w25, w26
	b.ge	LBB0_19
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	bl	_exch
	add	w28, w28, #1
	sub	w27, w27, #1
	cmp	w26, w28
	b.ne	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w26, w8, #2
	ldp	w8, w9, [sp, #8]                ; 8-byte Folded Reload
	mov	x28, x8
	cmp	w8, w9
	b.le	LBB0_2
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x28
	bl	_exch
	add	w26, w26, #1
	sub	w28, w28, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.gt	LBB0_20
	b	LBB0_2
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_quicksort
.subsections_via_symbols
