	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_write_flash_data32_ich8lan
_e1000_write_flash_data32_ich8lan:      ## @e1000_write_flash_data32_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rdx
	movq	_ICH_FLASH_LINEAR_ADDR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpq	(%rdx), %rax
	jl	LBB0_3
## %bb.1:
	cmpl	%esi, %r15d
	jge	LBB0_3
## %bb.2:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_15
LBB0_3:
	andl	%esi, %r15d
	addl	8(%r12), %r15d
	movq	$-1, %r14
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_e1000_flash_cycle_init_ich8lan
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_er32flash
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_ew16flash
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	movl	$196608, %esi                   ## imm = 0x30000
	callq	_ew32flash
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ICH_FLASH_FADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ew32flash
	movq	_ICH_FLASH_FDATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ew32flash
	movq	_ICH_FLASH_WRITE_COMMAND_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_e1000_flash_cycle_ich8lan
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_er16flash
	incq	%r14
	movq	_ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jl	LBB0_4
	jmp	LBB0_15
LBB0_5:
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch_spt,8,3              ## @e1000_pch_spt
	.comm	_ICH_FLASH_LINEAR_ADDR_MASK,4,2 ## @ICH_FLASH_LINEAR_ADDR_MASK
	.comm	_E1000_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_ICH_FLASH_HSFSTS,4,2           ## @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_HSFCTL,4,2           ## @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_WRITE,4,2            ## @ICH_CYCLE_WRITE
	.comm	_ICH_FLASH_FADDR,4,2            ## @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_FDATA0,4,2           ## @ICH_FLASH_FDATA0
	.comm	_ICH_FLASH_WRITE_COMMAND_TIMEOUT,4,2 ## @ICH_FLASH_WRITE_COMMAND_TIMEOUT
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ## @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_write_flash_data32_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_write_flash_data32_ich8lan
_e1000_write_flash_data32_ich8lan:      ; @e1000_write_flash_data32_ich8lan
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x9, [x0]
Lloh0:
	adrp	x23, _e1000_pch_spt@GOTPAGE
Lloh1:
	ldr	x23, [x23, _e1000_pch_spt@GOTPAGEOFF]
	ldr	x10, [x23]
Lloh2:
	adrp	x8, _ICH_FLASH_LINEAR_ADDR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICH_FLASH_LINEAR_ADDR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x9, x10
	ccmp	w8, w1, #0, ge
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	and	w8, w8, w1
	ldr	w9, [x0, #8]
	add	w21, w9, w8
	mov	x24, #-1
Lloh5:
	adrp	x27, _ICH_FLASH_FDATA0@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ICH_FLASH_FDATA0@GOTPAGEOFF]
Lloh7:
	adrp	x28, _ICH_FLASH_WRITE_COMMAND_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _ICH_FLASH_WRITE_COMMAND_TIMEOUT@GOTPAGEOFF]
Lloh9:
	adrp	x25, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
Lloh11:
	adrp	x26, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ICH_FLASH_CYCLE_REPEAT_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_e1000_flash_cycle_init_ich8lan
	cbnz	x0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh13:
	adrp	x8, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_er16flash
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_er32flash
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x8, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_ew16flash
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	mov	w1, #196608
	bl	_ew32flash
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x8, _ICH_FLASH_FADDR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICH_FLASH_FADDR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ew32flash
	ldr	w0, [x27]
	mov	x1, x19
	bl	_ew32flash
	ldr	w1, [x28]
	mov	x0, x20
	bl	_e1000_flash_cycle_ich8lan
	mov	x22, x0
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_er16flash
	ldr	x8, [x26]
	add	x24, x24, #1
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	neg	x22, x8
	b	LBB0_13
LBB0_12:
	mov	x22, x0
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch_spt,8,3              ; @e1000_pch_spt
	.comm	_ICH_FLASH_LINEAR_ADDR_MASK,4,2 ; @ICH_FLASH_LINEAR_ADDR_MASK
	.comm	_E1000_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_ICH_FLASH_HSFSTS,4,2           ; @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_HSFCTL,4,2           ; @ICH_FLASH_HSFCTL
	.comm	_ICH_CYCLE_WRITE,4,2            ; @ICH_CYCLE_WRITE
	.comm	_ICH_FLASH_FADDR,4,2            ; @ICH_FLASH_FADDR
	.comm	_ICH_FLASH_FDATA0,4,2           ; @ICH_FLASH_FDATA0
	.comm	_ICH_FLASH_WRITE_COMMAND_TIMEOUT,4,2 ; @ICH_FLASH_WRITE_COMMAND_TIMEOUT
	.comm	_ICH_FLASH_CYCLE_REPEAT_COUNT,8,3 ; @ICH_FLASH_CYCLE_REPEAT_COUNT
	.no_dead_strip	_e1000_write_flash_data32_ich8lan
.subsections_via_symbols
