	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_do_read_eeprom
_e1000_do_read_eeprom:                  ## @e1000_do_read_eeprom
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	_e1000_ce4100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_GBE_CONFIG_BASE_VIRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_GBE_CONFIG_FLASH_READ
LBB0_21:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_22
LBB0_2:
	movq	%rdi, %r14
	movq	8(%rdi), %rdx
	movq	%rdx, %rax
	subq	%r12, %rax
	jle	LBB0_5
## %bb.3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	cmpq	%r15, %rax
	jl	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_e1000_acquire_eeprom
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	16(%r14), %rax
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.9:
	movq	_EEPROM_READ_OPCODE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r14, %rdi
	callq	_e1000_spi_eeprom_ready
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_e1000_release_eeprom
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_e_dbg
LBB0_7:
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.17:
	testq	%r15, %r15
	jle	LBB0_20
## %bb.18:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	_EEPROM_READ_OPCODE_MICROWIRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	28(%r14), %edx
	movq	%r14, %rdi
	callq	_e1000_shift_out_ee_bits
	leaq	(%r12,%r13), %rsi
	movl	24(%r14), %edx
	movq	%r14, %rdi
	callq	_e1000_shift_out_ee_bits
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_e1000_shift_in_ee_bits
	movq	%rax, (%rbx,%r13,8)
	movq	%r14, %rdi
	callq	_e1000_standby_eeprom
	xorl	%eax, %eax
	callq	_cond_resched
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_19
	jmp	LBB0_20
LBB0_11:
	movq	%r14, %rdi
	callq	_e1000_standby_eeprom
	movl	28(%r14), %edx
	xorl	%esi, %esi
	cmpl	$8, 24(%r14)
	movl	$0, %eax
	jne	LBB0_13
## %bb.12:
	movq	_EEPROM_A8_OPCODE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	cmpq	$127, %r12
	cmovgq	%rax, %rsi
	orq	%r13, %rsi
	movq	%r14, %rdi
	callq	_e1000_shift_out_ee_bits
	addq	%r12, %r12
	movl	24(%r14), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_e1000_shift_out_ee_bits
	testq	%r15, %r15
	jle	LBB0_20
## %bb.14:
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_e1000_shift_in_ee_bits
	movq	%rax, %rcx
	sarq	$8, %rcx
	shlq	$8, %rax
	orq	%rcx, %rax
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_15
LBB0_20:
	movq	%r14, %rdi
	callq	_e1000_release_eeprom
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_ce4100,8,3               ## @e1000_ce4100
	.comm	_GBE_CONFIG_BASE_VIRT,4,2       ## @GBE_CONFIG_BASE_VIRT
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"words\" parameter out of bounds. Words = %d,size = %d\n"

	.comm	_E1000_ERR_EEPROM,8,3           ## @E1000_ERR_EEPROM
	.comm	_e1000_eeprom_spi,8,3           ## @e1000_eeprom_spi
	.comm	_EEPROM_READ_OPCODE_SPI,8,3     ## @EEPROM_READ_OPCODE_SPI
	.comm	_EEPROM_A8_OPCODE_SPI,8,3       ## @EEPROM_A8_OPCODE_SPI
	.comm	_e1000_eeprom_microwire,8,3     ## @e1000_eeprom_microwire
	.comm	_EEPROM_READ_OPCODE_MICROWIRE,8,3 ## @EEPROM_READ_OPCODE_MICROWIRE
	.no_dead_strip	_e1000_do_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_do_read_eeprom
_e1000_do_read_eeprom:                  ; @e1000_do_read_eeprom
	.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, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_ce4100@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_ce4100@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GBE_CONFIG_BASE_VIRT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GBE_CONFIG_BASE_VIRT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_GBE_CONFIG_FLASH_READ
