	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_populate_ppn_set
_qp_populate_ppn_set:                   ## @qp_populate_ppn_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_vmci_use_ppn64
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%r14), %rsi
	movl	(%r14), %edx
	shll	$3, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movslq	(%r14), %rdi
	shlq	$5, %rdi
	addq	%rbx, %rdi
	movq	8(%r14), %rsi
	movl	4(%r14), %edx
	shll	$3, %edx
	callq	_memcpy
LBB0_2:
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movslq	(%r14), %r8
	testq	%r8, %r8
	jle	LBB0_18
## %bb.4:
	movl	%r8d, %r9d
	movq	16(%r14), %rdx
	xorl	%esi, %esi
	cmpl	$4, %r9d
	jb	LBB0_14
## %bb.5:
	movq	%rbx, %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jb	LBB0_14
## %bb.6:
	movl	%r9d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rcx
	movq	%rcx, %rax
	shrq	$2, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$12, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rcx,8), %xmm0
	movups	16(%rdx,%rcx,8), %xmm1
	movups	%xmm0, (%rbx,%rcx,8)
	movups	%xmm1, 16(%rbx,%rcx,8)
	movups	32(%rdx,%rcx,8), %xmm0
	movups	48(%rdx,%rcx,8), %xmm1
	movups	%xmm0, 32(%rbx,%rcx,8)
	movups	%xmm1, 48(%rbx,%rcx,8)
	movups	64(%rdx,%rcx,8), %xmm0
	movups	80(%rdx,%rcx,8), %xmm1
	movups	%xmm0, 64(%rbx,%rcx,8)
	movups	%xmm1, 80(%rbx,%rcx,8)
	movups	96(%rdx,%rcx,8), %xmm0
	movups	112(%rdx,%rcx,8), %xmm1
	movups	%xmm0, 96(%rbx,%rcx,8)
	movups	%xmm1, 112(%rbx,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rax
	jne	LBB0_9
LBB0_10:
	testq	%r10, %r10
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%rcx,8), %rax
	addq	$16, %rax
	leaq	(%rdx,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rdi), %xmm0
	movups	(%rcx,%rdi), %xmm1
	movups	%xmm0, -16(%rax,%rdi)
	movups	%xmm1, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_12
LBB0_13:
	cmpq	%r9, %rsi
	je	LBB0_18
