	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_set_mac_address
_cp_set_mac_address:                    ## @cp_set_mac_address
	.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, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	movl	8(%r15), %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_Cfg9346@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_Cfg9346_Unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpw8_f
	movq	_MAC0@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpw32_f
	movq	(%r13), %rbx
	addq	$4, %rbx
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cpw32_f
	movl	(%r12), %edi
	movq	_Cfg9346_Lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpw8_f
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	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
	.comm	_Cfg9346,4,2                    ## @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ## @Cfg9346_Unlock
	.comm	_MAC0,8,3                       ## @MAC0
	.comm	_Cfg9346_Lock,4,2               ## @Cfg9346_Lock
	.no_dead_strip	_cp_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_set_mac_address
_cp_set_mac_address:                    ; @cp_set_mac_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x21]
	ldr	w2, [x20, #8]
	bl	_memcpy
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x22, _Cfg9346@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Cfg9346@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _Cfg9346_Unlock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Cfg9346_Unlock@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_cpw8_f
Lloh5:
	adrp	x23, _MAC0@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MAC0@GOTPAGEOFF]
	ldr	x21, [x23]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_cpw32_f
	ldr	x8, [x23]
	add	x21, x8, #4
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_cpw32_f
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _Cfg9346_Lock@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Cfg9346_Lock@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_cpw8_f
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_Cfg9346,4,2                    ; @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ; @Cfg9346_Unlock
	.comm	_MAC0,8,3                       ; @MAC0
	.comm	_Cfg9346_Lock,4,2               ; @Cfg9346_Lock
	.no_dead_strip	_cp_set_mac_address
.subsections_via_symbols
