	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_bounded_heap
_make_bounded_heap:                     ## @make_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %r15d
	movq	8(%rdi), %rax
	movq	_TSS_INITIAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	16(%r12), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	20(%r12), %r15d
	setge	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_SERIAL
	movl	%eax, %edi
	callq	_Assert
	movq	%r12, %rdi
	callq	_reversedirection
	movl	$0, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	shlq	$2, %r15
	leaq	-36(%rbp), %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_tuplesort_heap_insert
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	addq	$4, %rbx
	cmpq	%rbx, %r15
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	20(%r12), %eax
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdx
	leaq	(%rdx,%rbx), %rsi
	movq	%r12, %rdi
	callq	_COMPARETUP
	movq	24(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	testq	%rax, %rax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_tuplesort_heap_replace_top
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_free_sort_tuple
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	xorl	%edi, %edi
	cmpl	20(%r12), %eax
	sete	%dil
	callq	_Assert
	movq	_TSS_BOUNDED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSS_INITIAL,8,3                ## @TSS_INITIAL
	.comm	_TSS_BOUNDED,8,3                ## @TSS_BOUNDED
	.no_dead_strip	_make_bounded_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_bounded_heap
_make_bounded_heap:                     ; @make_bounded_heap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w21, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _TSS_INITIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSS_INITIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #16]
	bl	_Assert
	ldr	w8, [x19, #20]
	cmp	w21, w8
	cset	w0, ge
	bl	_Assert
	mov	x0, x19
	bl	_SERIAL
	bl	_Assert
	mov	x0, x19
	bl	_reversedirection
	str	wzr, [x19]
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, #0
	mov	w8, #0
	lsl	x21, x21, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x20]
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_tuplesort_heap_insert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x20
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x19, #24]
	add	x1, x2, x20
	mov	x0, x19
	bl	_COMPARETUP
	ldr	x8, [x19, #24]
	add	x1, x8, x20
	cmp	x0, #0
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_tuplesort_heap_replace_top
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_free_sort_tuple
	bl	_CHECK_FOR_INTERRUPTS
	b	LBB0_3
LBB0_8:
	mov	w8, #0
LBB0_9:
	ldr	w9, [x19, #20]
	cmp	w8, w9
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _TSS_BOUNDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSS_BOUNDED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TSS_INITIAL,8,3                ; @TSS_INITIAL
	.comm	_TSS_BOUNDED,8,3                ; @TSS_BOUNDED
	.no_dead_strip	_make_bounded_heap
.subsections_via_symbols
