	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_mac_addr_set
_be_mac_addr_set:                       ## @be_mac_addr_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	movq	24(%rax), %r13
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	movq	8(%r14), %rsi
	callq	_ether_addr_equal
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	movq	%r14, %rdi
	callq	_BEx_chip
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_be_virtfn
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_BE_PRIV_FILTMGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_check_privilege
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movq	%r14, %rbx
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_be_dev_mac_add
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	(%r14), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_be_dev_mac_del
LBB0_12:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rax
	movq	(%rax), %rsi
	movl	16(%r14), %ecx
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_be_cmd_get_active_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_15:
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
	movl	%ebx, %r13d
	jmp	LBB0_18
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_13:
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:
	movq	8(%r14), %rdi
	movq	(%r12), %rsi
	callq	_ether_addr_copy
LBB0_17:
	movq	(%r15), %rdi
	movq	(%r12), %rsi
	callq	_ether_addr_copy
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_BE_PRIV_FILTMGMT,4,2           ## @BE_PRIV_FILTMGMT
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC address changed to %pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"MAC address change to %pM failed\n"

	.no_dead_strip	_be_mac_addr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_mac_addr_set
_be_mac_addr_set:                       ; @be_mac_addr_set
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_netdev_priv
	mov	x22, x0
	ldr	x20, [x0, #24]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	x0, [x19]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x0, [x19]
	ldr	x1, [x22, #8]
	bl	_ether_addr_equal
	cbnz	x0, LBB0_16
; %bb.2:
	mov	x0, x22
	bl	_BEx_chip
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_be_virtfn
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _BE_PRIV_FILTMGMT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BE_PRIV_FILTMGMT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_check_privilege
	cbz	w0, LBB0_19
LBB0_5:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_15
; %bb.6:
	add	x25, x22, #20
	mov	x0, x25
	bl	_mutex_lock
	ldr	x1, [x19]
	mov	x0, x22
	bl	_be_dev_mac_add
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cmp	x8, x24
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x22
	mov	x1, x24
	bl	_be_dev_mac_del
LBB0_9:
	mov	x0, x25
	bl	_mutex_unlock
	ldr	x8, [x22]
	ldr	x1, [x8]
	ldr	w3, [x22, #16]
	mov	x0, x22
	mov	x2, x23
	mov	w4, #1
	mov	w5, #0
	bl	_be_cmd_get_active_mac
	mov	x24, x0
	cbz	w0, LBB0_13
LBB0_10:
	ldr	x2, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_17
LBB0_11:
Lloh13:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_13:
	ldr	x0, [x19]
	mov	x1, x23
	bl	_ether_addr_equal
	cbz	x0, LBB0_20
; %bb.14:
	ldr	x0, [x22, #8]
	ldr	x1, [x19]
	bl	_ether_addr_copy
LBB0_15:
	ldr	x0, [x21]
	ldr	x1, [x19]
	bl	_ether_addr_copy
	ldr	x2, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_16:
	mov	w24, #0
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
	mov	x0, x24
	sub	sp, x29, #64
	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_19:
Lloh20:
	adrp	x8, _EPERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_12
LBB0_20:
Lloh22:
	adrp	x8, _EPERM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_BE_PRIV_FILTMGMT,4,2           ; @BE_PRIV_FILTMGMT
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC address changed to %pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"MAC address change to %pM failed\n"

	.no_dead_strip	_be_mac_addr_set
.subsections_via_symbols
