	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_vlan            ## -- Begin function nfp_app_set_vf_vlan
	.p2align	4, 0x90
_nfp_app_set_vf_vlan:                   ## @nfp_app_set_vf_vlan
	.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
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	callq	_nfp_app_from_netdev
	movq	%rax, %r13
	movq	_NFP_NET_VF_CFG_MB_CAP_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_nfp_net_sriov_check
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.5:
	cmpl	$4095, %r12d                    ## imm = 0xFFF
	jg	LBB0_7
## %bb.6:
	cmpl	$8, %r15d
	jge	LBB0_7
## %bb.8:
	movq	_NFP_NET_VF_CFG_VLAN_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_NFP_NET_VF_CFG_VLAN_QOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_FIELD_PREP
	movq	_NFP_NET_VF_CFG_MB_SZ@GOTPCREL(%rip), %rcx
	movq	_NFP_NET_VF_CFG_SZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	imull	%r14d, %esi
	addl	(%rcx), %esi
	movq	(%r13), %rcx
	addq	(%rcx), %rsi
	orl	%eax, %ebx
	movq	_NFP_NET_VF_CFG_VLAN@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writew
	movq	_NFP_NET_VF_CFG_MB_UPD_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %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
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	(%r13), %rax
	movl	8(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_nfp_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_VLAN,4,2 ## @NFP_NET_VF_CFG_MB_CAP_VLAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlan"

	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"invalid vlan id or qos for VF id %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_NET_VF_CFG_VLAN_VID,4,2    ## @NFP_NET_VF_CFG_VLAN_VID
	.comm	_NFP_NET_VF_CFG_VLAN_QOS,4,2    ## @NFP_NET_VF_CFG_VLAN_QOS
	.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_VLAN,8,3        ## @NFP_NET_VF_CFG_VLAN
	.comm	_NFP_NET_VF_CFG_MB_UPD_VLAN,4,2 ## @NFP_NET_VF_CFG_MB_UPD_VLAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_vlan            ; -- Begin function nfp_app_set_vf_vlan
	.p2align	2
_nfp_app_set_vf_vlan:                   ; @nfp_app_set_vf_vlan
	.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	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_nfp_app_from_netdev
	mov	x20, x0
Lloh0:
	adrp	x8, _NFP_NET_VF_CFG_MB_CAP_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_CAP_VLAN@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
	cbnz	w0, LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	cmp	x0, x23
	b.ne	LBB0_5
; %bb.2:
	cmp	w22, #4095
	b.gt	LBB0_6
; %bb.3:
	cmp	w21, #8
	b.ge	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _NFP_NET_VF_CFG_VLAN_VID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_NET_VF_CFG_VLAN_VID@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_PREP
	mov	x22, x0
Lloh11:
	adrp	x8, _NFP_NET_VF_CFG_VLAN_QOS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_NET_VF_CFG_VLAN_QOS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w0, w0, w22
Lloh14:
	adrp	x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _NFP_NET_VF_CFG_SZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NFP_NET_VF_CFG_SZ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	madd	w8, w9, w19, w8
	ldr	x9, [x20]
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _NFP_NET_VF_CFG_VLAN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NFP_NET_VF_CFG_VLAN@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writew
Lloh23:
	adrp	x8, _NFP_NET_VF_CFG_MB_UPD_VLAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_UPD_VLAN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x3, l_.str@PAGE
Lloh27:
	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
LBB0_5:
Lloh28:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_nfp_warn
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_VLAN,4,2 ; @NFP_NET_VF_CFG_MB_CAP_VLAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlan"

	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"invalid vlan id or qos for VF id %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_NET_VF_CFG_VLAN_VID,4,2    ; @NFP_NET_VF_CFG_VLAN_VID
	.comm	_NFP_NET_VF_CFG_VLAN_QOS,4,2    ; @NFP_NET_VF_CFG_VLAN_QOS
	.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_VLAN,8,3        ; @NFP_NET_VF_CFG_VLAN
	.comm	_NFP_NET_VF_CFG_MB_UPD_VLAN,4,2 ; @NFP_NET_VF_CFG_MB_UPD_VLAN
.subsections_via_symbols
