	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_set_mac_address
_temac_set_mac_address:                 ## @temac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
LBB0_2:
	movq	(%rbx), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	callq	_random_ether_addr
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_XTE_UAW0_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edi
	shll	$8, %ecx
	orl	(%rax), %ecx
	shll	$16, %edi
	movl	12(%rax), %edx
	shll	$24, %edx
	orl	%edi, %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_temac_indirect_out32
	movq	_XTE_UAW1_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movzbl	16(%rax), %ecx
	movl	20(%rax), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	callq	_temac_indirect_out32
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_XTE_UAW0_OFFSET,4,2            ## @XTE_UAW0_OFFSET
	.comm	_XTE_UAW1_OFFSET,4,2            ## @XTE_UAW1_OFFSET
	.no_dead_strip	_temac_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 temac_set_mac_address
_temac_set_mac_address:                 ; @temac_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
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
LBB0_2:
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	bl	_random_ether_addr
LBB0_4:
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _XTE_UAW0_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XTE_UAW0_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w2, w9, w8, lsl #24
	mov	x0, x19
	bl	_temac_indirect_out32
Lloh6:
	adrp	x8, _XTE_UAW1_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XTE_UAW1_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldrb	w2, [x8, #16]
	ldr	w8, [x8, #20]
	bfi	w2, w8, #8, #24
	mov	x0, x19
	bl	_temac_indirect_out32
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_XTE_UAW0_OFFSET,4,2            ; @XTE_UAW0_OFFSET
	.comm	_XTE_UAW1_OFFSET,4,2            ; @XTE_UAW1_OFFSET
	.no_dead_strip	_temac_set_mac_address
.subsections_via_symbols
