	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_alloc_ppn_set
_qp_alloc_ppn_set:                      ## @qp_alloc_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VMCI_ERROR_INVALID_ARGS@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:
	movq	%r8, %rbx
	testq	%r8, %r8
	je	LBB0_7
## %bb.5:
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	_VMCI_ERROR_ALREADY_EXISTS@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	_VMCI_ERROR_NO_MEM@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	movq	%rbx, %r11
	cmpq	$4, %r12
	jae	LBB0_20
## %bb.11:
	xorl	%esi, %esi
LBB0_12:
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_13:
	movq	%rsi, %r8
	notq	%r8
	addq	%r12, %r8
	movq	%r12, %rdi
	andq	$3, %rdi
	je	LBB0_16
## %bb.14:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	movzbl	(%r9), %ecx
	shrq	%cl, %rbx
	movq	%rbx, (%r13,%rsi,8)
	incq	%rsi
	decq	%rdi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r8
	jb	LBB0_30
## %bb.17:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	movzbl	(%rdi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, (%r13,%rsi,8)
	movq	8(%rdx,%rsi,8), %rbx
	movzbl	(%rdi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 8(%r13,%rsi,8)
	movq	16(%rdx,%rsi,8), %rbx
	movzbl	(%rdi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 16(%r13,%rsi,8)
	movq	24(%rdx,%rsi,8), %rbx
	movzbl	(%rdi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 24(%r13,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r12
	jne	LBB0_18
	jmp	LBB0_30
LBB0_19:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_20:
	leaq	(,%r12,8), %rsi
	addq	%r13, %rsi
	leaq	(%rdx,%r12,8), %rcx
	cmpq	%rcx, %r13
	setb	%r9b
	cmpq	%rsi, %rdx
	setb	%r10b
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r8
	leaq	8(%r8), %rcx
	cmpq	%rcx, %r13
	setb	%cl
	cmpq	%r8, %rsi
	seta	%dil
	xorl	%esi, %esi
	testb	%r10b, %r9b
	jne	LBB0_12
## %bb.21:
	andb	%dil, %cl
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jne	LBB0_13
## %bb.22:
	movq	%r12, %rsi
	andq	$-4, %rsi
	leaq	-4(%rsi), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.23:
	movq	%r9, %rcx
	andq	$-2, %rcx
	movq	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,8), %xmm1
	movdqu	16(%rdx,%rdi,8), %xmm2
	psrlq	%xmm0, %xmm1
	psrlq	%xmm0, %xmm2
	movdqu	%xmm1, (%r13,%rdi,8)
	movdqu	%xmm2, 16(%r13,%rdi,8)
	movdqu	32(%rdx,%rdi,8), %xmm1
	movdqu	48(%rdx,%rdi,8), %xmm2
	psrlq	%xmm0, %xmm1
	psrlq	%xmm0, %xmm2
	movdqu	%xmm1, 32(%r13,%rdi,8)
	movdqu	%xmm2, 48(%r13,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rcx
	jne	LBB0_24
	jmp	LBB0_27
LBB0_26:
	xorl	%edi, %edi
LBB0_27:
	testb	$1, %r9b
	je	LBB0_29
## %bb.28:
	movdqu	(%rdx,%rdi,8), %xmm0
	movdqu	16(%rdx,%rdi,8), %xmm1
	movq	(%r8), %xmm2                    ## xmm2 = mem[0],zero
	psrlq	%xmm2, %xmm0
	psrlq	%xmm2, %xmm1
	movdqu	%xmm0, (%r13,%rdi,8)
	movdqu	%xmm1, 16(%r13,%rdi,8)
LBB0_29:
	cmpq	%r12, %rsi
	jne	LBB0_13
LBB0_30:
	movq	(%r10), %rcx
	movq	(%rcx), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$2, %rcx
	movl	$1, %r10d
	cmovaeq	%rcx, %r10
	cmpq	$4, %r10
	jae	LBB0_38
## %bb.31:
	xorl	%edi, %edi
LBB0_32:
	movq	%rdi, %r8
	notq	%r8
	addq	%r10, %r8
	movq	%r10, %rsi
	andq	$3, %rsi
	je	LBB0_35
## %bb.33:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movzbl	(%r9), %ecx
	shrq	%cl, %rbx
	movq	%rbx, (%rax,%rdi,8)
	incq	%rdi
	decq	%rsi
	jne	LBB0_34
LBB0_35:
	cmpq	$3, %r8
	jb	LBB0_47
## %bb.36:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movzbl	(%rsi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, (%rax,%rdi,8)
	movq	8(%rdx,%rdi,8), %rbx
	movzbl	(%rsi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 8(%rax,%rdi,8)
	movq	16(%rdx,%rdi,8), %rbx
	movzbl	(%rsi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 16(%rax,%rdi,8)
	movq	24(%rdx,%rdi,8), %rbx
	movzbl	(%rsi), %ecx
	shrq	%cl, %rbx
	movq	%rbx, 24(%rax,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_37
	jmp	LBB0_47
LBB0_38:
	leaq	(%rax,%r10,8), %rsi
	leaq	(%rdx,%r10,8), %rcx
	cmpq	%rcx, %rax
	setb	%r9b
	cmpq	%rsi, %rdx
	setb	%bl
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r8
	leaq	8(%r8), %rcx
	cmpq	%rcx, %rax
	setb	%cl
	cmpq	%r8, %rsi
	seta	%sil
	xorl	%edi, %edi
	testb	%bl, %r9b
	jne	LBB0_32
## %bb.39:
	andb	%sil, %cl
	jne	LBB0_32
## %bb.40:
	movq	%r10, %rdi
	andq	$-4, %rdi
	leaq	-4(%rdi), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_43
## %bb.41:
	movq	%r9, %rsi
	andq	$-2, %rsi
	movq	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rcx,8), %xmm1
	movdqu	16(%rdx,%rcx,8), %xmm2
	psrlq	%xmm0, %xmm1
	psrlq	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rcx,8)
	movdqu	%xmm2, 16(%rax,%rcx,8)
	movdqu	32(%rdx,%rcx,8), %xmm1
	movdqu	48(%rdx,%rcx,8), %xmm2
	psrlq	%xmm0, %xmm1
	psrlq	%xmm0, %xmm2
	movdqu	%xmm1, 32(%rax,%rcx,8)
	movdqu	%xmm2, 48(%rax,%rcx,8)
	addq	$8, %rcx
	addq	$-2, %rsi
	jne	LBB0_42
	jmp	LBB0_44
LBB0_43:
	xorl	%ecx, %ecx
LBB0_44:
	testb	$1, %r9b
	je	LBB0_46
## %bb.45:
	movdqu	(%rdx,%rcx,8), %xmm0
	movdqu	16(%rdx,%rcx,8), %xmm1
	movq	(%r8), %xmm2                    ## xmm2 = mem[0],zero
	psrlq	%xmm2, %xmm0
	psrlq	%xmm2, %xmm1
	movdqu	%xmm0, (%rax,%rcx,8)
	movdqu	%xmm1, 16(%rax,%rcx,8)
LBB0_46:
	cmpq	%rdi, %r10
	jne	LBB0_32
LBB0_47:
	movq	%r12, 8(%r11)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%r11)
	movq	%r13, 24(%r11)
	movq	%rax, 32(%r11)
	movl	$1, (%r11)
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ## @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_ERROR_ALREADY_EXISTS,4,2  ## @VMCI_ERROR_ALREADY_EXISTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VMCI_ERROR_NO_MEM,4,2          ## @VMCI_ERROR_NO_MEM
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.no_dead_strip	_qp_alloc_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_alloc_ppn_set
_qp_alloc_ppn_set:                      ; @qp_alloc_ppn_set
	.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	x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGEOFF]
	cbz	x0, LBB0_30
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_30
; %bb.2:
	mov	x23, x2
	cbz	x2, LBB0_30
; %bb.3:
	mov	x20, x3
	cbz	x3, LBB0_30
; %bb.4:
	mov	x19, x4
	cbz	x4, LBB0_30
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _VMCI_ERROR_ALREADY_EXISTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCI_ERROR_ALREADY_EXISTS@GOTPAGEOFF]
	b	LBB0_30
LBB0_7:
	mov	x24, x0
Lloh4:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_12
; %bb.8:
	mov	x22, x0
	ldr	w2, [x25]
	mov	x0, x20
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x24]
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
	cmp	x21, #8
	b.hs	LBB0_13
; %bb.10:
	mov	x10, #0
	b	LBB0_18
LBB0_11:
	mov	x0, x22
	bl	_kfree
LBB0_12:
Lloh8:
	adrp	x8, _VMCI_ERROR_NO_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMCI_ERROR_NO_MEM@GOTPAGEOFF]
	b	LBB0_30
