	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_downheap
_frame_downheap:                        ## @frame_downheap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx), %r12d
	incl	%r12d
	cmpl	%r8d, %r12d
	jge	LBB0_9
## %bb.1:
	movq	%rdx, %r13
	leal	(%rbx,%rbx), %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %r15d
	cmpl	%r8d, %r15d
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	movq	(%r13,%rax,8), %rsi
	movslq	%r15d, %rax
	movq	(%r13,%rax,8), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %r15
	movq	(%r13,%r15,8), %rsi
	movslq	%r14d, %rbx
	movq	(%r13,%rbx,8), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13,%r15,8), %rdi
	movq	(%r13,%rbx,8), %rsi
	callq	_SWAP
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r15d
	addl	%ebx, %r15d
	leal	(%rbx,%rbx), %r12d
	incl	%r12d
	movl	%r14d, %ebx
	cmpl	%r8d, %r12d
	jl	LBB0_2
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_frame_downheap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_downheap
_frame_downheap:                        ; @frame_downheap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w24, #1
	bfi	w24, w3, #1, #31
	cmp	w24, w4
	b.ge	LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	lsl	w8, w3, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w25, w8, #2
	cmp	w25, w19
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x20, w24, sxtw #3]
	ldr	x2, [x20, w25, sxtw #3]
	mov	x0, x22
	blr	x21
	cmp	x0, #0
	csel	w25, w25, w24, lt
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x20, w23, sxtw #3]
	ldr	x2, [x20, w25, sxtw #3]
	mov	x0, x22
	blr	x21
	tbz	x0, #63, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w23
	sxtw	x9, w25
	ldr	x0, [x20, x8, lsl #3]
	ldr	x1, [x20, x9, lsl #3]
	bl	_SWAP
	lsl	w8, w25, #1
	mov	w24, #1
	bfi	w24, w25, #1, #31
	mov	x23, x25
	cmp	w24, w19
	b.lt	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_frame_downheap
.subsections_via_symbols
