	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_sift
_heap_sift:                             ## @heap_sift
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leal	(%r15,%r15), %ebx
	movl	(%rdi), %eax
	cmpl	%eax, %ebx
	jle	LBB0_2
LBB0_7:
	movl	%r15d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	%ebx, %r13d
	orl	$1, %r13d
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	*8(%r12)
	testq	%rax, %rax
	js	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movslq	%r13d, %rbx
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	*8(%r12)
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	movslq	%r15d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	%ebx, %ebx
	movl	(%r12), %eax
	movl	%r13d, %r15d
	cmpl	%eax, %ebx
	jle	LBB0_2
LBB0_8:
	movq	16(%r12), %rax
	movslq	%r13d, %rcx
	movq	%r14, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heap_sift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_sift
_heap_sift:                             ; @heap_sift
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	lsl	w22, w2, #1
	ldr	w8, [x0]
	cmp	w22, w8
	b.le	LBB0_2
LBB0_1:
	mov	x23, x21
	b	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x20, #8]
	sxtw	x10, w22
	ldr	x0, [x9, w22, sxtw #3]
	orr	x23, x10, #0x1
	ldr	x1, [x9, x23, lsl #3]
	blr	x8
	cmp	x0, #0
	csel	w23, w23, w22, lt
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x22
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x20, #8]
	ldr	x1, [x9, w23, sxtw #3]
	mov	x0, x19
	blr	x8
	tbz	x0, #63, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w23
	ldr	x9, [x20, #16]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x9, w21, sxtw #3]
	lsl	w22, w23, #1
	ldr	w8, [x20]
	mov	x21, x23
	cmp	w22, w8
	b.le	LBB0_2
LBB0_7:
	ldr	x8, [x20, #16]
	str	x19, [x8, w23, sxtw #3]
	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	_heap_sift
.subsections_via_symbols
