	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_config_vf_msix_bb
_qed_mcp_config_vf_msix_bb:             ## @qed_mcp_config_vf_msix_bb
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	callq	_IS_LEAD_HWFN
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	imulq	(%rax), %r15
	movq	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r14, %rdx
	shlq	%cl, %rdx
	movq	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rdx
	movq	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r15, %rax
	shlq	%cl, %rax
	movq	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	orq	%rdx, %rax
	movq	_DRV_MSG_CODE_CFG_VF_MSIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rcx
	callq	_qed_mcp_cmd
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	movq	_FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_DP_VERBOSE
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT,8,3 ## @DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK,8,3 ## @DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT,8,3 ## @DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK,8,3 ## @DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK
	.comm	_DRV_MSG_CODE_CFG_VF_MSIX,4,2   ## @DRV_MSG_CODE_CFG_VF_MSIX
	.comm	_FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE,8,3 ## @FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF[%d]: MFW failed to set MSI-X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
L_.str.1:                               ## @.str.1
	.asciz	"Requested 0x%02x MSI-x interrupts from VF 0x%02x\n"

	.no_dead_strip	_qed_mcp_config_vf_msix_bb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_config_vf_msix_bb
_qed_mcp_config_vf_msix_bb:             ; @qed_mcp_config_vf_msix_bb
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	bl	_IS_LEAD_HWFN
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mul	x21, x8, x21
Lloh0:
	adrp	x8, _DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x8, x19, x8
Lloh3:
	adrp	x9, _DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x8, x8, x9
Lloh6:
	adrp	x9, _DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x9, x21, x9
Lloh9:
	adrp	x10, _DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	and	x9, x9, x10
	orr	x3, x9, x8
Lloh12:
	adrp	x8, _DRV_MSG_CODE_CFG_VF_MSIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRV_MSG_CODE_CFG_VF_MSIX@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x5, sp
	mov	x0, x20
	mov	x1, x22
	bl	_qed_mcp_cmd
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, _FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x22, x0
Lloh18:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	mov	x4, x19
	bl	_DP_VERBOSE
	b	LBB0_5
LBB0_3:
	mov	w22, #0
	b	LBB0_5
LBB0_4:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_DP_NOTICE
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT,8,3 ; @DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_SHIFT
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK,8,3 ; @DRV_MB_PARAM_CFG_VF_MSIX_VF_ID_MASK
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT,8,3 ; @DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_SHIFT
	.comm	_DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK,8,3 ; @DRV_MB_PARAM_CFG_VF_MSIX_SB_NUM_MASK
	.comm	_DRV_MSG_CODE_CFG_VF_MSIX,4,2   ; @DRV_MSG_CODE_CFG_VF_MSIX
	.comm	_FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE,8,3 ; @FW_MSG_CODE_DRV_CFG_VF_MSIX_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF[%d]: MFW failed to set MSI-X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
l_.str.1:                               ; @.str.1
	.asciz	"Requested 0x%02x MSI-x interrupts from VF 0x%02x\n"

	.no_dead_strip	_qed_mcp_config_vf_msix_bb
.subsections_via_symbols
