	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_configure_tx_ring
_i40e_configure_tx_ring:                ## @i40e_configure_tx_ring
	.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, %r15
	movq	32(%rdi), %r14
	movq	64(%rdi), %r12
	addq	32(%r12), %r14
	movq	16(%r12), %rbx
	callq	_ring_is_xdp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_i40e_xsk_umem
	movl	%eax, 56(%r15)
LBB0_2:
	movq	16(%r12), %rax
	movq	_I40E_FLAG_FD_ATR_ENABLED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	16(%rax), %rax
	movq	$0, 48(%r15)
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$24, %rbx
	movq	%rax, 40(%r15)
	movq	%r15, %rdi
	callq	_i40e_config_xps_tx_ring
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	$1, -96(%rbp)
	movl	(%r15), %eax
	leal	127(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$7, %ecx
	movl	%ecx, -92(%rbp)
	movl	4(%r15), %ecx
	movl	%ecx, -88(%rbp)
	movq	16(%r12), %rdx
	movl	(%rdx), %edx
	movq	_I40E_FLAG_FD_SB_ENABLED@GOTPCREL(%rip), %rsi
	movl	(%r13), %edi
	orl	(%rsi), %edi
	xorl	%esi, %esi
	testl	%edx, %edi
	setne	%sil
	movl	%esi, -84(%rbp)
	movq	_I40E_FLAG_PTP@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	andl	(%rsi), %edx
	setne	%dil
	movl	%edi, -80(%rbp)
	movq	(%r12), %rdx
	movq	_I40E_VSI_FDIR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_7
## %bb.6:
	movl	$1, -76(%rbp)
LBB0_7:
	leal	(%rax,%rcx,4), %eax
	movl	%eax, -72(%rbp)
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	leaq	24(%r12), %rdx
	leaq	16(%rcx), %rsi
	testq	%rcx, %rcx
	cmoveq	%rdx, %rsi
	movq	(%rsi), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le16_to_cpu
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i40e_clear_lan_tx_queue_context
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	16(%r12), %rcx
	movq	8(%rcx), %rdi
	movq	32(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i40e_set_lan_tx_queue_context
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	16(%r12), %rcx
	movq	8(%rcx), %rdi
	movq	32(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_dev_info
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	(%rax), %rcx
	movq	_I40E_VSI_VMDQ2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.14:
	movq	_I40E_QTX_CTL_VM_QUEUE@GOTPCREL(%rip), %rdx
	movl	8(%rax), %eax
	jmp	LBB0_15
LBB0_18:
	movq	(%r12), %rax
	movq	_I40E_VSI_VMDQ2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_I40E_QTX_CTL_VM_QUEUE@GOTPCREL(%rip), %rdx
	movl	8(%r12), %eax
LBB0_15:
	movq	_I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_I40E_QTX_CTL_VFVM_INDX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	(%rdx), %eax
	jmp	LBB0_21
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_20:
	movq	_I40E_QTX_CTL_PF_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	24(%r13), %r12d
	movq	_I40E_QTX_CTL_PF_INDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	movq	_I40E_QTX_CTL_PF_INDX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	orl	%eax, %r12d
	movq	%r14, %rdi
	callq	_I40E_QTX_CTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_wr32
	movq	%rbx, %rdi
	callq	_i40e_flush
	movq	32(%r13), %rbx
	movq	%r14, %rdi
	callq	_I40E_QTX_TAIL
	addq	%rbx, %rax
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_FD_ATR_ENABLED,4,2   ## @I40E_FLAG_FD_ATR_ENABLED
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ## @I40E_FLAG_FD_SB_ENABLED
	.comm	_I40E_FLAG_PTP,4,2              ## @I40E_FLAG_PTP
	.comm	_I40E_VSI_FDIR,8,3              ## @I40E_VSI_FDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to clear LAN Tx queue context on Tx ring %d (pf_q %d), error: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set LAN Tx queue context on Tx ring %d (pf_q %d, error: %d\n"

	.comm	_I40E_VSI_VMDQ2,8,3             ## @I40E_VSI_VMDQ2
	.comm	_I40E_QTX_CTL_VM_QUEUE,4,2      ## @I40E_QTX_CTL_VM_QUEUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_QTX_CTL_VFVM_INDX_SHIFT,4,2 ## @I40E_QTX_CTL_VFVM_INDX_SHIFT
	.comm	_I40E_QTX_CTL_VFVM_INDX_MASK,4,2 ## @I40E_QTX_CTL_VFVM_INDX_MASK
	.comm	_I40E_QTX_CTL_PF_QUEUE,4,2      ## @I40E_QTX_CTL_PF_QUEUE
	.comm	_I40E_QTX_CTL_PF_INDX_SHIFT,4,2 ## @I40E_QTX_CTL_PF_INDX_SHIFT
	.comm	_I40E_QTX_CTL_PF_INDX_MASK,4,2  ## @I40E_QTX_CTL_PF_INDX_MASK
	.no_dead_strip	_i40e_configure_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_configure_tx_ring
_i40e_configure_tx_ring:                ; @i40e_configure_tx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x22, [x0, #64]
	ldr	x20, [x22, #32]
	ldr	x21, [x0, #32]
	ldr	x23, [x22, #16]
	bl	_ring_is_xdp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_i40e_xsk_umem
	str	w0, [x19, #56]
LBB0_2:
	add	x20, x21, x20
	add	x21, x23, #24
	ldr	x8, [x22, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x24, _I40E_FLAG_FD_ATR_ENABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _I40E_FLAG_FD_ATR_ENABLED@GOTPAGEOFF]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x8, #16]
	str	xzr, [x19, #48]
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
	str	x8, [x19, #40]
	mov	x0, x19
	bl	_i40e_config_xps_tx_ring
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #1
	ldp	w9, w10, [x19]
	add	w11, w9, #127
	cmp	w9, #0
	csel	w11, w11, w9, lt
	asr	w11, w11, #7
	stp	w8, w11, [sp]
	str	w10, [sp, #8]
	ldr	x11, [x22, #16]
Lloh2:
	adrp	x12, _I40E_FLAG_FD_SB_ENABLED@GOTPAGE
Lloh3:
	ldr	x12, [x12, _I40E_FLAG_FD_SB_ENABLED@GOTPAGEOFF]
	ldr	w11, [x11]
Lloh4:
	ldr	w12, [x12]
	ldr	w13, [x24]
	orr	w12, w13, w12
	tst	w12, w11
	cset	w12, ne
Lloh5:
	adrp	x13, _I40E_FLAG_PTP@GOTPAGE
Lloh6:
	ldr	x13, [x13, _I40E_FLAG_PTP@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x13]
	tst	w13, w11
	cset	w11, ne
	stp	w12, w11, [sp, #12]
	ldr	x11, [x22]
Lloh8:
	adrp	x12, _I40E_VSI_FDIR@GOTPAGE
Lloh9:
	ldr	x12, [x12, _I40E_VSI_FDIR@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	cmp	x11, x12
	b.eq	LBB0_7
; %bb.6:
	str	w8, [sp, #20]
LBB0_7:
	add	w8, w9, w10, lsl #2
	str	w8, [sp, #24]
	ldr	x8, [x19, #24]
	add	x9, x22, #24
	add	x10, x8, #16
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le16_to_cpu
	stp	xzr, x0, [sp, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_i40e_clear_lan_tx_queue_context
	cbz	x0, LBB0_9
; %bb.8:
	mov	x4, x0
	ldr	x8, [x22, #16]
	ldr	x0, [x8, #8]
	ldr	x2, [x19, #32]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_i40e_set_lan_tx_queue_context
	cbz	x0, LBB0_14
; %bb.10:
	mov	x4, x0
	ldr	x8, [x22, #16]
	ldr	x0, [x8, #8]
	ldr	x2, [x19, #32]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x3, x20
	bl	_dev_info
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.15:
	ldr	x9, [x8]
Lloh17:
	adrp	x10, _I40E_VSI_VMDQ2@GOTPAGE
Lloh18:
	ldr	x10, [x10, _I40E_VSI_VMDQ2@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.16:
Lloh20:
	adrp	x9, _I40E_QTX_CTL_VM_QUEUE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I40E_QTX_CTL_VM_QUEUE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w8, [x8, #8]
Lloh23:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	lsl	w8, w8, w10
Lloh26:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	and	w8, w8, w10
	orr	w8, w8, w9
	b	LBB0_21
LBB0_17:
	ldr	x8, [x22]
Lloh29:
	adrp	x9, _I40E_VSI_VMDQ2@GOTPAGE
Lloh30:
	ldr	x9, [x9, _I40E_VSI_VMDQ2@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
Lloh32:
	adrp	x8, _I40E_QTX_CTL_VM_QUEUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I40E_QTX_CTL_VM_QUEUE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
Lloh35:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh38:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGE
Lloh39:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
	b	LBB0_21
LBB0_19:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_20:
Lloh43:
	adrp	x8, _I40E_QTX_CTL_PF_QUEUE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I40E_QTX_CTL_PF_QUEUE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
LBB0_21:
	ldr	w9, [x23, #24]
Lloh46:
	adrp	x10, _I40E_QTX_CTL_PF_INDX_SHIFT@GOTPAGE
Lloh47:
	ldr	x10, [x10, _I40E_QTX_CTL_PF_INDX_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh49:
	adrp	x10, _I40E_QTX_CTL_PF_INDX_MASK@GOTPAGE
Lloh50:
	ldr	x10, [x10, _I40E_QTX_CTL_PF_INDX_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w22, w9, w8
	mov	x0, x20
	bl	_I40E_QTX_CTL
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	ldr	x21, [x23, #32]
	mov	x0, x20
	bl	_I40E_QTX_TAIL
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, x21
	str	x8, [x19, #16]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_FD_ATR_ENABLED,4,2   ; @I40E_FLAG_FD_ATR_ENABLED
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ; @I40E_FLAG_FD_SB_ENABLED
	.comm	_I40E_FLAG_PTP,4,2              ; @I40E_FLAG_PTP
	.comm	_I40E_VSI_FDIR,8,3              ; @I40E_VSI_FDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to clear LAN Tx queue context on Tx ring %d (pf_q %d), error: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set LAN Tx queue context on Tx ring %d (pf_q %d, error: %d\n"

	.comm	_I40E_VSI_VMDQ2,8,3             ; @I40E_VSI_VMDQ2
	.comm	_I40E_QTX_CTL_VM_QUEUE,4,2      ; @I40E_QTX_CTL_VM_QUEUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_QTX_CTL_VFVM_INDX_SHIFT,4,2 ; @I40E_QTX_CTL_VFVM_INDX_SHIFT
	.comm	_I40E_QTX_CTL_VFVM_INDX_MASK,4,2 ; @I40E_QTX_CTL_VFVM_INDX_MASK
	.comm	_I40E_QTX_CTL_PF_QUEUE,4,2      ; @I40E_QTX_CTL_PF_QUEUE
	.comm	_I40E_QTX_CTL_PF_INDX_SHIFT,4,2 ; @I40E_QTX_CTL_PF_INDX_SHIFT
	.comm	_I40E_QTX_CTL_PF_INDX_MASK,4,2  ; @I40E_QTX_CTL_PF_INDX_MASK
	.no_dead_strip	_i40e_configure_tx_ring
.subsections_via_symbols
