	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_min_heap_shift_down_           ## -- Begin function min_heap_shift_down_
	.p2align	4, 0x90
_min_heap_shift_down_:                  ## @min_heap_shift_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	%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
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	leal	(%r12,%r12), %r13d
	addl	$2, %r13d
	movl	(%rdi), %ecx
	cmpl	%ecx, %r13d
	jbe	LBB0_2
LBB0_7:
	movl	%r12d, %ebx
	jmp	LBB0_8
LBB0_2:
	leal	(%r12,%r12), %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	$1, %dl
	cmpl	%ecx, %r13d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rcx
	movl	%r13d, %edx
	movq	(%rcx,%rdx,8), %rdi
	orl	$1, %eax
	movq	(%rcx,%rax,8), %rsi
	callq	_min_heap_elem_greater
	testq	%rax, %rax
	setne	%dl
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%dl, %eax
	movl	%r13d, %ebx
	subl	%eax, %ebx
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_min_heap_elem_greater
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movl	%r12d, %edx
	movq	%rcx, (%rax,%rdx,8)
	movl	%r12d, (%rcx)
	leal	(%rbx,%rbx), %eax
	leal	(%rbx,%rbx), %r13d
	addl	$2, %r13d
	movl	(%r15), %ecx
	movl	%ebx, %r12d
	cmpl	%ecx, %r13d
	jbe	LBB0_3
LBB0_8:
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	movq	%r14, (%rax,%rcx,8)
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_min_heap_shift_down_           ; -- Begin function min_heap_shift_down_
	.p2align	2
_min_heap_shift_down_:                  ; @min_heap_shift_down_
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	lsl	w8, w1, #1
	add	w22, w8, #2
	ldr	w9, [x0]
	cmp	w22, w9
	b.ls	LBB0_2
LBB0_1:
	mov	x23, x21
	b	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #8]
	ldr	x0, [x9, w22, uxtw #3]
	orr	w8, w8, #0x1
	ldr	x1, [x9, w8, uxtw #3]
	bl	_min_heap_elem_greater
	cmp	x0, #0
	cset	w8, ne
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w23, w22, w8
	ldr	x8, [x20, #8]
	ldr	x1, [x8, w23, uxtw #3]
	mov	x0, x19
	bl	_min_heap_elem_greater
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x23, lsl #3]
	str	x9, [x8, w21, uxtw #3]
	str	w21, [x9]
	lsl	w8, w23, #1
	add	w22, w8, #2
	ldr	w9, [x20]
	mov	x21, x23
	cmp	w22, w9
	b.ls	LBB0_2
LBB0_7:
	ldr	x8, [x20, #8]
	str	x19, [x8, w23, uxtw #3]
	str	w23, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
