	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_mac             ## -- Begin function nfp_app_set_vf_mac
	.p2align	4, 0x90
_nfp_app_set_vf_mac:                    ## @nfp_app_set_vf_mac
	.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
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_nfp_app_from_netdev
	movq	%rax, %r12
	movq	_NFP_NET_VF_CFG_MB_CAP_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_nfp_net_sriov_check
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_nfp_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	movq	_NFP_NET_VF_CFG_MB_SZ@GOTPCREL(%rip), %rax
	movq	_NFP_NET_VF_CFG_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	imull	%r15d, %ebx
	addl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_get_unaligned_be32
	movq	(%r12), %rcx
	movq	8(%rcx), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writel
	leaq	16(%r14), %rdi
	callq	_get_unaligned_be16
	movq	(%r12), %rcx
	addq	8(%rcx), %rbx
	movq	_NFP_NET_VF_CFG_MAC_LO@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_writew
	movq	_NFP_NET_VF_CFG_MB_UPD_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_nfp_net_sriov_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_nfp_info
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_MAC,4,2  ## @NFP_NET_VF_CFG_MB_CAP_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac"

L_.str.1:                               ## @.str.1
	.asciz	"invalid Ethernet address %pM for VF id %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_MAC_LO,8,3      ## @NFP_NET_VF_CFG_MAC_LO
	.comm	_NFP_NET_VF_CFG_MB_UPD_MAC,4,2  ## @NFP_NET_VF_CFG_MB_UPD_MAC
L_.str.2:                               ## @.str.2
	.asciz	"MAC"

L_.str.3:                               ## @.str.3
	.asciz	"MAC %pM set on VF %d, reload the VF driver to make this change effective.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_set_vf_mac             ; -- Begin function nfp_app_set_vf_mac
	.p2align	2
_nfp_app_set_vf_mac:                    ; @nfp_app_set_vf_mac
	.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	_nfp_app_from_netdev
	mov	x21, x0
Lloh0:
	adrp	x8, _NFP_NET_VF_CFG_MB_CAP_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_CAP_MAC@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_5
; %bb.1:
	mov	x0, x20
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_nfp_warn
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_SZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _NFP_NET_VF_CFG_SZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NFP_NET_VF_CFG_SZ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	madd	w22, w9, w19, w8
	mov	x0, x20
	bl	_get_unaligned_be32
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x1, x8, x22
	bl	_writel
	add	x0, x20, #16
	bl	_get_unaligned_be16
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
Lloh16:
	adrp	x9, _NFP_NET_VF_CFG_MAC_LO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NFP_NET_VF_CFG_MAC_LO@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x8, x8, x22
	add	x1, x8, x9
	bl	_writew
Lloh19:
	adrp	x8, _NFP_NET_VF_CFG_MB_UPD_MAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NFP_NET_VF_CFG_MB_UPD_MAC@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str.2@PAGE
Lloh23:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_nfp_net_sriov_update
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_nfp_info
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_VF_CFG_MB_CAP_MAC,4,2  ; @NFP_NET_VF_CFG_MB_CAP_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac"

l_.str.1:                               ; @.str.1
	.asciz	"invalid Ethernet address %pM for VF id %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.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_MAC_LO,8,3      ; @NFP_NET_VF_CFG_MAC_LO
	.comm	_NFP_NET_VF_CFG_MB_UPD_MAC,4,2  ; @NFP_NET_VF_CFG_MB_UPD_MAC
l_.str.2:                               ; @.str.2
	.asciz	"MAC"

l_.str.3:                               ; @.str.3
	.asciz	"MAC %pM set on VF %d, reload the VF driver to make this change effective.\n"

.subsections_via_symbols