LBB0_13:
	mov	x10, #0
	lsl	x11, x21, #3
	add	x12, x9, x11
	add	x13, x8, #8
	cmp	x22, x13
	add	x13, x22, x11
	ccmp	x13, x8, #0, lo
	cset	w11, hi
	cmp	x9, x13
	ccmp	x22, x12, #2, lo
	b.lo	LBB0_18
; %bb.14:
	tbnz	w11, #0, LBB0_18
; %bb.15:
	and	x10, x21, #0xfffffffffffffff8
	ld1r.2d	{ v0 }, [x8]
	add	x11, x9, #32
	add	x12, x22, #32
	neg.2d	v0, v0
	mov	x13, x10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11], #64
	ldr	d5, [x8]
	dup.2d	v5, v5[0]
	ushl.2d	v1, v1, v0
	ushl.2d	v2, v2, v0
	ushl.2d	v3, v3, v0
	neg.2d	v5, v5
	ushl.2d	v4, v4, v5
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x21
	b.eq	LBB0_20
LBB0_18:
	sub	x11, x21, x10
	lsl	x12, x10, #3
	add	x10, x22, x12
	add	x9, x9, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9], #8
	ldr	x13, [x8]
	lsr	x12, x12, x13
	str	x12, [x10], #8
	subs	x11, x11, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	x9, [x23]
	ldr	x9, [x9]
	cmp	x20, #1
	csinc	x10, x20, xzr, hi
	cmp	x10, #8
	b.hs	LBB0_22
