	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnet_get_hwaddr
_dnet_get_hwaddr:                       ## @dnet_get_hwaddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_DNET_INTERNAL_MAC_ADDR_0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dnet_readw_mac
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -48(%rbp)
	movq	_DNET_INTERNAL_MAC_ADDR_1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dnet_readw_mac
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -40(%rbp)
	movq	_DNET_INTERNAL_MAC_ADDR_2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dnet_readw_mac
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -32(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DNET_INTERNAL_MAC_ADDR_0_REG,4,2 ## @DNET_INTERNAL_MAC_ADDR_0_REG
	.comm	_DNET_INTERNAL_MAC_ADDR_1_REG,4,2 ## @DNET_INTERNAL_MAC_ADDR_1_REG
	.comm	_DNET_INTERNAL_MAC_ADDR_2_REG,4,2 ## @DNET_INTERNAL_MAC_ADDR_2_REG
	.no_dead_strip	_dnet_get_hwaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnet_get_hwaddr
_dnet_get_hwaddr:                       ; @dnet_get_hwaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _DNET_INTERNAL_MAC_ADDR_0_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DNET_INTERNAL_MAC_ADDR_0_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dnet_readw_mac
	bl	_cpu_to_be16
	str	w0, [sp]
Lloh6:
	adrp	x8, _DNET_INTERNAL_MAC_ADDR_1_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DNET_INTERNAL_MAC_ADDR_1_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dnet_readw_mac
	bl	_cpu_to_be16
	str	w0, [sp, #8]
Lloh9:
	adrp	x8, _DNET_INTERNAL_MAC_ADDR_2_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DNET_INTERNAL_MAC_ADDR_2_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dnet_readw_mac
	bl	_cpu_to_be16
	str	w0, [sp, #16]
	mov	x0, sp
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #24
	bl	_memcpy
LBB0_2:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DNET_INTERNAL_MAC_ADDR_0_REG,4,2 ; @DNET_INTERNAL_MAC_ADDR_0_REG
	.comm	_DNET_INTERNAL_MAC_ADDR_1_REG,4,2 ; @DNET_INTERNAL_MAC_ADDR_1_REG
	.comm	_DNET_INTERNAL_MAC_ADDR_2_REG,4,2 ; @DNET_INTERNAL_MAC_ADDR_2_REG
	.no_dead_strip	_dnet_get_hwaddr
.subsections_via_symbols
