	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_set_mac_address
_gem_set_mac_address:                   ## @gem_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r12
	movl	(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	movl	8(%rbx), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_netif_running
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movzbl	5(%r12), %edi
	movq	_MAC_ADDR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movzbl	3(%r12), %edi
	movq	_MAC_ADDR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movzbl	1(%r12), %edi
	movq	_MAC_ADDR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	jmp	LBB0_6
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_MAC_ADDR0,8,3                  ## @MAC_ADDR0
	.comm	_MAC_ADDR1,8,3                  ## @MAC_ADDR1
	.comm	_MAC_ADDR2,8,3                  ## @MAC_ADDR2
	.no_dead_strip	_gem_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 gem_set_mac_address
_gem_set_mac_address:                   ; @gem_set_mac_address
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x20]
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x21]
	ldr	w2, [x20, #8]
	bl	_memcpy
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_netif_device_present
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.4:
	ldrb	w0, [x22, #5]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MAC_ADDR0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC_ADDR0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldrb	w0, [x22, #3]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MAC_ADDR1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC_ADDR1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldrb	w0, [x22, #1]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _MAC_ADDR2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_ADDR2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_MAC_ADDR0,8,3                  ; @MAC_ADDR0
	.comm	_MAC_ADDR1,8,3                  ; @MAC_ADDR1
	.comm	_MAC_ADDR2,8,3                  ; @MAC_ADDR2
	.no_dead_strip	_gem_set_mac_address
.subsections_via_symbols
