	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_client_update_vsi_ctxt
_i40e_client_update_vsi_ctxt:           ## @i40e_client_update_vsi_ctxt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%r9d, %r12d
	movl	%r8d, %r15d
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %eax
	movl	%eax, -48(%rbp)
	leaq	8(%r13), %r14
	movl	12(%r13), %eax
	movl	%eax, -52(%rbp)
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i40e_aq_get_vsi_params
	movq	_I40E_AQ_VSI_TYPE_PF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%r13), %r15
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %r12d
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_i40e_aq_str
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	_I40E_CLIENT_VSI_FLAG_TCP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	andl	%r15d, %eax
	testl	%r12d, %ecx
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	_I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
	jmp	LBB0_10
LBB0_7:
	testl	%r12d, %ecx
	je	LBB0_13
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	_I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	_I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -72(%rbp)
LBB0_10:
	movq	(%rbx), %rdi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_i40e_aq_update_vsi_params
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	movq	16(%r13), %r12
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i40e_stat_str
	movl	%eax, %ebx
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movl	%r15d, %ebx
	jmp	LBB0_12
LBB0_13:
	movq	16(%r13), %rdi
	movl	12(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_warn
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_AQ_VSI_TYPE_PF,4,2        ## @I40E_AQ_VSI_TYPE_PF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get PF vsi config, err %s aq_err %s\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_I40E_CLIENT_VSI_FLAG_TCP_ENABLE,4,2 ## @I40E_CLIENT_VSI_FLAG_TCP_ENABLE
	.comm	_I40E_AQ_VSI_PROP_QUEUE_OPT_VALID,4,2 ## @I40E_AQ_VSI_PROP_QUEUE_OPT_VALID
	.comm	_I40E_AQ_VSI_QUE_OPT_TCP_ENA,4,2 ## @I40E_AQ_VSI_QUE_OPT_TCP_ENA
L_.str.1:                               ## @.str.1
	.asciz	"Client for PF id %d request an unsupported Config: %x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"update VSI ctxt for PE failed, err %s aq_err %s\n"

	.no_dead_strip	_i40e_client_update_vsi_ctxt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_client_update_vsi_ctxt
_i40e_client_update_vsi_ctxt:           ; @i40e_client_update_vsi_ctxt
	.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
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x21, x5
	mov	x20, x4
	ldr	x23, [x0]
	ldr	x8, [x23, #32]
	ldr	x9, [x23]
	ldr	x22, [x8, x9, lsl #3]
	ldr	w8, [x23, #24]
	str	w8, [sp, #24]
	add	x19, x23, #8
	ldr	w8, [x23, #12]
	str	w8, [sp, #20]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_i40e_aq_get_vsi_params
Lloh2:
	adrp	x8, _I40E_AQ_VSI_TYPE_PF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_AQ_VSI_TYPE_PF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	cbz	w0, LBB0_6
; %bb.3:
	mov	x1, x0
	ldr	x20, [x23, #16]
	mov	x0, x19
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_info
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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_6:
Lloh9:
	adrp	x8, _I40E_CLIENT_VSI_FLAG_TCP_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_CLIENT_VSI_FLAG_TCP_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	and	w8, w9, w21
	and	w9, w9, w20
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_9
; %bb.7:
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_10
; %bb.8:
	ldr	x0, [x23, #16]
	ldr	w2, [x23, #12]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_warn
	mov	w20, #0
	b	LBB0_5
LBB0_9:
Lloh14:
	adrp	x8, _I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh17:
	adrp	x8, _I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40E_AQ_VSI_PROP_QUEUE_OPT_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh23:
	adrp	x8, _I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I40E_AQ_VSI_QUE_OPT_TCP_ENA@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp]
	bic	w8, w9, w8
LBB0_11:
	str	w8, [sp]
	ldr	x0, [x22]
	mov	x1, sp
	mov	x2, #0
	bl	_i40e_aq_update_vsi_params
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.12:
	ldr	x21, [x23, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_stat_str
	mov	x22, x0
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_i40e_aq_str
	mov	x3, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_info
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_AQ_VSI_TYPE_PF,4,2        ; @I40E_AQ_VSI_TYPE_PF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get PF vsi config, err %s aq_err %s\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_I40E_CLIENT_VSI_FLAG_TCP_ENABLE,4,2 ; @I40E_CLIENT_VSI_FLAG_TCP_ENABLE
	.comm	_I40E_AQ_VSI_PROP_QUEUE_OPT_VALID,4,2 ; @I40E_AQ_VSI_PROP_QUEUE_OPT_VALID
	.comm	_I40E_AQ_VSI_QUE_OPT_TCP_ENA,4,2 ; @I40E_AQ_VSI_QUE_OPT_TCP_ENA
l_.str.1:                               ; @.str.1
	.asciz	"Client for PF id %d request an unsupported Config: %x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"update VSI ctxt for PE failed, err %s aq_err %s\n"

	.no_dead_strip	_i40e_client_update_vsi_ctxt
.subsections_via_symbols
