	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_bubble_up
_heap_bubble_up:                        ## @heap_bubble_up
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	(%r12,%r12), %r15d
	leal	(%r12,%r12), %ebx
	addl	$2, %ebx
	movq	(%rdi), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	orl	$1, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_heap_is_less
	movl	%ebx, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r13d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_heap_is_less
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_heap_swap
	leal	(%r13,%r13), %r15d
	leal	2(%r13,%r13), %ebx
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%r13d, %r12d
	cmpl	%eax, %ebx
	jl	LBB0_2
	jmp	LBB0_6
LBB0_1:
	movl	%r12d, %r13d
LBB0_6:
	orl	$1, %r15d
	cmpl	%eax, %r15d
	jge	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_heap_is_less
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_swap                      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heap_bubble_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_bubble_up
_heap_bubble_up:                        ; @heap_bubble_up
	.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	x21, x1
	mov	x19, x0
	lsl	w8, w1, #1
	add	w22, w8, #2
	ldr	x9, [x0]
	ldr	w9, [x9]
	cmp	w22, w9
	b.ge	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	orr	w20, w8, #0x1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_heap_is_less
	cmp	x0, #0
	csel	w20, w22, w20, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_heap_is_less
	cbnz	x0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_heap_swap
	lsl	w8, w20, #1
	add	w22, w8, #2
	ldr	x9, [x19]
	ldr	w9, [x9]
	mov	x21, x20
	cmp	w22, w9
	b.lt	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	x20, x21
LBB0_4:
	orr	w21, w8, #0x1
	cmp	w21, w9
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_heap_is_less
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	b	_heap_swap
LBB0_7:
	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
	.no_dead_strip	_heap_bubble_up
.subsections_via_symbols
