	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SortAndUniqItems
_SortAndUniqItems:                      ## @SortAndUniqItems
	.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
	movq	%rsi, %r12
	movl	%edi, %ebx
	callq	_GETOPERAND
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_GETQUERY
	movq	%rax, %rbx
	movl	(%r12), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rax, %r15
	movl	(%r12), %edx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	_QI_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leal	-1(%rdx), %r8d
	testb	$3, %dl
	je	LBB0_3
## %bb.4:
	movl	%edx, %eax
	andl	$3, %eax
	xorl	%edi, %edi
	movq	%r15, %rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
	incq	%rdi
	cmpl	%edi, %eax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, (%rsi)
	addq	$8, %rsi
	jmp	LBB0_7
LBB0_8:
	subl	%edi, %edx
	cmpl	$3, %r8d
	jae	LBB0_10
	jmp	LBB0_19
LBB0_1:
	movq	%r15, %rsi
	jmp	LBB0_19
LBB0_3:
	movq	%r15, %rsi
	cmpl	$3, %r8d
	jae	LBB0_10
LBB0_19:
	subq	%r15, %rsi
	shrq	$3, %rsi
	movl	%esi, (%r12)
	cmpl	$2, %esi
	jl	LBB0_26
## %bb.20:
	movq	_compareQueryOperand@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	movq	%r14, %r8
	callq	_qsort_arg
	movslq	(%r12), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	cmpq	$2, %rax
	jl	LBB0_25
## %bb.21:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	leaq	8(%r13), %rbx
	movl	$16, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$32, %rbx
	testl	%edx, %edx
	je	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rcx, 8(%rbx)
	je	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rcx, 16(%rbx)
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	16(%rbx), %rax
	movq	%rax, (%rsi)
	addq	$8, %rsi
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	$-4, %edx
	cmpq	%rcx, 24(%rbx)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	24(%rbx), %rax
	movq	%rax, (%rsi)
	addq	$8, %rsi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, (%rsi)
	addq	$8, %rsi
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	8(%rbx), %rax
	movq	%rax, (%rsi)
	addq	$8, %rsi
	cmpq	%rcx, 16(%rbx)
	je	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$8, %rbx
	movq	%r15, %rax
	sarq	$3, %rax
	movslq	(%r12), %rcx
	addq	$8, %r15
	cmpq	%rcx, %rax
	jge	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_compareQueryOperand
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%rbx), %rax
	movq	%rax, 8(%r13)
	addq	$8, %r13
	jmp	LBB0_24
LBB0_25:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	subq	%r15, %r13
	addq	$8, %r13
	shrq	$3, %r13
	movl	%r13d, (%r12)
LBB0_26:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QI_VAL,8,3                     ## @QI_VAL
	.no_dead_strip	_SortAndUniqItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SortAndUniqItems
_SortAndUniqItems:                      ; @SortAndUniqItems
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_GETOPERAND
	mov	x20, x0
	mov	x0, x21
	bl	_GETQUERY
	mov	x22, x0
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_palloc
	mov	x21, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _QI_VAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QI_VAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	mov	x9, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #8
	cbz	w8, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	ldr	x11, [x22]
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x22, [x9], #8
	b	LBB0_2
LBB0_5:
	mov	x9, x21
LBB0_6:
	sub	x8, x9, x21
	lsr	x1, x8, #3
	str	w1, [x19]
	cmp	w1, #2
	b.lt	LBB0_13
; %bb.7:
Lloh3:
	adrp	x3, _compareQueryOperand@GOTPAGE
Lloh4:
	ldr	x3, [x3, _compareQueryOperand@GOTPAGEOFF]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #8
	mov	x4, x20
	bl	_qsort_arg
	ldrsw	x8, [x19]
	mov	x23, x21
	cmp	x8, #2
	b.lt	LBB0_12
; %bb.8:
	add	x22, x21, #8
	mov	w24, #16
	mov	x23, x21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #8
	ldrsw	x8, [x19]
	cmp	x8, x24, asr #3
	add	x24, x24, #8
	b.le	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_compareQueryOperand
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
	str	x8, [x23, #8]!
	b	LBB0_9
LBB0_12:
	sub	x8, x23, x21
	add	x8, x8, #8
	lsr	x8, x8, #3
	str	w8, [x19]
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QI_VAL,8,3                     ; @QI_VAL
	.no_dead_strip	_SortAndUniqItems
.subsections_via_symbols
