	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_sift_down
_heap_sift_down:                        ## @heap_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, -44(%rbp)                 ## 4-byte Spill
	movq	_HN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.1:
	movl	%edi, %r15d
	movl	$1, %r14d
	movl	$2, %r12d
	movq	_H@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	%r12d, %ebx
	orl	$1, %ebx
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,8), %rdi
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %esi
	callq	_heap_cmp
	testq	%rax, %rax
	js	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %r12
	leaq	(,%r12,8), %rdi
	addq	(%r13), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_heap_cmp
	testq	%rax, %rax
	jns	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%r12,8), %rdx
	movq	%rdx, (%rax,%rcx,8)
	addl	%r12d, %r12d
	movq	_HN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %r14d
	cmpl	%eax, %r12d
	jle	LBB0_2
	jmp	LBB0_8
LBB0_6:
	movl	%r14d, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HN,4,2                         ## @HN
	.comm	_H,8,3                          ## @H
	.no_dead_strip	_heap_sift_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_sift_down
_heap_sift_down:                        ; @heap_sift_down
	.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
Lloh0:
	adrp	x22, _HN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_9
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	w24, #1
	mov	w25, #2
Lloh2:
	adrp	x23, _H@GOTPAGE
Lloh3:
	ldr	x23, [x23, _H@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, w8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	sxtw	x9, w25
	orr	x21, x9, #0x1
	add	x0, x8, x21, lsl #3
	add	x8, x8, w25, sxtw #3
	ldp	w2, w1, [x8]
	bl	_heap_cmp
	cmp	x0, #0
	csel	w21, w21, w25, lt
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x25
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	add	x0, x8, w21, sxtw #3
	mov	x1, x20
	mov	x2, x19
	bl	_heap_cmp
	tbz	x0, #63, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w21
	ldr	x9, [x23]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x9, w24, sxtw #3]
	lsl	w25, w21, #1
	ldr	w8, [x22]
	mov	x24, x21
	cmp	w25, w8
	b.le	LBB0_3
	b	LBB0_9
LBB0_8:
	mov	x21, x24
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HN,4,2                         ; @HN
	.comm	_H,8,3                          ; @H
	.no_dead_strip	_heap_sift_down
.subsections_via_symbols