; %bb.21:
	mov	x11, #0
	b	LBB0_27
LBB0_22:
	mov	x11, #0
	lsl	x12, x10, #3
	add	x13, x9, x12
	add	x14, x8, #8
	cmp	x0, x14
	add	x14, x0, x12
	ccmp	x14, x8, #0, lo
	cset	w12, hi
	cmp	x9, x14
	ccmp	x0, x13, #2, lo
	b.lo	LBB0_27
; %bb.23:
	tbnz	w12, #0, LBB0_27
; %bb.24:
	and	x11, x10, #0xfffffffffffffff8
	ld1r.2d	{ v0 }, [x8]
	add	x12, x0, #32
	add	x13, x9, #32
	neg.2d	v0, v0
	mov	x14, x11
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13], #64
	ldr	d5, [x8]
	dup.2d	v5, v5[0]
	ushl.2d	v1, v1, v0
	ushl.2d	v2, v2, v0
	ushl.2d	v3, v3, v0
	neg.2d	v5, v5
	ushl.2d	v4, v4, v5
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x14, x14, #8
	b.ne	LBB0_25
; %bb.26:
	cmp	x10, x11
	b.eq	LBB0_29
LBB0_27:
	sub	x10, x10, x11
	lsl	x12, x11, #3
	add	x11, x0, x12
	add	x9, x9, x12
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9], #8
	ldr	x13, [x8]
	lsr	x12, x12, x13
	str	x12, [x11], #8
	subs	x10, x10, #1
	b.ne	LBB0_28
LBB0_29:
	stp	x21, x20, [x19, #8]
	stp	x22, x0, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
Lloh10:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
LBB0_30:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ; @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_ERROR_ALREADY_EXISTS,4,2  ; @VMCI_ERROR_ALREADY_EXISTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VMCI_ERROR_NO_MEM,4,2          ; @VMCI_ERROR_NO_MEM
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.no_dead_strip	_qp_alloc_ppn_set
.subsections_via_symbols
