	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_aggregate_qsort             ## -- Begin function dt_aggregate_qsort
	.p2align	4, 0x90
_dt_aggregate_qsort:                    ## @dt_aggregate_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
	movq	%rsi, %r9
	movq	_dt_revsort@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_dt_keysort@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	(%rdi), %rax
	movq	_DTRACEOPT_AGGSORTKEYPOS@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rax,%rdi,8), %rdi
	movq	_DTRACEOPT_AGGSORTREV@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r10
	movq	_DTRACEOPT_UNSET@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%ebx, %ebx
	cmpq	%rsi, (%rax,%r10,8)
	setne	%bl
	movl	%ebx, (%r11)
	movq	_INT_MAX@GOTPCREL(%rip), %r10
	xorl	%r11d, %r11d
	cmpq	(%r10), %rdi
	movl	%edi, %ebx
	cmovgl	%r11d, %ebx
	cmpq	%rsi, %rdi
	movq	_dt_keypos@GOTPCREL(%rip), %r15
	cmovel	%r11d, %ebx
	movq	_DTRACEOPT_AGGSORTKEY@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r10
	movl	(%r15), %r14d
	xorl	%edi, %edi
	cmpq	%rsi, (%rax,%r10,8)
	setne	%dil
	movl	%edi, (%r12)
	movl	%ebx, (%r15)
	je	LBB0_1
## %bb.2:
	movq	_dt_aggregate_varkeycmp@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_dt_aggregate_varvalcmp@GOTPCREL(%rip), %rax
LBB0_3:
	testq	%r8, %r8
	cmovneq	%r8, %rax
	movq	%r9, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_qsort
	movq	_dt_revsort@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_dt_keysort@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movl	%r14d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dt_revsort,4,2                 ## @dt_revsort
	.comm	_dt_keysort,4,2                 ## @dt_keysort
	.comm	_dt_keypos,4,2                  ## @dt_keypos
	.comm	_DTRACEOPT_AGGSORTKEYPOS,8,3    ## @DTRACEOPT_AGGSORTKEYPOS
	.comm	_DTRACEOPT_AGGSORTREV,8,3       ## @DTRACEOPT_AGGSORTREV
	.comm	_DTRACEOPT_UNSET,8,3            ## @DTRACEOPT_UNSET
	.comm	_DTRACEOPT_AGGSORTKEY,8,3       ## @DTRACEOPT_AGGSORTKEY
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_aggregate_qsort             ; -- Begin function dt_aggregate_qsort
	.p2align	2
_dt_aggregate_qsort:                    ; @dt_aggregate_qsort
	.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	x8, x3
	ldr	x9, [x0]
Lloh0:
	adrp	x19, _dt_revsort@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dt_revsort@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh2:
	adrp	x21, _dt_keysort@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dt_keysort@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh4:
	adrp	x23, _dt_keypos@GOTPAGE
Lloh5:
	ldr	x23, [x23, _dt_keypos@GOTPAGEOFF]
	ldr	w24, [x23]
Lloh6:
	adrp	x10, _DTRACEOPT_AGGSORTKEYPOS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DTRACEOPT_AGGSORTKEYPOS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
Lloh9:
	adrp	x11, _DTRACEOPT_AGGSORTREV@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DTRACEOPT_AGGSORTREV@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	x11, [x9, x11, lsl #3]
Lloh12:
	adrp	x12, _DTRACEOPT_UNSET@GOTPAGE
Lloh13:
	ldr	x12, [x12, _DTRACEOPT_UNSET@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x11, x12
	cset	w11, ne
Lloh15:
	adrp	x13, _DTRACEOPT_AGGSORTKEY@GOTPAGE
Lloh16:
	ldr	x13, [x13, _DTRACEOPT_AGGSORTKEY@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	ldr	x9, [x9, x13, lsl #3]
	str	w11, [x19]
Lloh18:
	adrp	x11, _INT_MAX@GOTPAGE
Lloh19:
	ldr	x11, [x11, _INT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x10, x11
	ccmp	x10, x12, #4, le
	csel	w10, wzr, w10, eq
Lloh21:
	adrp	x11, _dt_aggregate_varvalcmp@GOTPAGE
Lloh22:
	ldr	x11, [x11, _dt_aggregate_varvalcmp@GOTPAGEOFF]
Lloh23:
	adrp	x13, _dt_aggregate_varkeycmp@GOTPAGE
Lloh24:
	ldr	x13, [x13, _dt_aggregate_varkeycmp@GOTPAGEOFF]
	cmp	x9, x12
	csel	x9, x13, x11, ne
	cset	w11, ne
	str	w11, [x21]
	str	w10, [x23]
	cmp	x4, #0
	csel	x3, x9, x4, eq
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_qsort
	str	w20, [x19]
	str	w22, [x21]
	str	w24, [x23]
	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 AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dt_revsort,4,2                 ; @dt_revsort
	.comm	_dt_keysort,4,2                 ; @dt_keysort
	.comm	_dt_keypos,4,2                  ; @dt_keypos
	.comm	_DTRACEOPT_AGGSORTKEYPOS,8,3    ; @DTRACEOPT_AGGSORTKEYPOS
	.comm	_DTRACEOPT_AGGSORTREV,8,3       ; @DTRACEOPT_AGGSORTREV
	.comm	_DTRACEOPT_UNSET,8,3            ; @DTRACEOPT_UNSET
	.comm	_DTRACEOPT_AGGSORTKEY,8,3       ; @DTRACEOPT_AGGSORTKEY
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
