	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_vf_mbx_start_rxq
_qed_iov_vf_mbx_start_rxq:              ## @qed_iov_vf_mbx_start_rxq
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_PFVF_STATUS_NO_RESOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	40(%rdx), %r12
	movq	(%r12), %rdx
	movq	_QED_IOV_VALIDATE_Q_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_qed_iov_validate_rxq
	testl	%eax, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.1:
	movl	28(%r12), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qed_iov_validate_sb
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%r13, %rdi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_qed_iov_vf_mbx_qid
	movq	%rax, %r15
	movq	_QED_IOV_QID_INVALID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_5
## %bb.3:
	movq	32(%r14), %rcx
	movq	(%r12), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rax
	movq	%r15, %rsi
	shlq	$4, %rsi
	cmpq	$0, 8(%rax,%rsi)
	je	LBB0_9
## %bb.4:
	xorl	%r13d, %r13d
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	_QED_QCID_LEGACY_VF_RX_PROD@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	andq	(%rax), %r13
	setne	%r8b
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_qed_iov_vf_mbx_start_rxq_resp
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_qed_vf_calculate_legacy
	movq	%rax, %r13
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%rcx), %eax
	movl	%eax, -84(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -88(%rbp)
	movq	8(%r14), %rax
	addq	$16, %rax
	movq	%rax, -96(%rbp)
	leaq	-272(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	28(%r12), %eax
	movl	%eax, -232(%rbp)
	leaq	-272(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	24(%r12), %eax
	movl	%eax, -116(%rbp)
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	20(%r14), %eax
	movl	%eax, -184(%rbp)
	movq	(%r12), %rax
	movq	%rax, -208(%rbp)
	movq	%r13, -200(%rbp)
	movq	%r15, -192(%rbp)
	movl	16(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-144(%rbp), %rdx
	movl	$1, %ecx
	leaq	-208(%rbp), %r8
	callq	_qed_eth_queue_to_cid
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movq	%rax, %r15
	movq	_QED_QCID_LEGACY_VF_RX_PROD@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_GTT_BAR0_MAP_REG_MSDM_RAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%r14), %rdi
	movq	(%r12), %rsi
	callq	_MSTORM_ETH_VF_PRODS_OFFSET
	addq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_REG_WR
LBB0_12:
	movl	20(%r12), %edx
	movl	16(%r12), %ecx
	movl	8(%r12), %r9d
	movl	12(%r12), %r8d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_qed_eth_rxq_start_ramrod
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_PFVF_STATUS_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_qed_eth_queue_cid_release
	jmp	LBB0_5
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 8(%rax,%rcx)
	movl	$0, (%rax,%rcx)
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	incl	(%r14)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PFVF_STATUS_NO_RESOURCE,8,3    ## @PFVF_STATUS_NO_RESOURCE
	.comm	_QED_IOV_VALIDATE_Q_DISABLE,4,2 ## @QED_IOV_VALIDATE_Q_DISABLE
	.comm	_QED_IOV_QID_INVALID,8,3        ## @QED_IOV_QID_INVALID
	.comm	_QED_QCID_LEGACY_VF_RX_PROD,8,3 ## @QED_QCID_LEGACY_VF_RX_PROD
	.comm	_GTT_BAR0_MAP_REG_MSDM_RAM,8,3  ## @GTT_BAR0_MAP_REG_MSDM_RAM
	.comm	_PFVF_STATUS_FAILURE,8,3        ## @PFVF_STATUS_FAILURE
	.comm	_PFVF_STATUS_SUCCESS,8,3        ## @PFVF_STATUS_SUCCESS
	.no_dead_strip	_qed_iov_vf_mbx_start_rxq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_vf_mbx_start_rxq
_qed_iov_vf_mbx_start_rxq:              ; @qed_iov_vf_mbx_start_rxq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PFVF_STATUS_NO_RESOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFVF_STATUS_NO_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x27, [x2, #40]
	ldr	x2, [x27]
Lloh3:
	adrp	x8, _QED_IOV_VALIDATE_Q_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_IOV_VALIDATE_Q_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_qed_iov_validate_rxq
Lloh6:
	adrp	x26, _QED_QCID_LEGACY_VF_RX_PROD@GOTPAGE
Lloh7:
	ldr	x26, [x26, _QED_QCID_LEGACY_VF_RX_PROD@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w2, [x27, #28]
	mov	x0, x21
	mov	x1, x19
	bl	_qed_iov_validate_sb
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_qed_iov_vf_mbx_qid
Lloh8:
	adrp	x8, _QED_IOV_QID_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QED_IOV_QID_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x24, x0
	ldr	x8, [x19, #32]
	ldr	x9, [x27]
	add	x28, x8, x9, lsl #4
	ldr	x8, [x28]
	add	x8, x8, x0, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x23, #0
LBB0_5:
	ldr	x8, [x26]
	tst	x8, x23
	cset	w4, ne
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_qed_iov_vf_mbx_start_rxq_resp
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_6:
	mov	x0, x19
	bl	_qed_vf_calculate_legacy
	mov	x23, x0
	add	x0, sp, #136
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w8, [x28, #8]
	ldr	w9, [x19, #24]
	stp	w9, w8, [sp, #192]
	ldr	x8, [x19, #8]
	add	x8, x8, #16
	str	x8, [sp, #184]
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w8, [x27, #28]
	str	w8, [sp, #48]
	str	x25, [sp, #168]
	ldr	w8, [x27, #24]
	str	w8, [sp, #164]
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldp	w1, w8, [x19, #16]
	str	w8, [sp, #96]
	ldr	x8, [x27]
	stp	x8, x23, [sp, #72]
	str	x24, [sp, #88]
	add	x2, sp, #136
	add	x4, sp, #72
	mov	x0, x21
	mov	w3, #1
	bl	_qed_eth_queue_to_cid
	cbz	x0, LBB0_5
; %bb.7:
	mov	x25, x0
	ldr	x8, [x26]
	tst	x8, x23
	b.ne	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _GTT_BAR0_MAP_REG_MSDM_RAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GTT_BAR0_MAP_REG_MSDM_RAM@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	ldr	x0, [x19, #8]
	ldr	x1, [x27]
	bl	_MSTORM_ETH_VF_PRODS_OFFSET
	add	x1, x0, x22
	mov	x0, x21
	mov	w2, #0
	bl	_REG_WR
LBB0_9:
	ldp	w3, w2, [x27, #16]
	ldp	w5, w4, [x27, #8]
	mov	x0, x21
	mov	x1, x25
	bl	_qed_eth_rxq_start_ramrod
	cbz	w0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _PFVF_STATUS_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PFVF_STATUS_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	x22, [x8]
	mov	x0, x21
	mov	x1, x25
	bl	_qed_eth_queue_cid_release
	b	LBB0_5
LBB0_11:
	ldr	x8, [x28]
	add	x8, x8, x24, lsl #4
	str	x25, [x8, #8]
	str	wzr, [x8]
Lloh17:
	adrp	x8, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh19:
	ldr	x22, [x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PFVF_STATUS_NO_RESOURCE,8,3    ; @PFVF_STATUS_NO_RESOURCE
	.comm	_QED_IOV_VALIDATE_Q_DISABLE,4,2 ; @QED_IOV_VALIDATE_Q_DISABLE
	.comm	_QED_IOV_QID_INVALID,8,3        ; @QED_IOV_QID_INVALID
	.comm	_QED_QCID_LEGACY_VF_RX_PROD,8,3 ; @QED_QCID_LEGACY_VF_RX_PROD
	.comm	_GTT_BAR0_MAP_REG_MSDM_RAM,8,3  ; @GTT_BAR0_MAP_REG_MSDM_RAM
	.comm	_PFVF_STATUS_FAILURE,8,3        ; @PFVF_STATUS_FAILURE
	.comm	_PFVF_STATUS_SUCCESS,8,3        ; @PFVF_STATUS_SUCCESS
	.no_dead_strip	_qed_iov_vf_mbx_start_rxq
.subsections_via_symbols
