	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_copy_vf_msg
_qed_iov_copy_vf_msg:                   ## @qed_iov_copy_vf_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	%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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%edx, %esi
	movl	$1, %edx
	callq	_qed_iov_get_vf_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_QED_DMAE_FLAG_VF_SRC@GOTPCREL(%rip), %rax
	movq	_QED_DMAE_FLAG_COMPLETION_DST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %r8d
	leaq	-48(%rbp), %r9
	callq	_qed_dmae_host2host
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_DP_VERBOSE
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%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	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_DMAE_FLAG_VF_SRC,4,2       ## @QED_DMAE_FLAG_VF_SRC
	.comm	_QED_DMAE_FLAG_COMPLETION_DST,4,2 ## @QED_DMAE_FLAG_COMPLETION_DST
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to copy message from VF 0x%02x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qed_iov_copy_vf_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_copy_vf_msg
_qed_iov_copy_vf_msg:                   ; @qed_iov_copy_vf_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x1, x2
	mov	w2, #1
	bl	_qed_iov_get_vf_info
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _QED_DMAE_FLAG_VF_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_DMAE_FLAG_VF_SRC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QED_DMAE_FLAG_COMPLETION_DST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_DMAE_FLAG_COMPLETION_DST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22, #8]
	stp	w8, w9, [sp, #8]
	ldp	w3, w2, [x22]
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w4, #1
	bl	_qed_dmae_host2host
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_DP_VERBOSE
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_DMAE_FLAG_VF_SRC,4,2       ; @QED_DMAE_FLAG_VF_SRC
	.comm	_QED_DMAE_FLAG_COMPLETION_DST,4,2 ; @QED_DMAE_FLAG_COMPLETION_DST
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to copy message from VF 0x%02x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qed_iov_copy_vf_msg
.subsections_via_symbols
