	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd_write_mac_addr_common
_zd_write_mac_addr_common:              ## @zd_write_mac_addr_common
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdx), %eax
	movl	%eax, -40(%rbp)
	movl	4(%rdx), %eax
	movl	%eax, -36(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movl	12(%rsi), %eax
	shll	$24, %eax
	movl	4(%rsi), %ecx
	movl	8(%rsi), %edx
	shll	$16, %edx
	orl	%eax, %edx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	(%rsi), %ecx
	movl	%ecx, -40(%rbp)
	movl	20(%rsi), %eax
	shll	$8, %eax
	orl	16(%rsi), %eax
	movl	%eax, -36(%rbp)
	movq	%r15, %rdi
	callq	_zd_chip_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg_f
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_zd_chip_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg_f
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite32a_locked
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s addr %pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"set NULL %s\n"

	.no_dead_strip	_zd_write_mac_addr_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd_write_mac_addr_common
_zd_write_mac_addr_common:              ; @zd_write_mac_addr_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x19, x0
	ldr	d0, [x2]
	str	d0, [sp, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x21, x1
	ldp	w9, w8, [x1, #8]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w10, w9, [x1]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	ldp	w10, w9, [x1, #16]
	orr	w9, w10, w9, lsl #8
	stp	w8, w9, [sp, #8]
	mov	x0, x19
	bl	_zd_chip_dev
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_zd_chip_dev
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x2, x20
	bl	_dev_dbg_f
	mov	x0, x19
	bl	_mutex_lock
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_zd_iowrite32a_locked
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s addr %pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"set NULL %s\n"

	.no_dead_strip	_zd_write_mac_addr_common
.subsections_via_symbols
