	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_read_flash_data_ich8lan
_e1000_read_flash_data_ich8lan:         ## @e1000_read_flash_data_ich8lan
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-3(%rdx), %eax
	cmpl	$-2, %eax
	jb	LBB0_2
## %bb.1:
	movq	_ICH_FLASH_LINEAR_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%esi, %r12d
	jge	LBB0_3
LBB0_2:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	andl	%esi, %r12d
	addl	(%rdi), %r12d
	movq	%rdx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %r14d
	movq	$-1, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	%r13, %rdi
	callq	_e1000_flash_cycle_init_ich8lan
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er16flash
	movq	_ICH_CYCLE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shlq	$32, %rsi
	orq	%r14, %rsi
	movl	(%rbx), %edi
	callq	_ew16flash
	movq	_ICH_FLASH_FADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_ew32flash
	movq	_ICH_FLASH_READ_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_e1000_flash_cycle_ich8lan
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	incq	%r15
	movq	_ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jg	LBB0_4
	jmp	LBB0_12
LBB0_5:
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_7:
	movq	_ICH_FLASH_FDATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32flash
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	movzbl	%al, %eax
	jmp	LBB0_9
LBB0_10:
	movzwl	%ax, %eax
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_ICH_FLASH_LINEAR_ADDR_MASK,4,2 ## @ICH_FLASH_LINEAR_ADDR_MASK
	.comm	_ICH_FLASH_HSFCTL,4,2           ## @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_READ,4,2             ## @ICH_CYCLE_READ
	.comm	_ICH_FLASH_FADDR,4,2            ## @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_READ_COMMAND_TIMEOUT,4,2 ## @ICH_FLASH_READ_COMMAND_TIMEOUT
	.comm	_ICH_FLASH_FDATA0,4,2           ## @ICH_FLASH_FDATA0
	.comm	_ICH_FLASH_HSFSTS,4,2           ## @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ## @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_read_flash_data_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_read_flash_data_ich8lan
_e1000_read_flash_data_ich8lan:         ; @e1000_read_flash_data_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	w8, w2, #3
	cmn	w8, #2
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ICH_FLASH_LINEAR_ADDR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICH_FLASH_LINEAR_ADDR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x23, x8
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x20, x2
	mov	x21, x0
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	and	w8, w8, w1
	ldr	w9, [x0]
	add	w22, w9, w8
	sub	w24, w2, #1
	mov	x25, #-1
Lloh6:
	adrp	x26, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh8:
	adrp	x28, _ICH_FLASH_FADDR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ICH_FLASH_FADDR@GOTPAGEOFF]
Lloh10:
	adrp	x19, _ICH_FLASH_READ_COMMAND_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x19, [x19, _ICH_FLASH_READ_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh12:
	adrp	x27, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	mov	x0, x21
	bl	_e1000_flash_cycle_init_ich8lan
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_er16flash
Lloh14:
	adrp	x8, _ICH_CYCLE_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ICH_CYCLE_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	x1, x24
	bfi	x1, x8, #32, #32
	ldr	w0, [x26]
	bl	_ew16flash
	ldr	w0, [x28]
	mov	x1, x22
	bl	_ew32flash
	ldr	w1, [x19]
	mov	x0, x21
	bl	_e1000_flash_cycle_ich8lan
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
Lloh17:
	adrp	x8, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_er16flash
	ldr	x8, [x27]
	add	x25, x25, #1
	cmp	x8, x25
	b.gt	LBB0_5
	b	LBB0_3
LBB0_8:
	mov	x23, x0
	b	LBB0_3
LBB0_9:
Lloh20:
	adrp	x8, _ICH_FLASH_FDATA0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICH_FLASH_FDATA0@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_er32flash
	cmp	w20, #1
	b.ne	LBB0_11
; %bb.10:
	mov	x23, #0
	and	w8, w0, #0xff
	b	LBB0_12
LBB0_11:
	mov	x23, #0
	and	w8, w0, #0xffff
LBB0_12:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_ICH_FLASH_LINEAR_ADDR_MASK,4,2 ; @ICH_FLASH_LINEAR_ADDR_MASK
	.comm	_ICH_FLASH_HSFCTL,4,2           ; @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_READ,4,2             ; @ICH_CYCLE_READ
	.comm	_ICH_FLASH_FADDR,4,2            ; @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_READ_COMMAND_TIMEOUT,4,2 ; @ICH_FLASH_READ_COMMAND_TIMEOUT
	.comm	_ICH_FLASH_FDATA0,4,2           ; @ICH_FLASH_FDATA0
	.comm	_ICH_FLASH_HSFSTS,4,2           ; @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ; @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_read_flash_data_ich8lan
.subsections_via_symbols
