	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movl	%edx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert0
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %edx
	movl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rsi
	movq	(%r15,%rsi,8), %rsi
	cmpq	%rcx, (%rsi)
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rdi
	movq	%rsi, (%r15,%rdi,8)
	movl	%ebx, 8(%rsi)
	movl	%eax, %ebx
	cmpl	$1, %edx
	ja	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %eax
LBB0_6:
	cltq
	movq	%r14, (%r15,%rax,8)
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	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	x20, x2
	mov	x19, x1
	ldr	x21, [x0]
	mvn	w8, w2
	lsr	w0, w8, #31
	bl	_av_assert0
	cbz	w20, LBB0_4
; %bb.1:
	ldr	x9, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w20, #1
	asr	w8, w10, #1
	ldr	x11, [x21, w8, sxtw #3]
	ldr	x12, [x11]
	cmp	x12, x9
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x11, [x21, w20, sxtw #3]
	str	w20, [x11, #8]
	mov	x20, x8
	cmp	w10, #1
	b.hi	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w8, #0
	b	LBB0_6
LBB0_5:
	mov	x8, x20
LBB0_6:
	str	x19, [x21, w8, sxtw #3]
	str	w8, [x19, #8]
	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
