	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_host_map_queues
_qp_host_map_queues:                    ## @qp_host_map_queues
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rax
	movq	(%rsi), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_5
LBB0_2:
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	cmpq	%rcx, %rax
	je	LBB0_8
LBB0_5:
	movq	_VMCI_ERROR_QUEUEPAIR_MISMATCH@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_13
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_VMCI_ERROR_UNAVAILABLE@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.9:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.10:
	movq	%rsi, %r14
	movq	%rcx, -48(%rbp)
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_VM_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_vmap
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, (%r14)
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_VMCI_ERROR_NO_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_ERROR_QUEUEPAIR_MISMATCH,4,2 ## @VMCI_ERROR_QUEUEPAIR_MISMATCH
	.comm	_VMCI_ERROR_UNAVAILABLE,4,2     ## @VMCI_ERROR_UNAVAILABLE
	.comm	_VM_MAP,4,2                     ## @VM_MAP
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmap failed\n"

	.comm	_VMCI_ERROR_NO_MEM,4,2          ## @VMCI_ERROR_NO_MEM
	.no_dead_strip	_qp_host_map_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_host_map_queues
_qp_host_map_queues:                    ; @qp_host_map_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x9, [x0]
	ldr	x8, [x1]
	cbz	x9, LBB0_3
; %bb.1:
	cbz	x8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _VMCI_ERROR_QUEUEPAIR_MISMATCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMCI_ERROR_QUEUEPAIR_MISMATCH@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x19, x1
	str	x8, [sp, #8]
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh10:
	adrp	x8, _VM_MAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VM_MAP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _PAGE_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAGE_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	w1, #2
	bl	_vmap
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.10:
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	add	x8, x0, x8, lsl #2
	str	x8, [x19]
	b	LBB0_2
LBB0_11:
Lloh19:
	adrp	x8, _VMCI_ERROR_UNAVAILABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VMCI_ERROR_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh23:
	adrp	x8, _VMCI_ERROR_NO_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VMCI_ERROR_NO_MEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_ERROR_QUEUEPAIR_MISMATCH,4,2 ; @VMCI_ERROR_QUEUEPAIR_MISMATCH
	.comm	_VMCI_ERROR_UNAVAILABLE,4,2     ; @VMCI_ERROR_UNAVAILABLE
	.comm	_VM_MAP,4,2                     ; @VM_MAP
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmap failed\n"

	.comm	_VMCI_ERROR_NO_MEM,4,2          ; @VMCI_ERROR_NO_MEM
	.no_dead_strip	_qp_host_map_queues
.subsections_via_symbols
