	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_pf_set_vf_mac
_enetc_pf_set_vf_mac:                   ## @enetc_pf_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	_netdev_priv
	movq	%rax, %r12
	movq	(%rax), %rdi
	callq	_enetc_si_priv
	cmpl	%r15d, (%rax)
	jle	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	8(%rbx), %rax
	movslq	%r15d, %rsi
	movq	_ENETC_VF_FLAG_PF_SET_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax,%rsi,4)
	movq	(%r12), %rdi
	incl	%esi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_enetc_pf_set_primary_mac_addr
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_ENETC_VF_FLAG_PF_SET_MAC,4,2   ## @ENETC_VF_FLAG_PF_SET_MAC
	.no_dead_strip	_enetc_pf_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 enetc_pf_set_vf_mac
_enetc_pf_set_vf_mac:                   ; @enetc_pf_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	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x0, [x0]
	bl	_enetc_si_priv
	ldr	w8, [x0]
	cmp	w8, w20
	b.le	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _ENETC_VF_FLAG_PF_SET_MAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENETC_VF_FLAG_PF_SET_MAC@GOTPAGEOFF]
	sbfiz	x10, x20, #2, #32
	ldr	w11, [x8, x10]
Lloh2:
	ldr	w9, [x9]
	orr	w9, w11, w9
	str	w9, [x8, x10]
	ldr	x0, [x21]
	add	w1, w20, #1
	mov	x2, x19
	bl	_enetc_pf_set_primary_mac_addr
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ENETC_VF_FLAG_PF_SET_MAC,4,2   ; @ENETC_VF_FLAG_PF_SET_MAC
	.no_dead_strip	_enetc_pf_set_vf_mac
.subsections_via_symbols
