	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_vf_mac
_be_set_vf_mac:                         ## @be_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %r13
	movq	%rax, %rdi
	callq	_sriov_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	cmpl	%r14d, (%r12)
	jle	LBB0_5
## %bb.6:
	movslq	%r14d, %rbx
	movq	%r12, %rdi
	callq	_BEx_chip
	leaq	(%rbx,%rbx,2), %rcx
	movl	4(%r13,%rcx,4), %r8d
	testq	%rax, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:
	leaq	4(,%rcx,4), %rax
	addq	%r13, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r13,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r13,%rcx,4), %edx
	leal	1(%r14), %ebx
	movq	%r12, %rdi
	movl	%r8d, %esi
	movl	%ebx, %ecx
	callq	_be_cmd_pmac_del
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_be_cmd_pmac_add
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leal	1(%r14), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r8d, %edx
	callq	_be_cmd_set_mac
LBB0_9:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_dev_err
	jmp	LBB0_12
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC %pM set on VF %d Failed\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_be_set_vf_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_set_vf_mac
_be_set_vf_mac:                         ; @be_set_vf_mac
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x24, [x0, #16]
	bl	_sriov_enabled
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_6
; %bb.3:
	sxtw	x25, w20
	mov	x0, x21
	bl	_BEx_chip
	mov	w8, #12
	madd	x26, x25, x8, x24
	ldr	w8, [x26, #4]!
	cbz	x0, LBB0_10
; %bb.4:
	mov	w9, #12
	madd	x22, x25, x9, x24
	ldr	w2, [x22, #8]!
	add	w23, w20, #1
	mov	x0, x21
	mov	x1, x8
	mov	x3, x23
	bl	_be_cmd_pmac_del
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	mov	x4, x23
	bl	_be_cmd_pmac_add
	mov	x22, x0
	cbz	w0, LBB0_11
LBB0_5:
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dev_err
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	w3, w20, #1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x8
	bl	_be_cmd_set_mac
	mov	x22, x0
	cbnz	w0, LBB0_5
LBB0_11:
	mov	w8, #12
	mul	x8, x25, x8
	ldr	w0, [x24, x8]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_memcpy
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC %pM set on VF %d Failed\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_be_set_vf_mac
.subsections_via_symbols
