	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_bounded_heap
_sort_bounded_heap:                     ## @sort_bounded_heap
	.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, %r15
	movl	(%rdi), %r14d
	movq	8(%rdi), %rax
	movq	_TSS_BOUNDED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	16(%r15), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	20(%r15), %r14d
	sete	%dil
	callq	_Assert
	movq	%r15, %rdi
	callq	_SERIAL
	movl	%eax, %edi
	callq	_Assert
	cmpl	$2, (%r15)
	jl	LBB0_3
## %bb.1:
	movq	32(%r15), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_tuplesort_heap_delete_top
	movq	32(%r15), %rax
	movslq	(%r15), %rcx
	movl	%ebx, (%rax,%rcx,4)
	cmpl	$1, (%r15)
	jg	LBB0_2
LBB0_3:
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_reversedirection
	movq	_TSS_SORTEDINMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$1, 24(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSS_BOUNDED,8,3                ## @TSS_BOUNDED
	.comm	_TSS_SORTEDINMEM,8,3            ## @TSS_SORTEDINMEM
	.no_dead_strip	_sort_bounded_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_bounded_heap
_sort_bounded_heap:                     ; @sort_bounded_heap
	.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	x19, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _TSS_BOUNDED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSS_BOUNDED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #16]
	bl	_Assert
	ldr	w8, [x19, #20]
	cmp	w20, w8
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_SERIAL
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x8]
	mov	x0, x19
	bl	_tuplesort_heap_delete_top
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19]
	str	w21, [x8, x9, lsl #2]
	ldr	w9, [x19]
	cmp	w9, #1
	b.gt	LBB0_2
LBB0_3:
	str	w20, [x19]
	mov	x0, x19
	bl	_reversedirection
Lloh3:
	adrp	x8, _TSS_SORTEDINMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSS_SORTEDINMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #24]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TSS_BOUNDED,8,3                ; @TSS_BOUNDED
	.comm	_TSS_SORTEDINMEM,8,3            ; @TSS_SORTEDINMEM
	.no_dead_strip	_sort_bounded_heap
.subsections_via_symbols
