	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_set_mac
_eth_set_mac:                           ## @eth_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	(%r14), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, %edi
	shll	$16, %edi
	addl	$67584, %edi                    ## imm = 0x10800
	cmpl	$3, %eax
	movl	$198656, %eax                   ## imm = 0x30800
	cmovel	%eax, %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	callq	___raw_writel
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %edi
	shll	$8, %edi
	orl	%edx, %edi
	orl	12(%rax), %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$4, %rsi
	callq	___raw_writel
	movq	(%r12), %rax
	movl	16(%rax), %ecx
	movl	20(%rax), %edi
	shll	$24, %ecx
	shll	$16, %edi
	orl	%ecx, %edi
	orl	$2, %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$8, %rsi
	callq	___raw_writel
	movq	(%r15), %rsi
	movl	$524288, %edi                   ## imm = 0x80000
	callq	___raw_writel
	movq	(%r15), %rdi
	callq	___raw_readl
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	callq	___raw_readl
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r13), %eax
	cmpl	$4999, %r13d                    ## imm = 0x1387
	movl	%eax, %r13d
	jb	LBB0_4
LBB0_6:
	movq	(%r12), %rdi
	movq	(%r14), %rsi
	movl	8(%r12), %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, %edi
	shll	$16, %edi
	addl	$67584, %edi                    ## imm = 0x10800
	cmpl	$3, %eax
	movl	$198656, %eax                   ## imm = 0x30800
	cmovel	%eax, %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	callq	___raw_writel
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %edi
	shll	$8, %edi
	orl	%edx, %edi
	orl	12(%rax), %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$4, %rsi
	callq	___raw_writel
	movq	(%r14), %rax
	movl	16(%rax), %ecx
	movl	20(%rax), %edi
	shll	$24, %ecx
	shll	$16, %edi
	orl	%ecx, %edi
	orl	$114, %edi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$8, %rsi
	callq	___raw_writel
	movq	(%r15), %rsi
	movl	$524288, %edi                   ## imm = 0x80000
	callq	___raw_writel
	movq	(%r15), %rdi
	callq	___raw_readl
	xorl	%r14d, %r14d
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_10
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	callq	___raw_readl
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%rbx), %eax
	cmpl	$4999, %ebx                     ## imm = 0x1387
	movl	%eax, %ebx
	jb	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_eth_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_set_mac
_eth_set_mac:                           ; @eth_set_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, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x0, [x19]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_9
; %bb.1:
	mov	w23, #2048
	movk	w23, #1, lsl #16
	ldr	w8, [x20]
	add	w9, w23, w8, lsl #16
	orr	w24, w23, #0x20000
	cmp	w8, #3
	csel	w0, w24, w9, eq
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	bl	___raw_writel
	ldr	x8, [x21]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w0, w9, w8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, x8, #4
	bl	___raw_writel
	ldr	x8, [x21]
	ldp	w9, w8, [x8, #16]
	lsl	w9, w9, #24
	orr	w8, w9, w8, lsl #16
	orr	w0, w8, #0x2
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, x8, #8
	bl	___raw_writel
	ldr	x1, [x22]
	mov	w0, #524288
	bl	___raw_writel
	ldr	x0, [x22]
	bl	___raw_readl
	tbnz	w0, #21, LBB0_5
; %bb.2:
	mov	w25, #0
	mov	w26, #4999
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x0, [x22]
	bl	___raw_readl
	tbnz	w0, #21, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w25, #1
	cmp	w25, w26
	mov	x25, x8
	b.lo	LBB0_3
LBB0_5:
	ldr	x0, [x21]
	ldr	x1, [x19]
	ldr	w2, [x21, #8]
	bl	_memcpy
	ldr	w8, [x20]
	add	w9, w23, w8, lsl #16
	cmp	w8, #3
	csel	w0, w24, w9, eq
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	bl	___raw_writel
	ldr	x8, [x19]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w0, w9, w8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, x8, #4
	bl	___raw_writel
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #16]
	lsl	w9, w9, #24
	orr	w8, w9, w8, lsl #16
	mov	w9, #114
	orr	w0, w8, w9
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	add	x1, x8, #8
	bl	___raw_writel
	ldr	x1, [x22]
	mov	w0, #524288
	bl	___raw_writel
	ldr	x0, [x22]
	bl	___raw_readl
	tbnz	w0, #21, LBB0_10
; %bb.6:
	mov	w19, #0
	mov	w20, #4999
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x0, [x22]
	bl	___raw_readl
	mov	x8, x0
	mov	w0, #0
	tbnz	w8, #21, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w19, #1
	cmp	w19, w20
	mov	x19, x8
	b.lo	LBB0_7
	b	LBB0_11
LBB0_9:
Lloh0:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_eth_set_mac
.subsections_via_symbols
