	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_flash_cycle_ich8lan
_e1000_flash_cycle_ich8lan:             ## @e1000_flash_cycle_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jge	LBB0_1
## %bb.2:
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er16flash
	jmp	LBB0_3
LBB0_1:
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32flash
LBB0_3:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.5:
	movq	_ICH_FLASH_HSFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ew16flash
	jmp	LBB0_6
LBB0_4:
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_ew32flash
LBB0_6:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	cmovgq	%r14, %rbx
	incq	%rbx
	movq	_ICH_FLASH_HSFSTS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_er16flash
	movl	$1, %edi
	callq	_udelay
	decq	%rbx
	jne	LBB0_7
## %bb.8:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch_spt,8,3              ## @e1000_pch_spt
	.comm	_ICH_FLASH_HSFSTS,4,2           ## @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_HSFCTL,4,2           ## @ICH_FLASH_HSFCTL
	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
	.no_dead_strip	_e1000_flash_cycle_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_flash_cycle_ich8lan
_e1000_flash_cycle_ich8lan:             ; @e1000_flash_cycle_ich8lan
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _e1000_pch_spt@GOTPAGE
Lloh1:
	ldr	x23, [x23, _e1000_pch_spt@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x21, _ICH_FLASH_HSFSTS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ICH_FLASH_HSFSTS@GOTPAGEOFF]
Lloh4:
	adrp	x22, _ICH_FLASH_HSFCTL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ICH_FLASH_HSFCTL@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_er16flash
	b	LBB0_3
LBB0_2:
	ldr	w0, [x21]
	bl	_er32flash
LBB0_3:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	ldr	w0, [x22]
	mov	w1, #1
	bl	_ew16flash
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
	mov	w1, #65536
	bl	_ew32flash
LBB0_6:
	cmp	x19, #0
	csel	x8, x19, xzr, gt
	add	x19, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_er16flash
	mov	w0, #1
	bl	_udelay
	subs	x19, x19, #1
	b.ne	LBB0_7
; %bb.8:
Lloh6:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch_spt,8,3              ; @e1000_pch_spt
	.comm	_ICH_FLASH_HSFSTS,4,2           ; @ICH_FLASH_HSFSTS
	.comm	_ICH_FLASH_HSFCTL,4,2           ; @ICH_FLASH_HSFCTL
	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
	.no_dead_strip	_e1000_flash_cycle_ich8lan
.subsections_via_symbols
