	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapifyports
_heapifyports:                          ## @heapifyports
	.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, %r12
	movq	%rdi, %r15
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r12), %r13
	leaq	(%r12,%r12), %r14
	incq	%r14
	cmpq	%rsi, %r14
	jae	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15,%r12,8), %rax
	movl	(%rax), %edi
	movq	(%r15,%r14,8), %rax
	movl	(%rax), %esi
	callq	_portcompare
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r14
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rbx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	2(%r13), %r14
	cmpq	%rsi, %r14
	jae	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15,%rbx,8), %rax
	movl	(%rax), %edi
	movq	16(%r15,%r13,8), %rax
	movl	(%rax), %esi
	callq	_portcompare
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r14
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rbx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r12, %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15,%r12,8), %rax
	movq	(%r15,%rbx,8), %rcx
	movq	%rcx, (%r15,%r12,8)
	movq	%rax, (%r15,%rbx,8)
	movq	%rbx, %r12
	jmp	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heapifyports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapifyports
_heapifyports:                          ; @heapifyports
	.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
	mov	x22, x2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w23, #1
	bfi	x23, x21, #1, #63
	cmp	x23, x19
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, x21, lsl #3]
	ldr	w0, [x8]
	ldr	x8, [x20, x23, lsl #3]
	ldr	w1, [x8]
	bl	_portcompare
	cmp	x0, #0
	csel	x22, x23, x21, lt
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	lsl	x8, x21, #1
	add	x23, x8, #2
	cmp	x23, x19
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, x22, lsl #3]
	ldr	w0, [x8]
	ldr	x8, [x20, x23, lsl #3]
	ldr	w1, [x8]
	bl	_portcompare
	cmp	x0, #0
	csel	x22, x23, x22, lt
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x22, x21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	x8, x21, #3
	ldr	x9, [x20, x8]
	lsl	x10, x22, #3
	ldr	x11, [x20, x10]
	str	x11, [x20, x8]
	str	x9, [x20, x10]
	mov	x21, x22
	b	LBB0_1
LBB0_7:
	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	_heapifyports
.subsections_via_symbols
