	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_trust          ## -- Begin function i40e_ndo_set_vf_trust
	.p2align	4, 0x90
_i40e_ndo_set_vf_trust:                 ## @i40e_ndo_set_vf_trust
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	8(%r13), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	cmpl	%r14d, (%r13)
	jle	LBB0_3
## %bb.4:
	movq	_I40E_FLAG_MFP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_7
## %bb.5:
	movq	16(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	movq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	movl	(%r12), %edi
	movl	8(%r13), %esi
	callq	_clear_bit
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	24(%r13), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax,%rcx)
	je	LBB0_11
## %bb.8:
	leaq	(%rax,%rcx), %rdi
	movl	%r15d, (%rdi)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_i40e_vc_disable_vf
	movq	16(%r13), %rdi
	testl	%r15d, %r15d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.10:
	movq	16(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	callq	_i40e_del_all_cloud_filters
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ## @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_FLAG_MFP_ENABLED,4,2      ## @I40E_FLAG_MFP_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"Trusted VF not supported in MFP mode.\n"

L_.str.3:                               ## @.str.3
	.asciz	"VF %u is now %strusted\n"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"un"

L_.str.6:                               ## @.str.6
	.asciz	"VF %u no longer Trusted, deleting all cloud filters\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ndo_set_vf_trust          ; -- Begin function i40e_ndo_set_vf_trust
	.p2align	2
_i40e_ndo_set_vf_trust:                 ; @i40e_ndo_set_vf_trust
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x23, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x22, #8]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x22, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
	ldr	w8, [x22, #4]
Lloh7:
	adrp	x9, _I40E_FLAG_MFP_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I40E_FLAG_MFP_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	ldr	x0, [x22, #16]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	x0, [x22, #16]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	ldr	w0, [x23]
	ldr	w1, [x22, #8]
	bl	_clear_bit
LBB0_8:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	x24, [x22, #24]
	add	x21, x24, w19, sxtw #4
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_13
; %bb.10:
	sxtw	x25, w19
	str	w20, [x21]
	mov	x0, x21
	bl	_i40e_vc_disable_vf
	ldr	x0, [x22, #16]
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh19:
	adrp	x9, l_.str.5@PAGE
Lloh20:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	add	x8, x24, x25, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	w8, [x21]
	cbnz	w8, LBB0_13
; %bb.12:
	ldr	x0, [x22, #16]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	mov	x0, x21
	bl	_i40e_del_all_cloud_filters
LBB0_13:
	mov	w19, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ; @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid VF Identifier %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_FLAG_MFP_ENABLED,4,2      ; @I40E_FLAG_MFP_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"Trusted VF not supported in MFP mode.\n"

l_.str.3:                               ; @.str.3
	.asciz	"VF %u is now %strusted\n"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"un"

l_.str.6:                               ; @.str.6
	.asciz	"VF %u no longer Trusted, deleting all cloud filters\n"

.subsections_via_symbols
