	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_config_vsi_tx_queue
_i40e_config_vsi_tx_queue:              ## @i40e_config_vsi_tx_queue
	.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	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movl	16(%rcx), %esi
	callq	_i40e_vc_isvalid_vsi_id
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_i40e_vc_get_pf_queue_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_i40e_find_vsi_from_id
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	leaq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	(%r12), %eax
	leal	127(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$7, %ecx
	movl	%ecx, -88(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -60(%rbp)
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	4(%r12), %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, -84(%rbp)
	movq	%r12, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_i40e_clear_lan_tx_queue_context
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	-88(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_i40e_set_lan_tx_queue_context
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_I40E_QTX_CTL_VF_QUEUE@GOTPCREL(%rip), %rax
	movq	_I40E_QTX_CTL_PF_INDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	8(%r15), %edx
	shll	%cl, %edx
	movq	_I40E_QTX_CTL_PF_INDX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	(%rax), %edx
	movl	12(%r15), %ebx
	addl	(%r13), %ebx
	movq	_I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_I40E_QTX_CTL_VFVM_INDX_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%edx, %ebx
	movl	%r14d, %edi
	callq	_I40E_QTX_CTL
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to clear VF LAN Tx queue context %d, error: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to set VF LAN Tx queue context %d error: %d\n"

	.comm	_I40E_QTX_CTL_VF_QUEUE,4,2      ## @I40E_QTX_CTL_VF_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
	.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
	.no_dead_strip	_i40e_config_vsi_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_config_vsi_tx_queue
_i40e_config_vsi_tx_queue:              ; @i40e_config_vsi_tx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w1, [x3, #16]
	bl	_i40e_vc_isvalid_vsi_id
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_i40e_vc_get_pf_queue_id
	mov	x19, x0
	mov	x0, x20
	mov	x1, x22
	bl	_i40e_find_vsi_from_id
	cbz	x0, LBB0_7
; %bb.2:
	mov	x24, x0
	add	x22, x20, #8
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x23]
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	ldr	w9, [x23, #12]
	str	w8, [sp]
	str	w9, [sp, #28]
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	str	w0, [sp, #24]
	str	xzr, [sp, #16]
	ldur	d0, [x23, #4]
	stur	d0, [sp, #4]
	mov	x0, x22
	mov	x1, x19
	bl	_i40e_clear_lan_tx_queue_context
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x2, sp
	mov	x0, x22
	mov	x1, x19
	bl	_i40e_set_lan_tx_queue_context
	cbz	w0, LBB0_9
; %bb.5:
	mov	x3, x0
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x19
	bl	_dev_err
LBB0_7:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh7:
	adrp	x8, _I40E_QTX_CTL_VF_QUEUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_QTX_CTL_VF_QUEUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _I40E_QTX_CTL_PF_INDX_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I40E_QTX_CTL_PF_INDX_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldp	w10, w11, [x20, #8]
	lsl	w9, w10, w9
Lloh13:
	adrp	x10, _I40E_QTX_CTL_PF_INDX_MASK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _I40E_QTX_CTL_PF_INDX_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x21]
	add	w9, w11, w9
Lloh16:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh19:
	adrp	x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _I40E_QTX_CTL_VFVM_INDX_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w20, w8, w9
	mov	x0, x19
	bl	_I40E_QTX_CTL
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	bl	_wr32
	mov	x0, x22
	bl	_i40e_flush
	mov	w0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to clear VF LAN Tx queue context %d, error: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to set VF LAN Tx queue context %d error: %d\n"

	.comm	_I40E_QTX_CTL_VF_QUEUE,4,2      ; @I40E_QTX_CTL_VF_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
	.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
	.no_dead_strip	_i40e_config_vsi_tx_queue
.subsections_via_symbols
