	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vc_send_msg_to_vf
_i40e_vc_send_msg_to_vf:                ## @i40e_vc_send_msg_to_vf
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movq	24(%rdi), %r15
	cmpl	(%r15), %edx
	jge	LBB0_2
## %bb.3:
	movl	%r8d, %r9d
	movq	%rcx, %r8
	movl	%esi, %r13d
	leaq	4(%r15), %rdi
	movl	8(%r15), %r14d
	addl	%edx, %r14d
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.4:
	incq	8(%rbx)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%r12d, %r8d
	xorl	%eax, %eax
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_dev_info
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	8(%rbx), %rax
	movq	_I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.5:
	movq	16(%r15), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_I40E_VF_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_set_bit
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	incl	16(%rbx)
	movq	$0, 8(%rbx)
LBB0_7:
	movq	$0, (%rsp)
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_i40e_aq_send_msg_to_vf
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	16(%r15), %rdi
	movl	(%rbx), %edx
	movl	4(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF %d failed opcode %d, retval: %d\n"

	.comm	_I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED,8,3 ## @I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED
L_.str.1:                               ## @.str.1
	.asciz	"Number of invalid messages exceeded for VF %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Use PF Control I/F to enable the VF\n"

	.comm	_I40E_VF_STATE_DISABLED,4,2     ## @I40E_VF_STATE_DISABLED
L_.str.3:                               ## @.str.3
	.asciz	"Unable to send the message to VF %d aq_err %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vc_send_msg_to_vf
_i40e_vc_send_msg_to_vf:                ; @i40e_vc_send_msg_to_vf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x2
	mov	x19, x0
	ldr	w2, [x0]
	ldr	x27, [x0, #24]
	ldr	w8, [x27]
	cmp	w2, w8
	b.ge	LBB0_5
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	mov	x23, x1
	add	x24, x27, #4
	ldr	w8, [x27, #8]
	add	w25, w8, w2
	cbz	w22, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x0, [x27, #16]
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_dev_info
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.4:
	ldr	x0, [x27, #16]
	mov	x26, x19
	ldr	w8, [x26], #20
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x27, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _I40E_VF_STATE_DISABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_VF_STATE_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_set_bit
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
LBB0_7:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, #0
	bl	_i40e_aq_send_msg_to_vf
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x27, #16]
	ldr	w2, [x19]
	ldr	w3, [x27, #4]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF %d failed opcode %d, retval: %d\n"

	.comm	_I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED,8,3 ; @I40E_DEFAULT_NUM_INVALID_MSGS_ALLOWED
l_.str.1:                               ; @.str.1
	.asciz	"Number of invalid messages exceeded for VF %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Use PF Control I/F to enable the VF\n"

	.comm	_I40E_VF_STATE_DISABLED,4,2     ; @I40E_VF_STATE_DISABLED
l_.str.3:                               ; @.str.3
	.asciz	"Unable to send the message to VF %d aq_err %d\n"

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