	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_set_vf_trust
_liquidio_set_vf_trust:                 ## @liquidio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_GET_LIO
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	12(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	testl	%r14d, %r14d
	js	LBB0_8
## %bb.3:
	cmpl	%r14d, (%r12)
	jle	LBB0_8
## %bb.4:
	movl	4(%r12), %eax
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.5:
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%r14d, 8(%r12)
	je	LBB0_10
## %bb.7:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_liquidio_send_vf_trust_cmd
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.5(%rip), %r9
	jmp	LBB0_17
LBB0_14:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_liquidio_send_vf_trust_cmd
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_16:
	movl	%r14d, 8(%r12)
	leaq	L_.str.4(%rip), %r9
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, 4(%r12)
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_info
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1.7.1"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_drv,4,2                        ## @drv
L_.str.1:                               ## @.str.1
	.asciz	"Invalid vfidx %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"More than one trusted VF is not allowed\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.3:                               ## @.str.3
	.asciz	"VF %u is %strusted\n"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Failed to set VF trusted\n"

	.no_dead_strip	_liquidio_set_vf_trust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_set_vf_trust
_liquidio_set_vf_trust:                 ; @liquidio_set_vf_trust
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	bl	_GET_LIO
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x22, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	tbnz	w20, #31, LBB0_8
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, w20
	b.le	LBB0_8
; %bb.4:
	ldr	w8, [x22, #4]
	cbz	w21, LBB0_11
; %bb.5:
	cbz	w8, LBB0_15
; %bb.6:
	ldr	w8, [x22, #8]
	cmp	w8, w20
	b.eq	LBB0_14
; %bb.7:
Lloh4:
	adrp	x8, _drv@GOTPAGE
Lloh5:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _drv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x19]
	str	x20, [sp]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	cbz	w8, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_liquidio_send_vf_trust_cmd
	cbnz	w0, LBB0_16
; %bb.13:
	mov	w9, #0
Lloh18:
	adrp	x8, l_.str.5@PAGE
Lloh19:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_14:
	mov	w0, #0
	b	LBB0_10
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_liquidio_send_vf_trust_cmd
	cbz	w0, LBB0_17
LBB0_16:
Lloh20:
	adrp	x8, _drv@GOTPAGE
Lloh21:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh23:
	adrp	x3, l_.str.6@PAGE
Lloh24:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	w0, #-1
	b	LBB0_10
LBB0_17:
	str	w20, [x22, #8]
Lloh25:
	adrp	x8, l_.str.4@PAGE
Lloh26:
	add	x8, x8, l_.str.4@PAGEOFF
	mov	w9, #1
LBB0_18:
	str	w9, [x22, #4]
Lloh27:
	adrp	x9, _drv@GOTPAGE
Lloh28:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	ldr	w2, [x19]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh30:
	adrp	x3, l_.str.3@PAGE
Lloh31:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1.7.1"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_drv,4,2                        ; @drv
l_.str.1:                               ; @.str.1
	.asciz	"Invalid vfidx %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"More than one trusted VF is not allowed\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.3:                               ; @.str.3
	.asciz	"VF %u is %strusted\n"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Failed to set VF trusted\n"

	.no_dead_strip	_liquidio_set_vf_trust
.subsections_via_symbols
