	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_host_get_user_memory
_qp_host_get_user_memory:               ## @qp_host_get_user_memory
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rdx), %rax
	movq	_FOLL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	movl	4(%rax), %ecx
	callq	_get_user_pages_fast
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	movq	(%r15), %rax
	jmp	LBB0_4
LBB0_2:
	movq	(%r14), %rax
	movq	_FOLL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	callq	_get_user_pages_fast
	movl	%eax, %ebx
	movq	(%r14), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_qp_release_pages
	movq	(%r15), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	4(%rax), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_qp_release_pages
	movq	_VMCI_ERROR_NO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.comm	_FOLL_WRITE,4,2                 ## @FOLL_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_user_pages_fast(produce) failed (retval=%d)"

	.comm	_VMCI_ERROR_NO_MEM,4,2          ## @VMCI_ERROR_NO_MEM
L_.str.1:                               ## @.str.1
	.asciz	"get_user_pages_fast(consume) failed (retval=%d)"

	.no_dead_strip	_qp_host_get_user_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_host_get_user_memory
_qp_host_get_user_memory:               ; @qp_host_get_user_memory
	.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	x20, x3
	mov	x19, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x2]
Lloh3:
	adrp	x24, _FOLL_WRITE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FOLL_WRITE@GOTPAGEOFF]
	ldr	w2, [x24]
	ldp	w1, w3, [x8]
	bl	_get_user_pages_fast
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_debug
	ldr	x8, [x19]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	ldr	w2, [x24]
	ldp	w1, w3, [x8]
	mov	x0, x23
	bl	_get_user_pages_fast
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	mov	x22, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_debug
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	mov	x1, x22
	mov	w2, #0
	bl	_qp_release_pages
	ldr	x8, [x19]
	ldr	w22, [x8]
LBB0_4:
	ldr	w0, [x8, #4]
	mov	x1, x22
	mov	w2, #0
	bl	_qp_release_pages
Lloh9:
	adrp	x8, _VMCI_ERROR_NO_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMCI_ERROR_NO_MEM@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.comm	_FOLL_WRITE,4,2                 ; @FOLL_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_user_pages_fast(produce) failed (retval=%d)"

	.comm	_VMCI_ERROR_NO_MEM,4,2          ; @VMCI_ERROR_NO_MEM
l_.str.1:                               ; @.str.1
	.asciz	"get_user_pages_fast(consume) failed (retval=%d)"

	.no_dead_strip	_qp_host_get_user_memory
.subsections_via_symbols
