	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcopy_on_msg
_fcopy_on_msg:                          ## @fcopy_on_msg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$4, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_fcopy_transaction@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_HVUTIL_DEVICE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fcopy_handle_handshake         ## TAILCALL
LBB0_3:
	movq	_HVUTIL_USERSPACE_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	_fcopy_timeout_work@GOTPCREL(%rip), %rdi
	callq	_cancel_delayed_work_sync
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_HVUTIL_USERSPACE_RECV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	(%r14), %edi
	callq	_fcopy_respond_to_host
	movl	8(%r15), %edi
	movq	_fcopy_poll_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hv_poll_channel
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_fcopy_transaction,16,3         ## @fcopy_transaction
	.comm	_HVUTIL_DEVICE_INIT,8,3         ## @HVUTIL_DEVICE_INIT
	.comm	_HVUTIL_USERSPACE_REQ,8,3       ## @HVUTIL_USERSPACE_REQ
	.comm	_fcopy_timeout_work,4,2         ## @fcopy_timeout_work
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ## @HVUTIL_USERSPACE_RECV
	.comm	_fcopy_poll_wrapper,4,2         ## @fcopy_poll_wrapper
	.no_dead_strip	_fcopy_on_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcopy_on_msg
_fcopy_on_msg:                          ; @fcopy_on_msg
	.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
	cmp	w1, #4
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _fcopy_transaction@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fcopy_transaction@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _HVUTIL_DEVICE_INIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HVUTIL_DEVICE_INIT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fcopy_handle_handshake
LBB0_3:
Lloh5:
	adrp	x9, _HVUTIL_USERSPACE_REQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HVUTIL_USERSPACE_REQ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, _fcopy_timeout_work@GOTPAGE
Lloh9:
	ldr	x0, [x0, _fcopy_timeout_work@GOTPAGEOFF]
	bl	_cancel_delayed_work_sync
	cbz	x0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _HVUTIL_USERSPACE_RECV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HVUTIL_USERSPACE_RECV@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w0, [x19]
	bl	_fcopy_respond_to_host
	ldr	w0, [x20, #8]
Lloh13:
	adrp	x8, _fcopy_poll_wrapper@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fcopy_poll_wrapper@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_hv_poll_channel
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_fcopy_transaction,16,3         ; @fcopy_transaction
	.comm	_HVUTIL_DEVICE_INIT,8,3         ; @HVUTIL_DEVICE_INIT
	.comm	_HVUTIL_USERSPACE_REQ,8,3       ; @HVUTIL_USERSPACE_REQ
	.comm	_fcopy_timeout_work,4,2         ; @fcopy_timeout_work
	.comm	_HVUTIL_USERSPACE_RECV,8,3      ; @HVUTIL_USERSPACE_RECV
	.comm	_fcopy_poll_wrapper,4,2         ; @fcopy_poll_wrapper
	.no_dead_strip	_fcopy_on_msg
.subsections_via_symbols
