	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_dev_setmac_addr
_emac_dev_setmac_addr:                  ## @emac_dev_setmac_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r14
	movl	(%r12), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EMAC_DEF_RX_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r15, %rdi
	callq	_emac_setmac
LBB0_4:
	movq	%r15, %rdi
	callq	_netif_msg_drv
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_notice
	jmp	LBB0_6
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_EMAC_DEF_RX_CH,4,2             ## @EMAC_DEF_RX_CH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: emac_dev_setmac_addr %pM\n"

	.no_dead_strip	_emac_dev_setmac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_dev_setmac_addr
_emac_dev_setmac_addr:                  ; @emac_dev_setmac_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	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x22]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21]
	bl	_memcpy
	ldr	w1, [x22]
	ldp	w2, w0, [x21]
	bl	_memcpy
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EMAC_DEF_RX_CH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMAC_DEF_RX_CH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_emac_setmac
LBB0_3:
	mov	x0, x20
	bl	_netif_msg_drv
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_notice
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_EMAC_DEF_RX_CH,4,2             ; @EMAC_DEF_RX_CH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: emac_dev_setmac_addr %pM\n"

	.no_dead_strip	_emac_dev_setmac_addr
.subsections_via_symbols
