	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_trust               ## -- Begin function ice_set_vf_trust
	.p2align	4, 0x90
_ice_set_vf_trust:                      ## @ice_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %rbx
	cmpl	%r15d, (%rbx)
	jle	LBB0_1
## %bb.3:
	movq	16(%rbx), %r12
	movslq	%r15d, %r13
	movq	_ICE_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12,%r13,8), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	(%r12,%r13,8), %rdi
	xorl	%r12d, %r12d
	cmpl	%r14d, (%rdi)
	je	LBB0_7
## %bb.6:
	movl	%r14d, (%rdi)
	callq	_ice_vc_dis_vf
	movq	8(%rbx), %rdi
	testl	%r14d, %r14d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_7
LBB0_1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid VF id: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_VF_STATE_INIT,4,2          ## @ICE_VF_STATE_INIT
L_.str.1:                               ## @.str.1
	.asciz	"VF %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"VF %u is now %strusted\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_trust               ; -- Begin function ice_set_vf_trust
	.p2align	2
_ice_set_vf_trust:                      ; @ice_set_vf_trust
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.1:
	ldr	x8, [x22, #16]
	add	x21, x8, w19, sxtw #3
Lloh0:
	adrp	x8, _ICE_VF_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VF_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
	str	w20, [x21]
	mov	x0, x21
	bl	_ice_vc_dis_vf
	ldr	x0, [x22, #8]
Lloh3:
	adrp	x8, l_.str.3@PAGE
Lloh4:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh5:
	adrp	x9, l_.str.4@PAGE
Lloh6:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w20, #0
	csel	x3, x9, x8, eq
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_info
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	x0, [x22, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x0, [x22, #8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid VF id: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_VF_STATE_INIT,4,2          ; @ICE_VF_STATE_INIT
l_.str.1:                               ; @.str.1
	.asciz	"VF %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"VF %u is now %strusted\n"

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

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

.subsections_via_symbols
