	.file	"extr_hv_fcopy.c_fcopy_on_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fcopy_on_msg, @function
fcopy_on_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	esi, 4
	jne	.L5
	mov	rax, QWORD PTR fcopy_transaction[rip]
	cmp	rax, QWORD PTR HVUTIL_DEVICE_INIT[rip]
	mov	rbx, rdi
	je	.L10
	cmp	rax, QWORD PTR HVUTIL_USERSPACE_REQ[rip]
	je	.L11
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, fcopy_timeout_work[rip]
	xor	r12d, r12d
	call	cancel_delayed_work_sync@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	mov	rax, QWORD PTR HVUTIL_USERSPACE_RECV[rip]
	mov	QWORD PTR fcopy_transaction[rip], rax
	call	fcopy_respond_to_host@PLT
	mov	esi, DWORD PTR fcopy_poll_wrapper[rip]
	mov	edi, DWORD PTR fcopy_transaction[rip+8]
	call	hv_poll_channel@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [rdi]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fcopy_handle_handshake@PLT
	.cfi_endproc
.LFE0:
	.size	fcopy_on_msg, .-fcopy_on_msg
	.comm	fcopy_transaction,16,16
	.comm	fcopy_timeout_work,4,4
	.comm	fcopy_poll_wrapper,4,4
	.comm	HVUTIL_USERSPACE_REQ,8,8
	.comm	HVUTIL_USERSPACE_RECV,8,8
	.comm	HVUTIL_DEVICE_INIT,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hv_fcopy.c_fcopy_on_msg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fcopy_on_msg, %function
fcopy_on_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #4
	beq	.L2
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, r5, r6, lr}
	ldr	r2, .L15+4
	ldr	r5, .L15+8
	ldr	r2, [r2]
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r2
	beq	.L13
	ldr	r2, .L15+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, [r0]
	pop	{r4, r5, r6, lr}
	b	fcopy_handle_handshake
.L14:
	ldr	r0, .L15+16
	bl	cancel_delayed_work_sync
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L15+20
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [r5]
	bl	fcopy_respond_to_host
	ldr	r3, .L15+24
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	hv_poll_channel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	EINVAL
	.word	HVUTIL_DEVICE_INIT
	.word	fcopy_transaction
	.word	HVUTIL_USERSPACE_REQ
	.word	fcopy_timeout_work
	.word	HVUTIL_USERSPACE_RECV
	.word	fcopy_poll_wrapper
	.size	fcopy_on_msg, .-fcopy_on_msg
	.comm	fcopy_transaction,8,4
	.comm	fcopy_timeout_work,4,4
	.comm	fcopy_poll_wrapper,4,4
	.comm	HVUTIL_USERSPACE_REQ,4,4
	.comm	HVUTIL_USERSPACE_RECV,4,4
	.comm	HVUTIL_DEVICE_INIT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
