	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_spoofchk        ## -- Begin function nfp_app_set_vf_spoofchk
	.p2align	4, 0x90
_nfp_app_set_vf_spoofchk:               ## @nfp_app_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
	pushq	%rax
	.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	_nfp_app_from_netdev
	movq	%rax, %r12
	movq	_NFP_NET_VF_CFG_MB_CAP_SPOOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nfp_net_sriov_check
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_NFP_NET_VF_CFG_MB_SZ@GOTPCREL(%rip), %rax
	movq	_NFP_NET_VF_CFG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	imull	%r14d, %r13d
	addl	(%rax), %r13d
	movq	_NFP_NET_VF_CFG_CTRL@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	(%r12), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_readb
	movq	_NFP_NET_VF_CFG_CTRL_SPOOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	(%r12), %rax
	addq	(%rax), %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writeb
	movq	_NFP_NET_VF_CFG_MB_UPD_SPOOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_net_sriov_update           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_SPOOF,4,2 ## @NFP_NET_VF_CFG_MB_CAP_SPOOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spoofchk"

	.comm	_NFP_NET_VF_CFG_MB_SZ,4,2       ## @NFP_NET_VF_CFG_MB_SZ
	.comm	_NFP_NET_VF_CFG_SZ,4,2          ## @NFP_NET_VF_CFG_SZ
	.comm	_NFP_NET_VF_CFG_CTRL,4,2        ## @NFP_NET_VF_CFG_CTRL
	.comm	_NFP_NET_VF_CFG_CTRL_SPOOF,4,2  ## @NFP_NET_VF_CFG_CTRL_SPOOF
	.comm	_NFP_NET_VF_CFG_MB_UPD_SPOOF,4,2 ## @NFP_NET_VF_CFG_MB_UPD_SPOOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_spoofchk        ; -- Begin function nfp_app_set_vf_spoofchk
	.p2align	2
_nfp_app_set_vf_spoofchk:               ; @nfp_app_set_vf_spoofchk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	bl	_nfp_app_from_netdev
	mov	x20, x0
Lloh0:
	adrp	x8, _NFP_NET_VF_CFG_MB_CAP_SPOOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_CAP_SPOOF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x19
	bl	_nfp_net_sriov_check
	cbz	w0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _NFP_NET_VF_CFG_SZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NFP_NET_VF_CFG_SZ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _NFP_NET_VF_CFG_CTRL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NFP_NET_VF_CFG_CTRL@GOTPAGEOFF]
	madd	w8, w9, w19, w8
Lloh13:
	ldr	w9, [x10]
	ldr	x10, [x20]
	ldr	x10, [x10]
	add	w22, w8, w9
	add	x0, x10, x22
	bl	_readb
Lloh14:
	adrp	x8, _NFP_NET_VF_CFG_CTRL_SPOOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFP_NET_VF_CFG_CTRL_SPOOF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w23, w0, w8
	mov	x0, x8
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w0, w23, w0
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_writeb
Lloh17:
	adrp	x8, _NFP_NET_VF_CFG_MB_UPD_SPOOF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_UPD_SPOOF@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nfp_net_sriov_update
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_SPOOF,4,2 ; @NFP_NET_VF_CFG_MB_CAP_SPOOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spoofchk"

	.comm	_NFP_NET_VF_CFG_MB_SZ,4,2       ; @NFP_NET_VF_CFG_MB_SZ
	.comm	_NFP_NET_VF_CFG_SZ,4,2          ; @NFP_NET_VF_CFG_SZ
	.comm	_NFP_NET_VF_CFG_CTRL,4,2        ; @NFP_NET_VF_CFG_CTRL
	.comm	_NFP_NET_VF_CFG_CTRL_SPOOF,4,2  ; @NFP_NET_VF_CFG_CTRL_SPOOF
	.comm	_NFP_NET_VF_CFG_MB_UPD_SPOOF,4,2 ; @NFP_NET_VF_CFG_MB_UPD_SPOOF
.subsections_via_symbols
