	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sift_down
_sift_down:                             ## @sift_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
	movl	%esi, %r14d
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_left_offset
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_right_offset
	movl	%eax, %r12d
	movl	(%r15), %eax
	xorl	%ebx, %ebx
	cmpl	%eax, %r13d
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %esi
	movl	16(%r15), %edx
	callq	*8(%r15)
	movq	%rax, %rbx
	sarq	$63, %rbx
	andl	%r13d, %ebx
	movl	(%r15), %eax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%r12d, %r12
	movl	(%rax,%r12,4), %esi
	movl	16(%r15), %edx
	callq	*8(%r15)
	testq	%rax, %rax
	jns	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%rax,%r12,4), %esi
	movl	16(%r15), %edx
	callq	*8(%r15)
	testq	%rax, %rax
	jns	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_swap_nodes
	movl	%ebx, %r14d
	jmp	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sift_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sift_down
_sift_down:                             ; @sift_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	x20, x1
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_left_offset
	mov	x23, x0
	mov	x0, x20
	bl	_right_offset
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	ldr	w0, [x9, w20, sxtw #2]
	ldr	w1, [x9, w23, sxtw #2]
	ldr	w2, [x19, #16]
	blr	x8
	asr	x8, x0, #63
	and	w22, w8, w23
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w22, #0
	cmp	w21, w8
	b.ge	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	ldr	w0, [x9, w20, sxtw #2]
	ldr	w1, [x9, w21, sxtw #2]
	ldr	w2, [x19, #16]
	blr	x8
	tbz	x0, #63, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x8, w21
	ldr	x9, [x19, #8]
	ldr	x10, [x19, #24]
	ldr	w0, [x10, w23, sxtw #2]
	ldr	w1, [x10, x8, lsl #2]
	ldr	w2, [x19, #16]
	blr	x9
	tbz	x0, #63, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x21
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_swap_nodes
	mov	x20, x22
	b	LBB0_1
LBB0_10:
	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
	.no_dead_strip	_sift_down
.subsections_via_symbols
