	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function i40e_config_vsi_rx_queue
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_i40e_config_vsi_rx_queue:              ## @i40e_config_vsi_rx_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	(%rdi), %r15
	callq	_i40e_vc_get_pf_queue_id
	movl	%eax, %r14d
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	(%rbx), %eax
	leal	127(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$7, %ecx
	movl	%ecx, -72(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -28(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_I40E_RX_SPLIT_L2@GOTPCREL(%rip), %rax
	movq	_I40E_RX_SPLIT_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_I40E_RX_SPLIT_TCP_UDP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_I40E_RX_SPLIT_SCTP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -68(%rbp)
	movl	4(%rbx), %eax
	cmpl	$1985, %eax                     ## imm = 0x7C1
	jge	LBB0_2
## %bb.3:
	movq	_I40E_RXQ_CTX_HBUFF_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, -64(%rbp)
	movq	_I40E_RX_DTYPE_HEADER_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
LBB0_4:
	movl	8(%rbx), %eax
	cmpl	$16257, %eax                    ## imm = 0x3F81
	jge	LBB0_2
## %bb.5:
	movq	_I40E_RXQ_CTX_DBUFF_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, -60(%rbp)
	movl	12(%rbx), %eax
	leal	-16384(%rax), %ecx
	cmpl	$-16321, %ecx                   ## imm = 0xC03F
	ja	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	8(%r15), %rbx
	movl	%eax, -56(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, -52(%rbp)
	movl	$1, -36(%rbp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_i40e_clear_lan_rx_queue_context
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_i40e_set_lan_rx_queue_context
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_RX_SPLIT_L2,4,2           ## @I40E_RX_SPLIT_L2
	.comm	_I40E_RX_SPLIT_IP,4,2           ## @I40E_RX_SPLIT_IP
	.comm	_I40E_RX_SPLIT_TCP_UDP,4,2      ## @I40E_RX_SPLIT_TCP_UDP
	.comm	_I40E_RX_SPLIT_SCTP,4,2         ## @I40E_RX_SPLIT_SCTP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_RXQ_CTX_HBUFF_SHIFT,4,2   ## @I40E_RXQ_CTX_HBUFF_SHIFT
	.comm	_I40E_RX_DTYPE_HEADER_SPLIT,4,2 ## @I40E_RX_DTYPE_HEADER_SPLIT
	.comm	_I40E_RXQ_CTX_DBUFF_SHIFT,4,2   ## @I40E_RXQ_CTX_DBUFF_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to clear VF LAN Rx queue context %d, error: %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set VF LAN Rx queue context %d error: %d\n"

	.no_dead_strip	_i40e_config_vsi_rx_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_rx_queue
_i40e_config_vsi_rx_queue:              ; @i40e_config_vsi_rx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	ldr	x21, [x0]
	bl	_i40e_vc_get_pf_queue_id
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w8, [x20]
	add	w9, w8, #127
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #7
	ldr	w9, [x20, #24]
	str	w8, [sp]
	str	w9, [sp, #44]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _I40E_RX_SPLIT_L2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_RX_SPLIT_L2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I40E_RX_SPLIT_IP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_RX_SPLIT_IP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I40E_RX_SPLIT_TCP_UDP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_RX_SPLIT_TCP_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _I40E_RX_SPLIT_SCTP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I40E_RX_SPLIT_SCTP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [sp, #4]
	ldr	w8, [x20, #4]
	cmp	w8, #1985
	b.ge	LBB0_5
; %bb.2:
Lloh12:
	adrp	x9, _I40E_RXQ_CTX_HBUFF_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_RXQ_CTX_HBUFF_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh15:
	adrp	x9, _I40E_RX_DTYPE_HEADER_SPLIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_RX_DTYPE_HEADER_SPLIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w8, [sp, #8]
	str	w9, [sp, #40]
LBB0_3:
	ldr	w8, [x20, #8]
	mov	w9, #16257
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:
Lloh18:
	adrp	x9, _I40E_RXQ_CTX_DBUFF_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I40E_RXQ_CTX_DBUFF_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [sp, #12]
	ldr	w8, [x20, #12]
	sub	w9, w8, #4, lsl #12             ; =16384
	mov	w10, #-16321
	cmp	w9, w10
	b.hi	LBB0_8
LBB0_5:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	add	x20, x21, #8
	str	w8, [sp, #16]
	movi.4s	v0, #1
	stur	q0, [sp, #20]
	mov	w8, #1
	str	w8, [sp, #36]
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_clear_lan_rx_queue_context
	cbz	w0, LBB0_10
; %bb.9:
	mov	x3, x0
	ldr	x0, [x21]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_i40e_set_lan_rx_queue_context
	cbz	w0, LBB0_7
; %bb.11:
	mov	x3, x0
	ldr	x0, [x21]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x2, x19
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_RX_SPLIT_L2,4,2           ; @I40E_RX_SPLIT_L2
	.comm	_I40E_RX_SPLIT_IP,4,2           ; @I40E_RX_SPLIT_IP
	.comm	_I40E_RX_SPLIT_TCP_UDP,4,2      ; @I40E_RX_SPLIT_TCP_UDP
	.comm	_I40E_RX_SPLIT_SCTP,4,2         ; @I40E_RX_SPLIT_SCTP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_RXQ_CTX_HBUFF_SHIFT,4,2   ; @I40E_RXQ_CTX_HBUFF_SHIFT
	.comm	_I40E_RX_DTYPE_HEADER_SPLIT,4,2 ; @I40E_RX_DTYPE_HEADER_SPLIT
	.comm	_I40E_RXQ_CTX_DBUFF_SHIFT,4,2   ; @I40E_RXQ_CTX_DBUFF_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to clear VF LAN Rx queue context %d, error: %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set VF LAN Rx queue context %d error: %d\n"

	.no_dead_strip	_i40e_config_vsi_rx_queue
.subsections_via_symbols
