	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_notify_peer
_qp_notify_peer:                        ## @qp_notify_peer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_vmci_handle_is_invalid
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	_VMCI_ERROR_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_VMCI_INVALID_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.2:
	cmpq	%r15, %rax
	je	LBB0_3
## %bb.4:
	movq	_VMCI_EVENT_HANDLER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vmci_make_handle
	movq	%rax, -72(%rbp)
	movq	_VMCI_HYPERVISOR_CONTEXT_ID@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_VMCI_CONTEXT_RESOURCE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vmci_make_handle
	movq	%rax, -80(%rbp)
	movl	$24, -88(%rbp)
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.6:
	movq	_VMCI_EVENT_QP_PEER_DETACH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_VMCI_EVENT_QP_PEER_ATTACH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%ebx, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	(%r13), %rdi
	leaq	-88(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vmci_datagram_dispatch
	movl	%eax, %ebx
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
## %bb.8:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_pr_warn
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_INVALID_ID,8,3            ## @VMCI_INVALID_ID
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ## @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_EVENT_HANDLER,4,2         ## @VMCI_EVENT_HANDLER
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,8,3 ## @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_CONTEXT_RESOURCE_ID,4,2   ## @VMCI_CONTEXT_RESOURCE_ID
	.comm	_VMCI_EVENT_QP_PEER_ATTACH,4,2  ## @VMCI_EVENT_QP_PEER_ATTACH
	.comm	_VMCI_EVENT_QP_PEER_DETACH,4,2  ## @VMCI_EVENT_QP_PEER_DETACH
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enqueue queue_pair %s event datagram for context (ID=0x%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"ATTACH"

L_.str.2:                               ## @.str.2
	.asciz	"DETACH"

	.no_dead_strip	_qp_notify_peer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_notify_peer
_qp_notify_peer:                        ; @qp_notify_peer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	and	x0, x1, #0xffffffff
	bl	_vmci_handle_is_invalid
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VMCI_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_INVALID_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	ccmp	x8, x19, #4, ne
	b.ne	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_ERROR_INVALID_ARGS@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh6:
	adrp	x8, _VMCI_EVENT_HANDLER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCI_EVENT_HANDLER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vmci_make_handle
	str	x0, [sp, #16]
Lloh9:
	adrp	x23, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh11:
	adrp	x8, _VMCI_CONTEXT_RESOURCE_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMCI_CONTEXT_RESOURCE_ID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_vmci_make_handle
	str	x0, [sp, #8]
	mov	w8, #24
	str	w8, [sp]
Lloh14:
	adrp	x8, _VMCI_EVENT_QP_PEER_ATTACH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VMCI_EVENT_QP_PEER_ATTACH@GOTPAGEOFF]
Lloh16:
	adrp	x9, _VMCI_EVENT_QP_PEER_DETACH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VMCI_EVENT_QP_PEER_DETACH@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w22, [sp, #40]
	str	x21, [sp, #32]
	ldr	x0, [x23]
	mov	x1, sp
	mov	w2, #0
	bl	_vmci_datagram_dispatch
	mov	x21, x0
Lloh18:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.5:
Lloh21:
	adrp	x8, l_.str.1@PAGE
Lloh22:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh23:
	adrp	x9, l_.str.2@PAGE
Lloh24:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x1, x9, x8, eq
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_warn
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_INVALID_ID,8,3            ; @VMCI_INVALID_ID
	.comm	_VMCI_ERROR_INVALID_ARGS,4,2    ; @VMCI_ERROR_INVALID_ARGS
	.comm	_VMCI_EVENT_HANDLER,4,2         ; @VMCI_EVENT_HANDLER
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,8,3 ; @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_CONTEXT_RESOURCE_ID,4,2   ; @VMCI_CONTEXT_RESOURCE_ID
	.comm	_VMCI_EVENT_QP_PEER_ATTACH,4,2  ; @VMCI_EVENT_QP_PEER_ATTACH
	.comm	_VMCI_EVENT_QP_PEER_DETACH,4,2  ; @VMCI_EVENT_QP_PEER_DETACH
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enqueue queue_pair %s event datagram for context (ID=0x%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"ATTACH"

l_.str.2:                               ; @.str.2
	.asciz	"DETACH"

	.no_dead_strip	_qp_notify_peer
.subsections_via_symbols