Lloh6:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	b	LBB0_11
LBB0_2:
	mov	x21, x0
	ldr	x2, [x0, #8]
	subs	x8, x2, x22
	b.le	LBB0_9
; %bb.3:
	cbz	x20, LBB0_9
; %bb.4:
	cmp	x8, x20
	b.lt	LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_e1000_acquire_eeprom
Lloh9:
	adrp	x23, _E1000_SUCCESS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _E1000_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x21, #16]
Lloh11:
	adrp	x9, _e1000_eeprom_spi@GOTPAGE
Lloh12:
	ldr	x9, [x9, _e1000_eeprom_spi@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
Lloh14:
	adrp	x8, _EEPROM_READ_OPCODE_SPI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EEPROM_READ_OPCODE_SPI@GOTPAGEOFF]
Lloh16:
	ldr	x24, [x8]
	mov	x0, x21
	bl	_e1000_spi_eeprom_ready
	cbz	x0, LBB0_15
; %bb.8:
	mov	x0, x21
	bl	_e1000_release_eeprom
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_e_dbg
LBB0_10:
Lloh19:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_11:
	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_12:
Lloh22:
	adrp	x9, _e1000_eeprom_microwire@GOTPAGE
Lloh23:
	ldr	x9, [x9, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x20, #1, #8, eq
	b.lt	LBB0_17
; %bb.13:
Lloh25:
	adrp	x24, _EEPROM_READ_OPCODE_MICROWIRE@GOTPAGE
Lloh26:
	ldr	x24, [x24, _EEPROM_READ_OPCODE_MICROWIRE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	ldr	w2, [x21, #28]
	mov	x0, x21
	bl	_e1000_shift_out_ee_bits
	ldr	w2, [x21, #24]
	mov	x0, x21
	mov	x1, x22
	bl	_e1000_shift_out_ee_bits
	mov	x0, x21
	mov	w1, #16
	bl	_e1000_shift_in_ee_bits
	str	x0, [x19], #8
	mov	x0, x21
	bl	_e1000_standby_eeprom
	bl	_cond_resched
	add	x22, x22, #1
	subs	x20, x20, #1
	b.ne	LBB0_14
	b	LBB0_17
LBB0_15:
	mov	x0, x21
	bl	_e1000_standby_eeprom
	ldp	w8, w2, [x21, #24]
	cmp	w8, #8
	mov	w8, #127
	ccmp	x22, x8, #4, eq
Lloh27:
	adrp	x8, _EEPROM_A8_OPCODE_SPI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EEPROM_A8_OPCODE_SPI@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	csel	x8, x8, xzr, gt
	orr	x1, x8, x24
	mov	x0, x21
	bl	_e1000_shift_out_ee_bits
	lsl	x1, x22, #1
	ldr	w2, [x21, #24]
	mov	x0, x21
	bl	_e1000_shift_out_ee_bits
	cmp	x20, #1
	b.lt	LBB0_17
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #16
	bl	_e1000_shift_in_ee_bits
	asr	x8, x0, #8
	orr	x8, x8, x0, lsl #8
	str	x8, [x19], #8
	subs	x20, x20, #1
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x21
	bl	_e1000_release_eeprom
	ldr	x0, [x23]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_ce4100,8,3               ; @e1000_ce4100
	.comm	_GBE_CONFIG_BASE_VIRT,4,2       ; @GBE_CONFIG_BASE_VIRT
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"words\" parameter out of bounds. Words = %d,size = %d\n"

	.comm	_E1000_ERR_EEPROM,8,3           ; @E1000_ERR_EEPROM
	.comm	_e1000_eeprom_spi,8,3           ; @e1000_eeprom_spi
	.comm	_EEPROM_READ_OPCODE_SPI,8,3     ; @EEPROM_READ_OPCODE_SPI
	.comm	_EEPROM_A8_OPCODE_SPI,8,3       ; @EEPROM_A8_OPCODE_SPI
	.comm	_e1000_eeprom_microwire,8,3     ; @e1000_eeprom_microwire
	.comm	_EEPROM_READ_OPCODE_MICROWIRE,8,3 ; @EEPROM_READ_OPCODE_MICROWIRE
	.no_dead_strip	_e1000_do_read_eeprom
.subsections_via_symbols
