	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_heap_sort                ## -- Begin function cache_heap_sort
	.p2align	4, 0x90
_cache_heap_sort:                       ## @cache_heap_sort
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	cmpl	$2, %r14d
	jl	LBB0_3
## %bb.1:
	movl	%r14d, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	8(%rcx), %r15
	leal	-1(%rax), %edx
	movl	%edx, (%rbx)
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_heap_sift
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rax
	movq	%r15, 8(%rcx,%rax,8)
	cmpq	$1, %rax
	jg	LBB0_2
LBB0_3:
	movl	$0, (%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_cache_heap_sort                ; -- Begin function cache_heap_sort
	.p2align	2
_cache_heap_sort:                       ; @cache_heap_sort
	.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
	mov	x20, x0
	ldr	w19, [x0]
	cmp	w19, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x8, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x21, [x9, #8]
	sub	w10, w8, #1
	str	w10, [x20]
	ldr	x1, [x9, w8, uxtw #3]
	mov	x0, x20
	mov	w2, #1
	bl	_heap_sift
	ldr	x9, [x20, #8]
	ldr	w8, [x20]
	add	w10, w8, #1
	str	x21, [x9, w10, sxtw #3]
	cmp	w8, #1
	b.gt	LBB0_2
LBB0_3:
	str	wzr, [x20]
	mov	x0, x19
	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
