	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_bubble_down
_heap_bubble_down:                      ## @heap_bubble_down
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	%edx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert0
	movl	(%r15), %eax
	leal	(%rbx,%rbx), %edx
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_10
## %bb.1:
	leal	(%rbx,%rbx), %esi
	movq	(%r14), %r8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %esi
	cmpl	%eax, %esi
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%esi, %rdi
	movq	(%r12,%rdi,8), %rdi
	movq	(%rdi), %rdi
	movslq	%edx, %rcx
	movq	(%r12,%rcx,8), %rcx
	cmpq	(%rcx), %rdi
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edi, %rcx
	movq	(%r12,%rcx,8), %rdx
	cmpq	(%rdx), %r8
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rcx
	movq	%rdx, (%r12,%rcx,8)
	movl	%ecx, 8(%rdx)
	leal	(%rdi,%rdi), %esi
	leal	(%rdi,%rdi), %edx
	incl	%edx
	movl	%edi, %ebx
	cmpl	%eax, %edx
	jl	LBB0_2
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %edi
LBB0_11:
	movslq	%edi, %rax
	movq	%r14, (%r12,%rax,8)
	movl	%eax, 8(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heap_bubble_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_bubble_down
_heap_bubble_down:                      ; @heap_bubble_down
	.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
	mov	x21, x0
	ldr	x22, [x0, #8]
	mvn	w8, w2
	lsr	w0, w8, #31
	bl	_av_assert0
	ldr	w8, [x21]
	mov	w10, #1
	bfi	w10, w20, #1, #31
	cmp	w10, w8
	b.ge	LBB0_7
; %bb.1:
	lsl	w12, w20, #1
	ldr	x9, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w12, #2
	cmp	w11, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x22, w11, sxtw #3]
	ldr	x12, [x12]
	ldr	x13, [x22, w10, sxtw #3]
	ldr	x13, [x13]
	cmp	x12, x13
	csel	w11, w11, w10, lt
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x11, x10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x22, w11, sxtw #3]
	ldr	x12, [x10]
	cmp	x9, x12
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x10, [x22, w20, sxtw #3]
	str	w20, [x10, #8]
	lsl	w12, w11, #1
	mov	w10, #1
	bfi	w10, w11, #1, #31
	mov	x20, x11
	cmp	w10, w8
	b.lt	LBB0_2
	b	LBB0_8
LBB0_7:
	mov	x11, x20
LBB0_8:
	str	x19, [x22, w11, sxtw #3]
	str	w11, [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_down
.subsections_via_symbols
