	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_read_addr
_hw_read_addr:                          ## @hw_read_addr
	.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	%rdi, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	movq	_KS884X_ADDR_0_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_readb
	movl	%eax, %r15d
	movq	16(%r14), %r12
	movl	%ebx, %edi
	callq	_MAC_ADDR_ORDER
	movl	%r15d, (%r12,%rax,4)
	incq	%rbx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 24(%r14)
	je	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r14), %rdi
	movq	16(%r14), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	8(%r14), %rdi
	callq	_empty_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	16(%r14), %rdi
	movq	_DEFAULT_MAC_ADDRESS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	(%r13), %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	movq	(%rbx), %rsi
	movl	(%r13), %edx
	callq	_memcpy
	movl	(%r14), %eax
	movq	8(%r14), %rcx
	addl	%eax, 20(%rcx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hw_set_addr                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_KS884X_ADDR_0_OFFSET,8,3       ## @KS884X_ADDR_0_OFFSET
	.comm	_DEFAULT_MAC_ADDRESS,8,3        ## @DEFAULT_MAC_ADDRESS
	.no_dead_strip	_hw_read_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_read_addr
_hw_read_addr:                          ; @hw_read_addr
	.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	x19, x0
Lloh0:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x23, _KS884X_ADDR_0_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KS884X_ADDR_0_OFFSET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	add	x8, x8, x9
	add	x0, x20, x8
	bl	_readb
	mov	x21, x0
	ldr	x24, [x19, #16]
	mov	x0, x20
	bl	_MAC_ADDR_ORDER
	str	w21, [x24, x0, lsl #2]
	add	x20, x20, #1
	ldrsw	x2, [x22]
	cmp	x20, x2
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
LBB0_4:
	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
LBB0_5:
	ldp	x0, x1, [x19, #8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x0, [x19, #8]
	bl	_empty_addr
	cbz	x0, LBB0_4
; %bb.6:
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x20, _DEFAULT_MAC_ADDRESS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _DEFAULT_MAC_ADDRESS@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	x1, [x20]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #20]
	add	w8, w10, w8
	str	w8, [x9, #20]
	mov	x0, x19
	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
	b	_hw_set_addr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_KS884X_ADDR_0_OFFSET,8,3       ; @KS884X_ADDR_0_OFFSET
	.comm	_DEFAULT_MAC_ADDRESS,8,3        ; @DEFAULT_MAC_ADDRESS
	.no_dead_strip	_hw_read_addr
.subsections_via_symbols
