	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_qsort                       ## -- Begin function my_qsort
	.p2align	4, 0x90
_my_qsort:                              ## @my_qsort
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, %edx
	jle	LBB0_14
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leal	1(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%rdi), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_my_qsort
	movl	%r15d, %r12d
	cmpl	%r14d, %r15d
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	movq	_QL@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_QR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_rand
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	%r12d, %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	movl	%r14d, %edx
	movl	%r12d, %r15d
	cmpl	%r14d, %r12d
	jg	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %eax
	cltq
	movsd	(%rbx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movl	%r12d, %r15d
	movl	%r14d, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%edx, %eax
	cmpl	%edx, %r15d
	jg	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_9 Depth 3
	movslq	%r15d, %rcx
	leaq	(%rbx,%rcx,8), %rsi
	movl	%r15d, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movsd	(%rsi), %xmm1                   ## xmm1 = mem[0],zero
	incl	%ecx
	addq	$8, %rsi
	ucomisd	%xmm1, %xmm0
	ja	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	-1(%rcx), %r15d
	movslq	%eax, %rdx
	leaq	(,%rdx,8), %rdi
	addq	%r13, %rdi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movsd	-8(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	addq	$-8, %rdi
	decl	%eax
	ucomisd	%xmm0, %xmm2
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	leal	1(%rax), %edx
	cmpl	%edx, %r15d
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movsd	%xmm2, -8(%rsi)
	movsd	%xmm1, (%rdi)
	movl	%eax, %edx
	movl	%ecx, %r15d
	jmp	LBB0_12
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL,4,2                         ## @QL
	.comm	_QR,4,2                         ## @QR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_qsort                       ; -- Begin function my_qsort
	.p2align	2
_my_qsort:                              ; @my_qsort
	.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
	cmp	w2, w1
	b.le	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	w22, w2, #1
	add	x23, x0, #8
Lloh0:
	adrp	x24, _QL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _QR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _QR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_my_qsort
	mov	x21, x26
	cmp	w26, w19
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w8, w21
	ccmp	w9, w19, #4, lt
	b.gt	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_rand
	mov	x2, x19
	mov	x26, x21
	cmp	w21, w19
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w22, w21
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w8, w8, w21
	ldr	d0, [x20, w8, sxtw #3]
	mov	x26, x21
	mov	x8, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x8, x2
	cmp	w26, w2
	b.gt	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_10 Depth 3
	add	x9, x20, w26, sxtw #3
	mov	x10, x26
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	d1, [x9], #8
	add	w10, w10, #1
	fcmp	d1, d0
	b.mi	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w10, #1
	add	x11, x23, w8, sxtw #3
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	d2, [x11, #-8]!
	sub	w8, w8, #1
	fcmp	d2, d0
	b.gt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w2, w8, #1
	cmp	w26, w2
	b.gt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	stur	d2, [x9, #-8]
	str	d1, [x11]
	mov	x2, x8
	mov	x26, x10
	b	LBB0_6
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QL,4,2                         ; @QL
	.comm	_QR,4,2                         ; @QR
.subsections_via_symbols
