	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opa_vnic_set_mac_addr
_opa_vnic_set_mac_addr:                 ## @opa_vnic_set_mac_addr
	.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	%rsi, %r15
	movq	%rdi, %r12
	callq	_opa_vnic_priv
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_eth_mac_addr
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	incl	(%r14)
	movq	_OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_opa_vnic_vema_report_event
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE,4,2 ## @OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE
	.no_dead_strip	_opa_vnic_set_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opa_vnic_set_mac_addr
_opa_vnic_set_mac_addr:                 ; @opa_vnic_set_mac_addr
	.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, x1
	mov	x21, x0
	bl	_opa_vnic_priv
	mov	x19, x0
	ldr	w0, [x21]
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcmp
	cbz	w0, LBB0_3
; %bb.1:
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	bl	_eth_mac_addr
	mov	x20, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	w20, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_opa_vnic_vema_report_event
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE,4,2 ; @OPA_VESWPORT_TRAP_IFACE_UCAST_MAC_CHANGE
	.no_dead_strip	_opa_vnic_set_mac_addr
.subsections_via_symbols
