	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_erase_flash_bank_ich8lan
_e1000_erase_flash_bank_ich8lan:        ## @e1000_erase_flash_bank_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movslq	8(%rdi), %r13
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	addq	%r13, %r13
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_ICH_FLASH_SEG_SIZE_256@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	testq	%rax, %rax
	jg	LBB0_11
	jmp	LBB0_26
LBB0_6:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_27
LBB0_2:
	movq	_ICH_FLASH_SEG_SIZE_4K@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_ICH_FLASH_SEG_SIZE_8K@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ICH_FLASH_SEG_SIZE_64K@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rcx
	movl	$1, %eax
LBB0_11:
	testq	%r12, %r12
	cmoveq	%r12, %r13
	addq	16(%rbx), %r13
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	addq	%r14, %r13
	movq	%r13, %rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r13
	movq	_ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_e1000_flash_cycle_init_ich8lan
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rcx
	movq	(%rbx), %rax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32flash
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_CYCLE_ERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ew16flash
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$16, %esi
	movslq	%esi, %rsi
	callq	_ew32flash
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	_ICH_FLASH_FADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ew32flash
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_e1000_flash_cycle_ich8lan
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, %rbx
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	shrq	$32, %rax
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%r15
	leaq	(%r14,%r13), %rax
	movq	_ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rdx
	jne	LBB0_12
	jmp	LBB0_26
LBB0_14:
	movq	%rax, %rbx
	jmp	LBB0_27
LBB0_8:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testq	%rax, %rax
	jg	LBB0_11
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ICH_FLASH_HSFSTS,4,2           ## @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_SEG_SIZE_256,8,3     ## @ICH_FLASH_SEG_SIZE_256
	.comm	_ICH_FLASH_SEG_SIZE_4K,8,3      ## @ICH_FLASH_SEG_SIZE_4K
	.comm	_ICH_FLASH_SEG_SIZE_8K,8,3      ## @ICH_FLASH_SEG_SIZE_8K
	.comm	_ICH_FLASH_SEG_SIZE_64K,8,3     ## @ICH_FLASH_SEG_SIZE_64K
	.comm	_E1000_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_ICH_FLASH_ERASE_COMMAND_TIMEOUT,8,3 ## @ICH_FLASH_ERASE_COMMAND_TIMEOUT
	.comm	_e1000_pch_spt,8,3              ## @e1000_pch_spt
	.comm	_ICH_FLASH_HSFCTL,4,2           ## @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_ERASE,4,2            ## @ICH_CYCLE_ERASE
	.comm	_ICH_FLASH_FADDR,4,2            ## @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ## @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_erase_flash_bank_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_erase_flash_bank_ich8lan
_e1000_erase_flash_bank_ich8lan:        ; @e1000_erase_flash_bank_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x19, x0
	ldrsw	x21, [x0, #8]
Lloh0:
	adrp	x23, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er16flash
	cmp	w0, #3
	b.hi	LBB0_4
; %bb.1:
	lsl	x8, x21, #1
	and	x9, x0, #0xffffffff
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x9, _ICH_FLASH_SEG_SIZE_256@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_256@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	sdiv	x9, x8, x9
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x9, #1
	b.ge	LBB0_9
LBB0_3:
	mov	x22, #0
	b	LBB0_23
LBB0_4:
Lloh7:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_23
LBB0_5:
Lloh10:
	adrp	x9, _ICH_FLASH_SEG_SIZE_4K@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_4K@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x9, _ICH_FLASH_SEG_SIZE_8K@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_8K@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x9, _ICH_FLASH_SEG_SIZE_64K@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_64K@GOTPAGEOFF]
LBB0_8:
	ldr	x10, [x9]
	mov	w9, #1
	stp	x9, x10, [sp, #8]               ; 16-byte Folded Spill
LBB0_9:
	mov	x26, #0
	mov	x10, #0
	mov	x28, #0
	ldr	x9, [x19, #16]
	cmp	x20, #0
	csel	x8, xzr, x8, eq
	add	x20, x9, x8
Lloh16:
	adrp	x24, _ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh18:
	adrp	x25, _e1000_pch_spt@GOTPAGE
Lloh19:
	ldr	x25, [x25, _e1000_pch_spt@GOTPAGEOFF]
Lloh20:
	adrp	x27, _ICH_FLASH_FADDR@GOTPAGE
Lloh21:
	ldr	x27, [x27, _ICH_FLASH_FADDR@GOTPAGEOFF]
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	add	x8, x20, x26
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	ldr	x21, [x24]
	mov	x0, x19
	bl	_e1000_flash_cycle_init_ich8lan
	cbnz	x0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh22:
	adrp	x8, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_er16flash
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x23]
	bl	_er32flash
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
Lloh25:
	adrp	x8, _ICH_CYCLE_ERASE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ICH_CYCLE_ERASE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh28:
	adrp	x8, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_ew16flash
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x23]
	lsl	w8, w1, #16
	sxtw	x1, w8
	bl	_ew32flash
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x27]
	mov	x1, x20
	bl	_ew32flash
	mov	x0, x19
	mov	x1, x21
	bl	_e1000_flash_cycle_ich8lan
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x22, x0
	ldr	w0, [x23]
	bl	_er16flash
	lsr	x8, x0, #32
	cbz	x8, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
Lloh31:
	adrp	x8, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x8]
	add	x8, x20, x26
	cmp	x28, x9
	b.lt	LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x10, [sp, #16]              ; 16-byte Folded Reload
	add	x10, x10, #1
	add	x26, x26, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x10, x8
	b.ne	LBB0_10
	b	LBB0_3
LBB0_22:
	mov	x22, x0
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_ICH_FLASH_HSFSTS,4,2           ; @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_SEG_SIZE_256,8,3     ; @ICH_FLASH_SEG_SIZE_256
	.comm	_ICH_FLASH_SEG_SIZE_4K,8,3      ; @ICH_FLASH_SEG_SIZE_4K
	.comm	_ICH_FLASH_SEG_SIZE_8K,8,3      ; @ICH_FLASH_SEG_SIZE_8K
	.comm	_ICH_FLASH_SEG_SIZE_64K,8,3     ; @ICH_FLASH_SEG_SIZE_64K
	.comm	_E1000_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_ICH_FLASH_ERASE_COMMAND_TIMEOUT,8,3 ; @ICH_FLASH_ERASE_COMMAND_TIMEOUT
	.comm	_e1000_pch_spt,8,3              ; @e1000_pch_spt
	.comm	_ICH_FLASH_HSFCTL,4,2           ; @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_ERASE,4,2            ; @ICH_CYCLE_ERASE
	.comm	_ICH_FLASH_FADDR,4,2            ; @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ; @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_erase_flash_bank_ich8lan
.subsections_via_symbols
