	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_vfdi_init_rxq
_efx_vfdi_init_rxq:                     ## @efx_vfdi_init_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	24(%rdi), %r15
	movl	(%r12), %ebx
	movl	4(%r12), %r13d
	movl	8(%r12), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_EFX_BUFTBL_RXQ_BASE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_bad_vf_index
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movl	%ebx, %r12d
	xorl	%eax, %eax
	callq	_net_ratelimit
	movq	_VFDI_RC_EINVAL@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	8(%r14), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_netif_err
	addq	$16, %rsp
LBB0_9:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bad_vf_index
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_VF_MAX_RX_QUEUES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_4
## %bb.3:
	movq	_EFX_MAX_DMAQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_bad_buf_count
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movl	4(%r14), %esi
	callq	___test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	(%r14)
LBB0_8:
	movl	20(%r12), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_efx_siena_sriov_bufs
	movl	12(%r12), %ebx
	movq	_FRF_AZ_RX_DESCQ_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EFX_FIELD_MASK
                                        ## kill: def $eax killed $eax def $rax
	andl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_FRF_AZ_RX_DESCQ_BUF_BASE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_RX_DESCQ_EVQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_abs_index
	movl	%eax, %r13d
	movq	_FRF_AZ_RX_DESCQ_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_RX_DESCQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	___ffs
                                        ## kill: def $eax killed $eax def $rax
	movq	_FRF_AZ_RX_DESCQ_JUMBO@GOTPCREL(%rip), %rcx
	movq	_VFDI_RXQ_FLAG_SCATTER_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	andl	16(%r12), %edx
	movl	(%rcx), %r10d
	setne	%dil
	movq	_FRF_AZ_RX_DESCQ_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%rbx
	pushq	%rdi
	pushq	%r10
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_EFX_POPULATE_OWORD_6
	addq	$64, %rsp
	movq	_FR_BZ_RX_DESC_PTR_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_abs_index
	leaq	-92(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_efx_writeo_table
	movq	_VFDI_RC_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_VF_MAX_RX_QUEUES,4,2           ## @VF_MAX_RX_QUEUES
	.comm	_EFX_MAX_DMAQ_SIZE,4,2          ## @EFX_MAX_DMAQ_SIZE
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Invalid INIT_RXQ from %s: rxq %d evq %d buf_count %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ## @VFDI_RC_EINVAL
	.comm	_FRF_AZ_RX_DESCQ_LABEL,4,2      ## @FRF_AZ_RX_DESCQ_LABEL
	.comm	_FRF_AZ_RX_DESCQ_BUF_BASE_ID,4,2 ## @FRF_AZ_RX_DESCQ_BUF_BASE_ID
	.comm	_FRF_AZ_RX_DESCQ_EVQ_ID,4,2     ## @FRF_AZ_RX_DESCQ_EVQ_ID
	.comm	_FRF_AZ_RX_DESCQ_SIZE,4,2       ## @FRF_AZ_RX_DESCQ_SIZE
	.comm	_FRF_AZ_RX_DESCQ_JUMBO,4,2      ## @FRF_AZ_RX_DESCQ_JUMBO
	.comm	_VFDI_RXQ_FLAG_SCATTER_EN,4,2   ## @VFDI_RXQ_FLAG_SCATTER_EN
	.comm	_FRF_AZ_RX_DESCQ_EN,4,2         ## @FRF_AZ_RX_DESCQ_EN
	.comm	_FR_BZ_RX_DESC_PTR_TBL,4,2      ## @FR_BZ_RX_DESC_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ## @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_rxq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_vfdi_init_rxq
_efx_vfdi_init_rxq:                     ; @efx_vfdi_init_rxq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
	ldp	x26, x19, [x0, #16]
	ldp	w20, w24, [x26]
	ldr	w22, [x26, #8]
	mov	x1, x20
	bl	_EFX_BUFTBL_RXQ_BASE
	mov	x23, x0
	mov	x0, x19
	mov	x1, x24
	bl	_bad_vf_index
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_bad_vf_index
Lloh0:
	adrp	x8, _VF_MAX_RX_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VF_MAX_RX_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w20, w8, #2, eq
	b.hs	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EFX_MAX_DMAQ_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_MAX_DMAQ_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_bad_buf_count
	cbz	x0, LBB0_7
LBB0_3:
	bl	_net_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21, #8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x20
	mov	x6, x24
	mov	x7, x22
	bl	_netif_err
LBB0_5:
Lloh11:
	adrp	x8, _VFDI_RC_EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VFDI_RC_EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	ldr	w0, [x26]
	ldr	w1, [x21, #4]
	bl	___test_and_set_bit
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
LBB0_9:
	ldr	w2, [x26, #20]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_efx_siena_sriov_bufs
	ldr	w25, [x26, #12]
Lloh13:
	adrp	x28, _FRF_AZ_RX_DESCQ_LABEL@GOTPAGE
Lloh14:
	ldr	x28, [x28, _FRF_AZ_RX_DESCQ_LABEL@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_EFX_FIELD_MASK
	and	w8, w0, w25
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _FRF_AZ_RX_DESCQ_BUF_BASE_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FRF_AZ_RX_DESCQ_BUF_BASE_ID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x8, _FRF_AZ_RX_DESCQ_EVQ_ID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FRF_AZ_RX_DESCQ_EVQ_ID@GOTPAGEOFF]
Lloh20:
	ldr	w27, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_abs_index
	mov	x24, x0
	ldr	w28, [x28]
Lloh21:
	adrp	x8, _FRF_AZ_RX_DESCQ_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FRF_AZ_RX_DESCQ_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w25, [x8]
	mov	x0, x22
	bl	___ffs
Lloh24:
	adrp	x8, _FRF_AZ_RX_DESCQ_JUMBO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FRF_AZ_RX_DESCQ_JUMBO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x26, #16]
Lloh27:
	adrp	x10, _VFDI_RXQ_FLAG_SCATTER_EN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _VFDI_RXQ_FLAG_SCATTER_EN@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
Lloh30:
	adrp	x10, _FRF_AZ_RX_DESCQ_EN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _FRF_AZ_RX_DESCQ_EN@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	mov	w11, #1
	stp	w10, w11, [sp, #12]
	stp	w8, w9, [sp, #4]
	str	w0, [sp]
	ldp	w1, w6, [sp, #20]               ; 8-byte Folded Reload
	mov	x2, x23
	mov	x3, x27
	mov	x4, x24
	mov	x5, x28
	mov	x7, x25
	bl	_EFX_POPULATE_OWORD_6
Lloh33:
	adrp	x8, _FR_BZ_RX_DESC_PTR_TBL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FR_BZ_RX_DESC_PTR_TBL@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_abs_index
	mov	x3, x0
	add	x1, sp, #28
	mov	x0, x19
	mov	x2, x22
	bl	_efx_writeo_table
Lloh36:
	adrp	x8, _VFDI_RC_SUCCESS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VFDI_RC_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VF_MAX_RX_QUEUES,4,2           ; @VF_MAX_RX_QUEUES
	.comm	_EFX_MAX_DMAQ_SIZE,4,2          ; @EFX_MAX_DMAQ_SIZE
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Invalid INIT_RXQ from %s: rxq %d evq %d buf_count %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ; @VFDI_RC_EINVAL
	.comm	_FRF_AZ_RX_DESCQ_LABEL,4,2      ; @FRF_AZ_RX_DESCQ_LABEL
	.comm	_FRF_AZ_RX_DESCQ_BUF_BASE_ID,4,2 ; @FRF_AZ_RX_DESCQ_BUF_BASE_ID
	.comm	_FRF_AZ_RX_DESCQ_EVQ_ID,4,2     ; @FRF_AZ_RX_DESCQ_EVQ_ID
	.comm	_FRF_AZ_RX_DESCQ_SIZE,4,2       ; @FRF_AZ_RX_DESCQ_SIZE
	.comm	_FRF_AZ_RX_DESCQ_JUMBO,4,2      ; @FRF_AZ_RX_DESCQ_JUMBO
	.comm	_VFDI_RXQ_FLAG_SCATTER_EN,4,2   ; @VFDI_RXQ_FLAG_SCATTER_EN
	.comm	_FRF_AZ_RX_DESCQ_EN,4,2         ; @FRF_AZ_RX_DESCQ_EN
	.comm	_FR_BZ_RX_DESC_PTR_TBL,4,2      ; @FR_BZ_RX_DESC_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ; @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_rxq
.subsections_via_symbols
