	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_vfdi_init_txq
_efx_vfdi_init_txq:                     ## @efx_vfdi_init_txq
	.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	$72, %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	24(%rdi), %r12
	movq	32(%rdi), %r15
	movl	(%r12), %ebx
	movl	4(%r12), %r13d
	movl	8(%r12), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_EFX_BUFTBL_TXQ_BASE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-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	4(%r15), %edx
	movl	20(%r14), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_netif_err
	addq	$16, %rsp
LBB0_9:
	movl	(%rbx), %eax
	addq	$72, %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_tx_channels@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_4
## %bb.3:
	movq	_EFX_MAX_DMAQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%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
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r12), %edi
	movl	16(%r14), %esi
	callq	___test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	12(%r14)
LBB0_8:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	16(%r12), %edx
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_efx_siena_sriov_bufs
	movq	(%r14), %rax
	movq	_VF_TX_FILTER_ON@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	12(%r12), %ebx
	movq	_FRF_AZ_TX_DESCQ_LABEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_EFX_FIELD_MASK
                                        ## kill: def $eax killed $eax def $rax
	andl	%ebx, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_FRF_CZ_TX_DPT_Q_MASK_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_min
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_FRF_CZ_TX_DPT_ETH_FILT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_TX_DESCQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_TX_DESCQ_BUF_BASE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_FRF_AZ_TX_DESCQ_EVQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_abs_index
	movl	%eax, %r13d
	movl	(%r12), %ebx
	movq	_FRF_AZ_TX_DESCQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	___ffs
                                        ## kill: def $eax killed $eax def $rax
	movq	_FRF_BZ_TX_NON_IP_DROP_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	$8, %rsp
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%rdi
	pushq	%rax
	pushq	%r12
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r13
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	$1
	callq	_EFX_POPULATE_OWORD_8
	addq	$96, %rsp
	movq	_FR_BZ_TX_DESC_PTR_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_abs_index
	leaq	-108(%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_tx_channels,4,2         ## @vf_max_tx_channels
	.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_TXQ from %s: txq %d evq %d buf_count %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ## @VFDI_RC_EINVAL
	.comm	_VF_TX_FILTER_ON,8,3            ## @VF_TX_FILTER_ON
	.comm	_FRF_AZ_TX_DESCQ_LABEL,4,2      ## @FRF_AZ_TX_DESCQ_LABEL
	.comm	_FRF_CZ_TX_DPT_Q_MASK_WIDTH,4,2 ## @FRF_CZ_TX_DPT_Q_MASK_WIDTH
	.comm	_FRF_CZ_TX_DPT_ETH_FILT_EN,4,2  ## @FRF_CZ_TX_DPT_ETH_FILT_EN
	.comm	_FRF_AZ_TX_DESCQ_EN,4,2         ## @FRF_AZ_TX_DESCQ_EN
	.comm	_FRF_AZ_TX_DESCQ_BUF_BASE_ID,4,2 ## @FRF_AZ_TX_DESCQ_BUF_BASE_ID
	.comm	_FRF_AZ_TX_DESCQ_EVQ_ID,4,2     ## @FRF_AZ_TX_DESCQ_EVQ_ID
	.comm	_FRF_AZ_TX_DESCQ_SIZE,4,2       ## @FRF_AZ_TX_DESCQ_SIZE
	.comm	_FRF_BZ_TX_NON_IP_DROP_DIS,4,2  ## @FRF_BZ_TX_NON_IP_DROP_DIS
	.comm	_FR_BZ_TX_DESC_PTR_TBL,4,2      ## @FR_BZ_TX_DESC_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ## @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_txq
.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_txq
_efx_vfdi_init_txq:                     ; @efx_vfdi_init_txq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, #24]
	ldp	w20, w23, [x26]
	ldr	w22, [x26, #8]
	mov	x1, x20
	bl	_EFX_BUFTBL_TXQ_BASE
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	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_tx_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vf_max_tx_channels@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, #4]
	ldr	w4, [x21, #20]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x20
	mov	x6, x23
	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, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	add	x25, x21, #8
	mov	x0, x25
	bl	_mutex_lock
	ldr	w0, [x26]
	ldr	w1, [x21, #16]
	bl	___test_and_set_bit
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
LBB0_9:
	mov	x0, x25
	bl	_mutex_unlock
	ldr	w2, [x26, #16]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x22
	bl	_efx_siena_sriov_bufs
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _VF_TX_FILTER_ON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VF_TX_FILTER_ON@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	ldr	w25, [x26, #12]
Lloh16:
	adrp	x26, _FRF_AZ_TX_DESCQ_LABEL@GOTPAGE
Lloh17:
	ldr	x26, [x26, _FRF_AZ_TX_DESCQ_LABEL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_EFX_FIELD_MASK
	and	w8, w0, w25
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x8, _FRF_CZ_TX_DPT_Q_MASK_WIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FRF_CZ_TX_DPT_Q_MASK_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	w0, [x19]
	mov	w1, #1
	bl	_min
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
Lloh21:
	adrp	x8, _FRF_CZ_TX_DPT_ETH_FILT_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FRF_CZ_TX_DPT_ETH_FILT_EN@GOTPAGEOFF]
Lloh23:
	ldr	w28, [x8]
Lloh24:
	adrp	x8, _FRF_AZ_TX_DESCQ_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FRF_AZ_TX_DESCQ_EN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
Lloh27:
	adrp	x8, _FRF_AZ_TX_DESCQ_BUF_BASE_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FRF_AZ_TX_DESCQ_BUF_BASE_ID@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh30:
	adrp	x8, _FRF_AZ_TX_DESCQ_EVQ_ID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FRF_AZ_TX_DESCQ_EVQ_ID@GOTPAGEOFF]
Lloh32:
	ldr	w27, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_abs_index
	mov	x23, x0
	ldr	w25, [x26]
Lloh33:
	adrp	x8, _FRF_AZ_TX_DESCQ_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FRF_AZ_TX_DESCQ_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w26, [x8]
	mov	x0, x22
	bl	___ffs
Lloh36:
	adrp	x8, _FRF_BZ_TX_NON_IP_DROP_DIS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FRF_BZ_TX_NON_IP_DROP_DIS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [sp, #28]
	stp	w26, w0, [sp, #20]
	ldp	w8, w1, [sp, #48]               ; 8-byte Folded Reload
	stp	w25, w8, [sp, #12]
	stp	w27, w23, [sp, #4]
	str	w24, [sp]
	ldp	w5, w2, [sp, #40]               ; 8-byte Folded Reload
	mov	x3, x28
	ldr	w4, [sp, #56]                   ; 4-byte Folded Reload
	mov	w6, #1
	ldr	w7, [sp, #36]                   ; 4-byte Folded Reload
	bl	_EFX_POPULATE_OWORD_8
Lloh39:
	adrp	x8, _FR_BZ_TX_DESC_PTR_TBL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FR_BZ_TX_DESC_PTR_TBL@GOTPAGEOFF]
Lloh41:
	ldr	w22, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_abs_index
	mov	x3, x0
	add	x1, sp, #60
	mov	x0, x19
	mov	x2, x22
	bl	_efx_writeo_table
Lloh42:
	adrp	x8, _VFDI_RC_SUCCESS@GOTPAGE
Lloh43:
	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	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.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 AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_vf_max_tx_channels,4,2         ; @vf_max_tx_channels
	.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_TXQ from %s: txq %d evq %d buf_count %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ; @VFDI_RC_EINVAL
	.comm	_VF_TX_FILTER_ON,8,3            ; @VF_TX_FILTER_ON
	.comm	_FRF_AZ_TX_DESCQ_LABEL,4,2      ; @FRF_AZ_TX_DESCQ_LABEL
	.comm	_FRF_CZ_TX_DPT_Q_MASK_WIDTH,4,2 ; @FRF_CZ_TX_DPT_Q_MASK_WIDTH
	.comm	_FRF_CZ_TX_DPT_ETH_FILT_EN,4,2  ; @FRF_CZ_TX_DPT_ETH_FILT_EN
	.comm	_FRF_AZ_TX_DESCQ_EN,4,2         ; @FRF_AZ_TX_DESCQ_EN
	.comm	_FRF_AZ_TX_DESCQ_BUF_BASE_ID,4,2 ; @FRF_AZ_TX_DESCQ_BUF_BASE_ID
	.comm	_FRF_AZ_TX_DESCQ_EVQ_ID,4,2     ; @FRF_AZ_TX_DESCQ_EVQ_ID
	.comm	_FRF_AZ_TX_DESCQ_SIZE,4,2       ; @FRF_AZ_TX_DESCQ_SIZE
	.comm	_FRF_BZ_TX_NON_IP_DROP_DIS,4,2  ; @FRF_BZ_TX_NON_IP_DROP_DIS
	.comm	_FR_BZ_TX_DESC_PTR_TBL,4,2      ; @FR_BZ_TX_DESC_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ; @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_txq
.subsections_via_symbols
