	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_read_mac_addr            ## -- Begin function e1000_read_mac_addr
	.p2align	4, 0x90
_e1000_read_mac_addr:                   ## @e1000_read_mac_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
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_NODE_ADDRESS_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_e1000_read_eeprom
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-44(%rbp), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	-44(%rbp), %eax
	sarl	$8, %eax
	movl	%eax, 4(%rcx,%rbx,4)
	addq	$2, %rbx
	incl	%r13d
	cmpl	%ebx, (%r12)
	jg	LBB0_2
LBB0_5:
	movl	8(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.6:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_FUNC_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	xorl	$1, 20(%rax)
LBB0_8:
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r12), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_10
LBB0_11:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e1000_read_mac_addr"

	.comm	_NODE_ADDRESS_SIZE,4,2          ## @NODE_ADDRESS_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FUNC_1,4,2        ## @E1000_STATUS_FUNC_1
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_read_mac_addr            ; -- Begin function e1000_read_mac_addr
	.p2align	2
_e1000_read_mac_addr:                   ; @e1000_read_mac_addr
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh2:
	adrp	x21, _NODE_ADDRESS_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NODE_ADDRESS_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_e1000_read_eeprom
	tbnz	x0, #63, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #12]
	ldr	x9, [x19]
	add	x9, x9, x22, lsl #2
	str	w8, [x9]
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	str	w8, [x9, #4]
	add	x22, x22, #2
	ldr	w8, [x21]
	add	w20, w20, #1
	cmp	w8, w22
	b.gt	LBB0_2
LBB0_4:
	ldr	w8, [x19, #8]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
Lloh4:
	adrp	x8, _STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_er32
Lloh7:
	adrp	x8, _E1000_STATUS_FUNC_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_STATUS_FUNC_1@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w9, [x8, #20]
	eor	w9, w9, #0x1
	str	w9, [x8, #20]
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
	ldr	x9, [x19]
	ldr	x10, [x19, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_9
LBB0_10:
Lloh10:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
Lloh15:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e1000_read_mac_addr"

	.comm	_NODE_ADDRESS_SIZE,4,2          ; @NODE_ADDRESS_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FUNC_1,4,2        ; @E1000_STATUS_FUNC_1
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
.subsections_via_symbols