LBB0_14:
	movq	%rsi, %rax
	notq	%rax
	addq	%r9, %rax
	movq	%r9, %rcx
	andq	$3, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movq	%rdi, (%rbx,%rsi,8)
	incq	%rsi
	decq	%rcx
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %rax
	jb	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	movq	%rax, (%rbx,%rsi,8)
	movq	8(%rdx,%rsi,8), %rax
	movq	%rax, 8(%rbx,%rsi,8)
	movq	16(%rdx,%rsi,8), %rax
	movq	%rax, 16(%rbx,%rsi,8)
	movq	24(%rdx,%rsi,8), %rax
	movq	%rax, 24(%rbx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_17
LBB0_18:
	movl	4(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_2
## %bb.19:
	movq	8(%r14), %rdx
	cmpl	$4, %r10d
	jb	LBB0_20
## %bb.21:
	leaq	(%rbx,%r8,8), %rax
	subq	%rdx, %rax
	cmpq	$32, %rax
	jae	LBB0_23
LBB0_20:
	xorl	%esi, %esi
LBB0_31:
	movq	%rsi, %r9
	notq	%r9
	addq	%r10, %r9
	movq	%r10, %rcx
	andq	$3, %rcx
	je	LBB0_34
## %bb.32:
	leaq	(%rbx,%r8,8), %rdi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	movq	%rax, (%rdi,%rsi,8)
	incq	%rsi
	decq	%rcx
	jne	LBB0_33
LBB0_34:
	cmpq	$3, %r9
	jb	LBB0_2
## %bb.35:
	leaq	(%rbx,%r8,8), %rax
	addq	$24, %rax
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	movq	%rcx, -24(%rax,%rsi,8)
	movq	8(%rdx,%rsi,8), %rcx
	movq	%rcx, -16(%rax,%rsi,8)
	movq	16(%rdx,%rsi,8), %rcx
	movq	%rcx, -8(%rax,%rsi,8)
	movq	24(%rdx,%rsi,8), %rcx
	movq	%rcx, (%rax,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_36
	jmp	LBB0_2
LBB0_23:
	movl	%r10d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rax
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$12, %rax
	jae	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_25:
	andq	$-4, %rdi
	leaq	(%rbx,%r8,8), %rcx
	addq	$112, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rax,8), %xmm0
	movups	16(%rdx,%rax,8), %xmm1
	movups	%xmm0, -112(%rcx,%rax,8)
	movups	%xmm1, -96(%rcx,%rax,8)
	movups	32(%rdx,%rax,8), %xmm0
	movups	48(%rdx,%rax,8), %xmm1
	movups	%xmm0, -80(%rcx,%rax,8)
	movups	%xmm1, -64(%rcx,%rax,8)
	movups	64(%rdx,%rax,8), %xmm0
	movups	80(%rdx,%rax,8), %xmm1
	movups	%xmm0, -48(%rcx,%rax,8)
	movups	%xmm1, -32(%rcx,%rax,8)
	movups	96(%rdx,%rax,8), %xmm0
	movups	112(%rdx,%rax,8), %xmm1
	movups	%xmm0, -16(%rcx,%rax,8)
	movups	%xmm1, (%rcx,%rax,8)
	addq	$16, %rax
	addq	$-4, %rdi
	jne	LBB0_26
LBB0_27:
	testq	%r9, %r9
	je	LBB0_30
## %bb.28:
	leaq	(%r8,%r8), %rcx
	leaq	(%rcx,%rax,2), %rcx
	leaq	(%rbx,%rcx,4), %rcx
	addq	$16, %rcx
	leaq	(%rdx,%rax,8), %rax
	addq	$16, %rax
	shlq	$5, %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rdi), %xmm0
	movups	(%rax,%rdi), %xmm1
	movups	%xmm0, -16(%rcx,%rdi)
	movups	%xmm1, (%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_29
LBB0_30:
	cmpq	%r10, %rsi
	je	LBB0_2
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.no_dead_strip	_qp_populate_ppn_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_populate_ppn_set
_qp_populate_ppn_set:                   ; @qp_populate_ppn_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_vmci_use_ppn64
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x20, #16]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	mov	x0, x19
	bl	_memcpy
	ldp	w8, w9, [x20]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x0, x19, x8, lsl #5
	ldr	x1, [x20, #8]
	lsl	w2, w9, #3
	bl	_memcpy
	b	LBB0_16
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x9, #0
	ldr	x10, [x20, #16]
	cmp	w8, #8
	b.lo	LBB0_8
; %bb.4:
	sub	x11, x19, x10
	cmp	x11, #64
	b.lo	LBB0_8
; %bb.5:
	and	x9, x8, #0xfffffff8
	add	x11, x19, #32
	add	x12, x10, #32
	mov	x13, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x12, x9, #3
	add	x11, x19, x12
	add	x10, x10, x12
	sub	x9, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	str	x12, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.11:
	sxtw	x10, w8
	ldr	x8, [x20, #8]
	cmp	w9, #8
	b.lo	LBB0_13
; %bb.12:
	add	x12, x19, x10, lsl #3
	sub	x11, x12, x8
	cmp	x11, #64
	b.hs	LBB0_17
LBB0_13:
	mov	x11, #0
LBB0_14:
	lsl	x12, x11, #1
	add	x10, x12, x10, lsl #1
	add	x10, x19, x10, lsl #2
	add	x8, x8, x11, lsl #3
	sub	x9, x9, x11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	str	x11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_15
LBB0_16:
Lloh0:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	and	x11, x9, #0xfffffff8
	add	x12, x12, #32
	add	x13, x8, #32
	mov	x14, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #8
	b.ne	LBB0_18
; %bb.19:
	cmp	x11, x9
	b.eq	LBB0_16
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.no_dead_strip	_qp_populate_ppn_set
.subsections_via_symbols
