	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qb_sort_rev                    ## -- Begin function qb_sort_rev
	.p2align	4, 0x90
_qb_sort_rev:                           ## @qb_sort_rev
	.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
	testl	%esi, %esi
	jle	LBB0_17
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_qb_sort_rev
	movslq	%r12d, %rax
	leaq	(%r15,%rax,8), %r15
	subl	%r12d, %r14d
	jle	LBB0_17
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
	movl	%r14d, %eax
	shrl	%eax
	movq	(%r15,%rax,8), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %r8d
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%esi, %r12d
	jg	LBB0_16
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	%r12d, %rcx
	leaq	(%r15,%rcx,8), %rdx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=3
	incl	%r12d
	addq	$8, %rdx
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rdx), %rdi
	cmpl	%eax, (%rdi)
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=3
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	cmpl	%r8d, 4(%rdi)
	jl	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movslq	%esi, %rcx
	leaq	(%r15,%rcx,8), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=3
	decl	%esi
	addq	$-8, %rcx
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rcx), %rbx
	cmpl	%eax, (%rbx)
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpl	%r8d, 4(%rbx)
	jg	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%esi, %r12d
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	incl	%r12d
	movq	%rbx, (%rdx)
	decl	%esi
	movq	%rdi, (%rcx)
	jmp	LBB0_15
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qb_sort_rev                    ; -- Begin function qb_sort_rev
	.p2align	2
_qb_sort_rev:                           ; @qb_sort_rev
	.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
	cmp	w1, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_qb_sort_rev
	add	x20, x20, w21, sxtw #3
	sub	w19, w19, w21
	cmp	w19, #0
	b.le	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	mov	w21, #0
	lsr	w8, w19, #1
	ldr	x9, [x20, w8, uxtw #3]
	ldp	w8, w9, [x9]
	mov	x1, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	w21, w1
	b.gt	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	sbfiz	x10, x21, #3, #32
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=3
	add	w21, w21, #1
	add	x10, x10, #8
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x11, [x20, x10]
	ldr	w12, [x11]
	cmp	w12, w8
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	w12, [x11, #4]
	cmp	w12, w9
	b.lt	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	sbfiz	x12, x1, #3, #32
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	sub	w1, w1, #1
	sub	x12, x12, #8
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x13, [x20, x12]
	ldr	w14, [x13]
	cmp	w14, w8
	b.lo	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	w14, [x13, #4]
	cmp	w14, w9
	b.gt	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w21, w1
	b.gt	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=2
	add	w21, w21, #1
	str	x13, [x20, x10]
	sub	w1, w1, #1
	str	x11, [x20, x12]
	b	LBB0_4
LBB0_17:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
