	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vc_send_msg_to_vf
_ice_vc_send_msg_to_vf:                 ## @ice_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	$24, %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, %ebx
	movq	%rdi, %r12
	movl	8(%rdi), %edx
	movq	24(%rdi), %r14
	cmpl	16(%r14), %edx
	jge	LBB0_2
## %bb.3:
	movl	%r8d, %r9d
	movq	%rcx, %r13
	movl	%esi, %r15d
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	incq	(%r12)
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_dev_info
	movq	(%r12), %rax
	movq	_ICE_DFLT_NUM_INVAL_MSGS_ALLOWED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.6:
	movq	8(%r14), %rdi
	movl	8(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ICE_VF_STATE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	callq	_set_bit
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	incl	12(%r12)
	movq	$0, (%r12)
	jmp	LBB0_8
LBB0_5:
	movl	8(%r12), %edx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_8:
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	%edx, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_ice_aq_send_msg_to_vf
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	(%r14), %r8
	movq	_ICE_AQ_RC_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	je	LBB0_13
## %bb.10:
	movq	8(%r14), %rdi
	movl	8(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rax
	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	_ICE_DFLT_NUM_INVAL_MSGS_ALLOWED,8,3 ## @ICE_DFLT_NUM_INVAL_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	_ICE_VF_STATE_DIS,4,2           ## @ICE_VF_STATE_DIS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ICE_AQ_RC_ENOSYS,8,3           ## @ICE_AQ_RC_ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"Unable to send the message to VF %d ret %d aq_err %d\n"

	.no_dead_strip	_ice_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 ice_vc_send_msg_to_vf
_ice_vc_send_msg_to_vf:                 ; @ice_vc_send_msg_to_vf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x2
	mov	x19, x0
	ldr	w2, [x0, #8]
	ldr	x20, [x0, #24]
	ldr	w8, [x20, #16]
	cmp	w2, w8
	b.ge	LBB0_5
; %bb.2:
	mov	x21, x4
	mov	x22, x3
	mov	x24, x1
	cbz	w23, LBB0_8
; %bb.3:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	mov	x4, x23
	bl	_dev_info
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _ICE_DFLT_NUM_INVAL_MSGS_ALLOWED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICE_DFLT_NUM_INVAL_MSGS_ALLOWED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.4:
	ldr	x0, [x20, #8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _ICE_VF_STATE_DIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_VF_STATE_DIS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_set_bit
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	str	xzr, [x19]
	b	LBB0_10
LBB0_9:
	ldr	w2, [x19, #8]
LBB0_10:
	mov	x0, x20
	mov	x1, x2
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, #0
	bl	_ice_aq_send_msg_to_vf
	cbz	w0, LBB0_7
; %bb.11:
	ldr	x4, [x20]
Lloh14:
	adrp	x8, _ICE_AQ_RC_ENOSYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ICE_AQ_RC_ENOSYS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x4, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_7
LBB0_13:
	mov	x3, x0
	ldr	x0, [x20, #8]
	ldr	w2, [x19, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dev_info
LBB0_14:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.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	_ICE_DFLT_NUM_INVAL_MSGS_ALLOWED,8,3 ; @ICE_DFLT_NUM_INVAL_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	_ICE_VF_STATE_DIS,4,2           ; @ICE_VF_STATE_DIS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ICE_AQ_RC_ENOSYS,8,3           ; @ICE_AQ_RC_ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"Unable to send the message to VF %d ret %d aq_err %d\n"

	.no_dead_strip	_ice_vc_send_msg_to_vf
.subsections_via_symbols
