	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_set_vf_spoofchk
_liquidio_set_vf_spoofchk:              ## @liquidio_set_vf_spoofchk
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	callq	_GET_LIO
	movq	%rax, %r15
	movq	16(%rax), %r13
	movq	_LIQUIDIO_SPOOFCHK_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_6
## %bb.1:
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.2:
	cmpl	%r14d, (%r13)
	jle	LBB0_5
## %bb.3:
	movq	8(%r13), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %eax
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_5:
	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
	jmp	LBB0_7
LBB0_6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_OCTNET_CMD_GROUP1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_OCTNET_CMD_SET_VF_SPOOFCHK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leal	1(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	%r12d, -68(%rbp)
	movq	$0, -64(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	%r13, %rdi
	leaq	-88(%rbp), %rsi
	callq	_octnet_send_nic_ctrl_pkt
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	testl	%r12d, %r12d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_info
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_12:
	testl	%r12d, %r12d
	movq	8(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, (%rax,%rcx,4)
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_info
	jmp	LBB0_8
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LIQUIDIO_SPOOFCHK_CAP,4,2      ## @LIQUIDIO_SPOOFCHK_CAP
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware does not support spoofchk\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OCTNET_CMD_GROUP1,4,2          ## @OCTNET_CMD_GROUP1
	.comm	_OCTNET_CMD_SET_VF_SPOOFCHK,4,2 ## @OCTNET_CMD_SET_VF_SPOOFCHK
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set VF %d spoofchk %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"on"

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

L_.str.5:                               ## @.str.5
	.asciz	"VF %u spoofchk is %s\n"

	.no_dead_strip	_liquidio_set_vf_spoofchk
.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_spoofchk
_liquidio_set_vf_spoofchk:              ; @liquidio_set_vf_spoofchk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, #16]
	ldr	w8, [x22, #16]
Lloh0:
	adrp	x9, _LIQUIDIO_SPOOFCHK_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIQUIDIO_SPOOFCHK_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	tbnz	w20, #31, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, w20
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w8, [x8, w20, uxtw #2]
	cbz	w21, LBB0_9
; %bb.4:
	cbnz	w8, LBB0_13
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _drv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19]
	str	x20, [sp]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _drv@GOTPAGE
Lloh11:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	cbz	w8, LBB0_13
LBB0_10:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh17:
	adrp	x8, _OCTNET_CMD_GROUP1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OCTNET_CMD_GROUP1@GOTPAGEOFF]
Lloh19:
	adrp	x9, _OCTNET_CMD_SET_VF_SPOOFCHK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OCTNET_CMD_SET_VF_SPOOFCHK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	add	w8, w20, #1
	stp	w8, w21, [sp, #40]
	str	xzr, [sp, #48]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	add	x1, sp, #24
	mov	x0, x22
	bl	_octnet_send_nic_ctrl_pkt
	cbz	w0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x8, _drv@GOTPAGE
Lloh24:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh26:
	adrp	x8, l_.str.3@PAGE
Lloh27:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh28:
	adrp	x9, l_.str.4@PAGE
Lloh29:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh30:
	adrp	x3, l_.str.2@PAGE
Lloh31:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	mov	w0, #-1
	b	LBB0_8
LBB0_12:
	mov	w8, w20
	ldr	x9, [x22, #8]
	str	w21, [x9, x8, lsl #2]
Lloh32:
	adrp	x8, _drv@GOTPAGE
Lloh33:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh35:
	adrp	x8, l_.str.3@PAGE
Lloh36:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh37:
	adrp	x9, l_.str.4@PAGE
Lloh38:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh39:
	adrp	x3, l_.str.5@PAGE
Lloh40:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netif_info
LBB0_13:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LIQUIDIO_SPOOFCHK_CAP,4,2      ; @LIQUIDIO_SPOOFCHK_CAP
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware does not support spoofchk\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OCTNET_CMD_GROUP1,4,2          ; @OCTNET_CMD_GROUP1
	.comm	_OCTNET_CMD_SET_VF_SPOOFCHK,4,2 ; @OCTNET_CMD_SET_VF_SPOOFCHK
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set VF %d spoofchk %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"on"

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

l_.str.5:                               ; @.str.5
	.asciz	"VF %u spoofchk is %s\n"

	.no_dead_strip	_liquidio_set_vf_spoofchk
.subsections_via_symbols
