	.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	$24, %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, %r14
	movslq	(%rdi), %rbx
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	addq	%rbx, %rbx
	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	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	testq	%rax, %rax
	jg	LBB0_11
	jmp	LBB0_17
LBB0_6:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_18
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, %rbx
	addq	8(%r14), %rbx
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	addq	%r15, %rbx
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_e1000_flash_cycle_init_ich8lan
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	(%r12), %edi
	callq	_er16flash
	movq	_ICH_CYCLE_ERASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	andq	%rcx, %rax
	orq	%rax, %rsi
	movl	(%r12), %edi
	callq	_ew16flash
	movq	_ICH_FLASH_FADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ew32flash
	movq	_ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_e1000_flash_cycle_ich8lan
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	incq	%r13
	leaq	(%rbx,%r15), %rax
	movq	_ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jl	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rdx
	jne	LBB0_12
	jmp	LBB0_17
LBB0_8:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testq	%rax, %rax
	jg	LBB0_11
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %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_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_ERASE_COMMAND_TIMEOUT,4,2 ## @ICH_FLASH_ERASE_COMMAND_TIMEOUT
	.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, #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
	mov	x20, x1
	mov	x19, x0
	ldrsw	x21, [x0]
Lloh0:
	adrp	x8, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er16flash
	cmp	w0, #3
	b.hi	LBB0_3
; %bb.1:
	lsl	x8, x21, #1
	and	x9, x0, #0xffffffff
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _ICH_FLASH_SEG_SIZE_256@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_256@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	sdiv	x9, x8, x9
	str	x9, [sp]                        ; 8-byte Folded Spill
	cmp	x9, #1
	b.ge	LBB0_8
	b	LBB0_14
LBB0_3:
Lloh8:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_15
LBB0_4:
Lloh11:
	adrp	x9, _ICH_FLASH_SEG_SIZE_4K@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_4K@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, _ICH_FLASH_SEG_SIZE_8K@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_8K@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x9, _ICH_FLASH_SEG_SIZE_64K@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICH_FLASH_SEG_SIZE_64K@GOTPAGEOFF]
LBB0_7:
	ldr	x10, [x9]
	mov	w9, #1
	stp	x9, x10, [sp]                   ; 16-byte Folded Spill
LBB0_8:
	mov	x24, #0
	mov	x25, #0
	mov	x26, #0
	ldr	x9, [x19, #8]
	cmp	x20, #0
	csel	x8, xzr, x8, eq
	add	x20, x9, x8
Lloh17:
	adrp	x27, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh19:
	adrp	x28, _ICH_CYCLE_ERASE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _ICH_CYCLE_ERASE@GOTPAGEOFF]
Lloh21:
	adrp	x22, _ICH_FLASH_FADDR@GOTPAGE
Lloh22:
	ldr	x22, [x22, _ICH_FLASH_FADDR@GOTPAGEOFF]
Lloh23:
	adrp	x23, _ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _ICH_FLASH_ERASE_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh25:
	adrp	x21, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGE
Lloh26:
	ldr	x21, [x21, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x8, x20, x24
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	mov	x0, x19
	bl	_e1000_flash_cycle_init_ich8lan
	cbnz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x27]
	bl	_er16flash
	ldr	w8, [x28]
	and	x9, x0, #0xffffffff00000000
	orr	x1, x9, x8
	ldr	w0, [x27]
	bl	_ew16flash
	ldr	w0, [x22]
	mov	x1, x20
	bl	_ew32flash
	ldr	w1, [x23]
	mov	x0, x19
	bl	_e1000_flash_cycle_ich8lan
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh27:
	adrp	x8, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_er16flash
	add	x26, x26, #1
	ldr	x9, [x21]
	add	x8, x20, x24
	cmp	x26, x9
	b.lt	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x25, x8
	b.ne	LBB0_9
LBB0_14:
	mov	x0, #0
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-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_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_ERASE_COMMAND_TIMEOUT,4,2 ; @ICH_FLASH_ERASE_COMMAND_TIMEOUT
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ; @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_erase_flash_bank_ich8lan
.subsections_via_symbols
